From c1ce1281432189c1b449286487cdce2838f59baa Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Mon, 3 Oct 2022 14:07:28 +0100 Subject: [PATCH 1/2] Reduce initial API surface --- benchmarks/Benchmarks/Program.cs | 3 - .../Common/Query/Query.cs | 622 +--- .../Serialization/PercentageConverter.cs | 52 +- .../_Generated/Api/ApiUrlsLookup.g.cs | 190 -- ...scalingDeleteAutoscalingPolicyRequest.g.cs | 67 - ...calingDeleteAutoscalingPolicyResponse.g.cs | 31 - ...oscalingGetAutoscalingCapacityRequest.g.cs | 53 - ...scalingGetAutoscalingCapacityResponse.g.cs | 31 - ...utoscalingGetAutoscalingPolicyRequest.g.cs | 67 - ...toscalingGetAutoscalingPolicyResponse.g.cs | 35 - ...utoscalingPutAutoscalingPolicyRequest.g.cs | 67 - ...toscalingPutAutoscalingPolicyResponse.g.cs | 31 - .../CcrDeleteAutoFollowPatternRequest.g.cs | 67 - .../CcrDeleteAutoFollowPatternResponse.g.cs | 31 - .../Api/Ccr/CcrFollowInfoRequest.g.cs | 92 - .../Api/Ccr/CcrFollowInfoResponse.g.cs | 31 - .../_Generated/Api/Ccr/CcrFollowRequest.g.cs | 490 --- .../_Generated/Api/Ccr/CcrFollowResponse.g.cs | 39 - .../Api/Ccr/CcrFollowStatsRequest.g.cs | 92 - .../Api/Ccr/CcrFollowStatsResponse.g.cs | 31 - .../Api/Ccr/CcrForgetFollowerRequest.g.cs | 227 -- .../Api/Ccr/CcrForgetFollowerResponse.g.cs | 31 - .../Ccr/CcrGetAutoFollowPatternRequest.g.cs | 67 - .../Ccr/CcrGetAutoFollowPatternResponse.g.cs | 31 - .../Ccr/CcrPauseAutoFollowPatternRequest.g.cs | 67 - .../CcrPauseAutoFollowPatternResponse.g.cs | 31 - .../Api/Ccr/CcrPauseFollowRequest.g.cs | 96 - .../Api/Ccr/CcrPauseFollowResponse.g.cs | 31 - .../Ccr/CcrPutAutoFollowPatternRequest.g.cs | 334 -- .../Ccr/CcrPutAutoFollowPatternResponse.g.cs | 31 - .../CcrResumeAutoFollowPatternRequest.g.cs | 67 - .../CcrResumeAutoFollowPatternResponse.g.cs | 31 - .../Api/Ccr/CcrResumeFollowRequest.g.cs | 419 --- .../Api/Ccr/CcrResumeFollowResponse.g.cs | 31 - .../_Generated/Api/Ccr/CcrStatsRequest.g.cs | 53 - .../_Generated/Api/Ccr/CcrStatsResponse.g.cs | 35 - .../Api/Ccr/CcrUnfollowRequest.g.cs | 96 - .../Api/Ccr/CcrUnfollowResponse.g.cs | 31 - .../ClusterAllocationExplainRequest.g.cs | 139 - .../ClusterAllocationExplainResponse.g.cs | 127 - ...ClusterDeleteComponentTemplateRequest.g.cs | 79 - ...lusterDeleteComponentTemplateResponse.g.cs | 31 - ...erDeleteVotingConfigExclusionsRequest.g.cs | 58 - ...rDeleteVotingConfigExclusionsResponse.g.cs | 28 - ...ClusterExistsComponentTemplateRequest.g.cs | 79 - ...lusterExistsComponentTemplateResponse.g.cs | 28 - .../ClusterGetComponentTemplateRequest.g.cs | 86 - .../ClusterGetComponentTemplateResponse.g.cs | 31 - .../Cluster/ClusterGetSettingsRequest.g.cs | 79 - .../Cluster/ClusterGetSettingsResponse.g.cs | 39 - .../Cluster/ClusterPendingTasksRequest.g.cs | 65 - .../Cluster/ClusterPendingTasksResponse.g.cs | 31 - ...sterPostVotingConfigExclusionsRequest.g.cs | 72 - ...terPostVotingConfigExclusionsResponse.g.cs | 28 - .../ClusterPutComponentTemplateRequest.g.cs | 494 --- .../ClusterPutComponentTemplateResponse.g.cs | 31 - .../Cluster/ClusterPutSettingsRequest.g.cs | 110 - .../Cluster/ClusterPutSettingsResponse.g.cs | 39 - .../Api/Cluster/ClusterRemoteInfoRequest.g.cs | 53 - .../Cluster/ClusterRemoteInfoResponse.g.cs | 28 - .../Api/Cluster/ClusterRerouteRequest.g.cs | 174 -- .../Api/Cluster/ClusterRerouteResponse.g.cs | 39 - .../Api/Cluster/ClusterStateRequest.g.cs | 174 -- .../Api/Cluster/ClusterStateResponse.g.cs | 28 - .../Api/Cluster/ClusterStatsRequest.g.cs | 79 - .../Api/Cluster/ClusterStatsResponse.g.cs | 55 - ...lingIndicesListDanglingIndicesRequest.g.cs | 53 - ...ingIndicesListDanglingIndicesResponse.g.cs | 31 - .../Api/Enrich/EnrichDeletePolicyRequest.g.cs | 67 - .../Enrich/EnrichDeletePolicyResponse.g.cs | 31 - .../Enrich/EnrichExecutePolicyRequest.g.cs | 72 - .../Enrich/EnrichExecutePolicyResponse.g.cs | 35 - .../Api/Enrich/EnrichGetPolicyRequest.g.cs | 67 - .../Api/Enrich/EnrichGetPolicyResponse.g.cs | 31 - .../Api/Enrich/EnrichPutPolicyRequest.g.cs | 383 --- .../Api/Enrich/EnrichPutPolicyResponse.g.cs | 31 - .../Api/Enrich/EnrichStatsRequest.g.cs | 53 - .../Api/Enrich/EnrichStatsResponse.g.cs | 39 - .../Features/FeaturesGetFeaturesRequest.g.cs | 53 - .../Features/FeaturesGetFeaturesResponse.g.cs | 31 - .../Api/Graph/GraphExploreRequest.g.cs | 552 ---- .../Api/Graph/GraphExploreResponse.g.cs | 47 - .../Api/Ilm/IlmDeleteLifecycleRequest.g.cs | 79 - .../Api/Ilm/IlmDeleteLifecycleResponse.g.cs | 31 - .../Api/Ilm/IlmExplainLifecycleRequest.g.cs | 126 - .../Api/Ilm/IlmExplainLifecycleResponse.g.cs | 31 - .../Api/Ilm/IlmGetLifecycleRequest.g.cs | 79 - .../Api/Ilm/IlmGetLifecycleResponse.g.cs | 28 - .../Api/Ilm/IlmGetStatusRequest.g.cs | 53 - .../Api/Ilm/IlmGetStatusResponse.g.cs | 31 - .../Api/Ilm/IlmMigrateToDataTiersRequest.g.cs | 96 - .../Ilm/IlmMigrateToDataTiersResponse.g.cs | 55 - .../Api/Ilm/IlmMoveToStepRequest.g.cs | 291 -- .../Api/Ilm/IlmMoveToStepResponse.g.cs | 31 - .../Api/Ilm/IlmPutLifecycleRequest.g.cs | 79 - .../Api/Ilm/IlmPutLifecycleResponse.g.cs | 31 - .../Api/Ilm/IlmRemovePolicyRequest.g.cs | 96 - .../Api/Ilm/IlmRemovePolicyResponse.g.cs | 35 - .../_Generated/Api/Ilm/IlmRetryRequest.g.cs | 96 - .../_Generated/Api/Ilm/IlmRetryResponse.g.cs | 31 - .../_Generated/Api/Ilm/IlmStartRequest.g.cs | 65 - .../_Generated/Api/Ilm/IlmStartResponse.g.cs | 31 - .../_Generated/Api/Ilm/IlmStopRequest.g.cs | 65 - .../_Generated/Api/Ilm/IlmStopResponse.g.cs | 31 - .../Ingest/IngestDeletePipelineRequest.g.cs | 106 - .../Ingest/IngestDeletePipelineResponse.g.cs | 31 - .../Api/Ingest/IngestGeoIpStatsRequest.g.cs | 53 - .../Api/Ingest/IngestGeoIpStatsResponse.g.cs | 35 - .../Api/Ingest/IngestGetPipelineRequest.g.cs | 102 - .../Api/Ingest/IngestGetPipelineResponse.g.cs | 28 - .../Ingest/IngestProcessorGrokRequest.g.cs | 53 - .../Ingest/IngestProcessorGrokResponse.g.cs | 31 - .../Api/Ingest/IngestPutPipelineRequest.g.cs | 522 ---- .../Api/Ingest/IngestPutPipelineResponse.g.cs | 31 - .../Api/Ingest/IngestSimulateRequest.g.cs | 348 --- .../Api/Ingest/IngestSimulateResponse.g.cs | 31 - .../Api/License/DeleteLicenseRequest.g.cs | 53 - .../Api/License/DeleteLicenseResponse.g.cs | 31 - .../Api/License/GetLicenseRequest.g.cs | 65 - .../Api/License/GetLicenseResponse.g.cs | 31 - .../License/LicenseGetBasicStatusRequest.g.cs | 53 - .../LicenseGetBasicStatusResponse.g.cs | 31 - .../License/LicenseGetTrialStatusRequest.g.cs | 53 - .../LicenseGetTrialStatusResponse.g.cs | 31 - .../Api/License/LicensePostRequest.g.cs | 189 -- .../Api/License/LicensePostResponse.g.cs | 39 - .../License/LicensePostStartBasicRequest.g.cs | 58 - .../LicensePostStartBasicResponse.g.cs | 47 - .../License/LicensePostStartTrialRequest.g.cs | 65 - .../LicensePostStartTrialResponse.g.cs | 43 - .../_Generated/Api/Ml/MlCloseJobRequest.g.cs | 122 - .../_Generated/Api/Ml/MlCloseJobResponse.g.cs | 31 - .../Api/Ml/MlDeleteCalendarEventRequest.g.cs | 73 - .../Api/Ml/MlDeleteCalendarEventResponse.g.cs | 31 - .../Api/Ml/MlDeleteCalendarRequest.g.cs | 67 - .../Api/Ml/MlDeleteCalendarResponse.g.cs | 31 - .../Ml/MlDeleteDataFrameAnalyticsRequest.g.cs | 106 - .../MlDeleteDataFrameAnalyticsResponse.g.cs | 31 - .../Api/Ml/MlDeleteDatafeedRequest.g.cs | 72 - .../Api/Ml/MlDeleteDatafeedResponse.g.cs | 31 - .../Api/Ml/MlDeleteExpiredDataRequest.g.cs | 104 - .../Api/Ml/MlDeleteExpiredDataResponse.g.cs | 31 - .../Api/Ml/MlDeleteFilterRequest.g.cs | 67 - .../Api/Ml/MlDeleteFilterResponse.g.cs | 31 - .../Api/Ml/MlDeleteForecastRequest.g.cs | 93 - .../Api/Ml/MlDeleteForecastResponse.g.cs | 31 - .../_Generated/Api/Ml/MlDeleteJobRequest.g.cs | 79 - .../Api/Ml/MlDeleteJobResponse.g.cs | 31 - .../Api/Ml/MlDeleteModelSnapshotRequest.g.cs | 73 - .../Api/Ml/MlDeleteModelSnapshotResponse.g.cs | 31 - .../Ml/MlDeleteTrainedModelAliasRequest.g.cs | 73 - .../Ml/MlDeleteTrainedModelAliasResponse.g.cs | 31 - .../Api/Ml/MlDeleteTrainedModelRequest.g.cs | 72 - .../Api/Ml/MlDeleteTrainedModelResponse.g.cs | 31 - .../Api/Ml/MlEstimateModelMemoryRequest.g.cs | 231 -- .../Api/Ml/MlEstimateModelMemoryResponse.g.cs | 31 - .../Api/Ml/MlEvaluateDataFrameRequest.g.cs | 287 -- .../Api/Ml/MlEvaluateDataFrameResponse.g.cs | 39 - .../MlExplainDataFrameAnalyticsRequest.g.cs | 603 ---- .../MlExplainDataFrameAnalyticsResponse.g.cs | 35 - .../_Generated/Api/Ml/MlFlushJobRequest.g.cs | 255 -- .../_Generated/Api/Ml/MlFlushJobResponse.g.cs | 35 - .../_Generated/Api/Ml/MlForecastRequest.g.cs | 122 - .../_Generated/Api/Ml/MlForecastResponse.g.cs | 35 - .../Api/Ml/MlGetCalendarEventsRequest.g.cs | 100 - .../Api/Ml/MlGetCalendarEventsResponse.g.cs | 35 - .../Api/Ml/MlGetCalendarsRequest.g.cs | 131 - .../Api/Ml/MlGetCalendarsResponse.g.cs | 35 - .../Ml/MlGetDataFrameAnalyticsRequest.g.cs | 118 - .../Ml/MlGetDataFrameAnalyticsResponse.g.cs | 35 - .../MlGetDataFrameAnalyticsStatsRequest.g.cs | 118 - .../MlGetDataFrameAnalyticsStatsResponse.g.cs | 35 - .../Api/Ml/MlGetInfluencersRequest.g.cs | 254 -- .../Api/Ml/MlGetInfluencersResponse.g.cs | 35 - .../Api/Ml/MlGetJobStatsRequest.g.cs | 72 - .../Api/Ml/MlGetJobStatsResponse.g.cs | 35 - .../Api/Ml/MlGetMemoryStatsRequest.g.cs | 79 - .../Api/Ml/MlGetMemoryStatsResponse.g.cs | 39 - .../Api/Ml/MlGetModelSnapshotsRequest.g.cs | 376 --- .../Api/Ml/MlGetModelSnapshotsResponse.g.cs | 35 - .../Api/Ml/MlGetOverallBucketsRequest.g.cs | 194 -- .../Api/Ml/MlGetOverallBucketsResponse.g.cs | 35 - .../Api/Ml/MlGetRecordsRequest.g.cs | 416 --- .../Api/Ml/MlGetRecordsResponse.g.cs | 35 - .../Ml/MlGetTrainedModelsStatsRequest.g.cs | 86 - .../Ml/MlGetTrainedModelsStatsResponse.g.cs | 35 - .../_Generated/Api/Ml/MlInfoRequest.g.cs | 53 - .../_Generated/Api/Ml/MlInfoResponse.g.cs | 43 - .../_Generated/Api/Ml/MlOpenJobRequest.g.cs | 86 - .../_Generated/Api/Ml/MlOpenJobResponse.g.cs | 31 - .../Api/Ml/MlPostCalendarEventsRequest.g.cs | 147 - .../Api/Ml/MlPostCalendarEventsResponse.g.cs | 31 - .../MlPreviewDataFrameAnalyticsRequest.g.cs | 187 -- .../MlPreviewDataFrameAnalyticsResponse.g.cs | 31 - .../Api/Ml/MlPreviewDatafeedRequest.g.cs | 283 -- .../Api/Ml/MlPreviewDatafeedResponse.g.cs | 31 - .../Api/Ml/MlPutCalendarJobRequest.g.cs | 73 - .../Api/Ml/MlPutCalendarJobResponse.g.cs | 39 - .../Api/Ml/MlPutCalendarRequest.g.cs | 104 - .../Api/Ml/MlPutCalendarResponse.g.cs | 39 - .../Ml/MlPutDataFrameAnalyticsRequest.g.cs | 671 ---- .../Ml/MlPutDataFrameAnalyticsResponse.g.cs | 75 - .../Api/Ml/MlPutDatafeedRequest.g.cs | 1027 ------- .../Api/Ml/MlPutDatafeedResponse.g.cs | 87 - .../_Generated/Api/Ml/MlPutFilterRequest.g.cs | 104 - .../Api/Ml/MlPutFilterResponse.g.cs | 39 - .../_Generated/Api/Ml/MlPutJobRequest.g.cs | 895 ------ .../_Generated/Api/Ml/MlPutJobResponse.g.cs | 108 - .../Api/Ml/MlPutTrainedModelAliasRequest.g.cs | 78 - .../Ml/MlPutTrainedModelAliasResponse.g.cs | 31 - .../Api/Ml/MlPutTrainedModelRequest.g.cs | 570 ---- .../Api/Ml/MlPutTrainedModelResponse.g.cs | 96 - .../_Generated/Api/Ml/MlResetJobRequest.g.cs | 72 - .../_Generated/Api/Ml/MlResetJobResponse.g.cs | 31 - .../Api/Ml/MlRevertModelSnapshotRequest.g.cs | 92 - .../Api/Ml/MlRevertModelSnapshotResponse.g.cs | 31 - .../Api/Ml/MlSetUpgradeModeRequest.g.cs | 65 - .../Api/Ml/MlSetUpgradeModeResponse.g.cs | 31 - .../Ml/MlStartDataFrameAnalyticsRequest.g.cs | 98 - .../Ml/MlStartDataFrameAnalyticsResponse.g.cs | 35 - .../Api/Ml/MlStartDatafeedRequest.g.cs | 122 - .../Api/Ml/MlStartDatafeedResponse.g.cs | 35 - .../Ml/MlStopDataFrameAnalyticsRequest.g.cs | 114 - .../Ml/MlStopDataFrameAnalyticsResponse.g.cs | 31 - .../Api/Ml/MlStopDatafeedRequest.g.cs | 122 - .../Api/Ml/MlStopDatafeedResponse.g.cs | 31 - .../Ml/MlUpdateDataFrameAnalyticsRequest.g.cs | 223 -- .../MlUpdateDataFrameAnalyticsResponse.g.cs | 75 - .../Api/Ml/MlUpdateDatafeedRequest.g.cs | 939 ------ .../Api/Ml/MlUpdateDatafeedResponse.g.cs | 87 - .../Api/Ml/MlUpdateFilterRequest.g.cs | 122 - .../Api/Ml/MlUpdateFilterResponse.g.cs | 39 - .../_Generated/Api/Ml/MlUpdateJobRequest.g.cs | 857 ------ .../Api/Ml/MlUpdateJobResponse.g.cs | 111 - .../Api/Ml/MlUpdateModelSnapshotRequest.g.cs | 110 - .../Api/Ml/MlUpdateModelSnapshotResponse.g.cs | 35 - .../Api/Ml/MlUpgradeJobSnapshotRequest.g.cs | 85 - .../Api/Ml/MlUpgradeJobSnapshotResponse.g.cs | 35 - .../Api/Ml/MlValidateDetectorRequest.g.cs | 53 - .../Api/Ml/MlValidateDetectorResponse.g.cs | 31 - .../_Generated/Api/Ml/MlValidateRequest.g.cs | 615 ---- .../_Generated/Api/Ml/MlValidateResponse.g.cs | 31 - .../Api/Nodes/NodesHotThreadsRequest.g.cs | 121 - .../Api/Nodes/NodesHotThreadsResponse.g.cs | 31 - .../Api/Nodes/NodesInfoRequest.g.cs | 108 - .../Api/Nodes/NodesInfoResponse.g.cs | 39 - .../NodesReloadSecureSettingsRequest.g.cs | 92 - .../NodesReloadSecureSettingsResponse.g.cs | 39 - .../Api/Nodes/NodesStatsRequest.g.cs | 238 -- .../Api/Nodes/NodesStatsResponse.g.cs | 39 - .../Api/Nodes/NodesUsageRequest.g.cs | 94 - .../Api/Nodes/NodesUsageResponse.g.cs | 39 - .../SearchableSnapshotsMountRequest.g.cs | 162 - .../SearchableSnapshotsMountResponse.g.cs | 31 - .../SearchableSnapshotsStatsRequest.g.cs | 94 - .../SearchableSnapshotsStatsResponse.g.cs | 35 - .../Security/SecurityAuthenticateRequest.g.cs | 53 - .../SecurityAuthenticateResponse.g.cs | 71 - .../SecurityChangePasswordRequest.g.cs | 110 - .../SecurityChangePasswordResponse.g.cs | 28 - .../SecurityClearApiKeyCacheRequest.g.cs | 67 - .../SecurityClearApiKeyCacheResponse.g.cs | 39 - .../SecurityClearCachedPrivilegesRequest.g.cs | 67 - ...SecurityClearCachedPrivilegesResponse.g.cs | 39 - .../SecurityClearCachedRealmsRequest.g.cs | 72 - .../SecurityClearCachedRealmsResponse.g.cs | 39 - .../SecurityClearCachedRolesRequest.g.cs | 67 - .../SecurityClearCachedRolesResponse.g.cs | 39 - .../SecurityDeletePrivilegesRequest.g.cs | 78 - .../SecurityDeletePrivilegesResponse.g.cs | 28 - .../SecurityDeleteRoleMappingRequest.g.cs | 72 - .../SecurityDeleteRoleMappingResponse.g.cs | 31 - .../Security/SecurityDeleteRoleRequest.g.cs | 72 - .../Security/SecurityDeleteRoleResponse.g.cs | 31 - .../Security/SecurityDeleteUserRequest.g.cs | 72 - .../Security/SecurityDeleteUserResponse.g.cs | 31 - .../Security/SecurityDisableUserRequest.g.cs | 72 - .../Security/SecurityDisableUserResponse.g.cs | 28 - .../Security/SecurityEnableUserRequest.g.cs | 72 - .../Security/SecurityEnableUserResponse.g.cs | 28 - .../Security/SecurityGetApiKeyRequest.g.cs | 86 - .../Security/SecurityGetApiKeyResponse.g.cs | 31 - .../SecurityGetBuiltinPrivilegesRequest.g.cs | 53 - .../SecurityGetBuiltinPrivilegesResponse.g.cs | 35 - .../SecurityGetPrivilegesRequest.g.cs | 81 - .../SecurityGetPrivilegesResponse.g.cs | 28 - .../SecurityGetRoleMappingRequest.g.cs | 67 - .../SecurityGetRoleMappingResponse.g.cs | 28 - .../Api/Security/SecurityGetRoleRequest.g.cs | 67 - .../Api/Security/SecurityGetRoleResponse.g.cs | 28 - .../Api/Security/SecurityGetTokenRequest.g.cs | 162 - .../Security/SecurityGetTokenResponse.g.cs | 55 - .../Security/SecurityGrantApiKeyRequest.g.cs | 172 -- .../Security/SecurityGrantApiKeyResponse.g.cs | 43 - .../SecurityHasPrivilegesRequest.g.cs | 244 -- .../SecurityHasPrivilegesResponse.g.cs | 47 - .../SecurityInvalidateApiKeyRequest.g.cs | 162 - .../SecurityInvalidateApiKeyResponse.g.cs | 43 - .../SecurityInvalidateTokenRequest.g.cs | 126 - .../SecurityInvalidateTokenResponse.g.cs | 43 - .../Api/Security/SecurityPutUserRequest.g.cs | 200 -- .../Api/Security/SecurityPutUserResponse.g.cs | 31 - .../Security/SecurityQueryApiKeysRequest.g.cs | 296 -- .../SecurityQueryApiKeysResponse.g.cs | 39 - .../SecuritySamlAuthenticateRequest.g.cs | 100 - .../SecuritySamlAuthenticateResponse.g.cs | 47 - .../SecuritySamlCompleteLogoutRequest.g.cs | 118 - .../SecuritySamlCompleteLogoutResponse.g.cs | 28 - .../SecuritySamlInvalidateRequest.g.cs | 104 - .../SecuritySamlInvalidateResponse.g.cs | 39 - .../Security/SecuritySamlLogoutRequest.g.cs | 86 - .../Security/SecuritySamlLogoutResponse.g.cs | 31 - ...uritySamlPrepareAuthenticationRequest.g.cs | 108 - ...ritySamlPrepareAuthenticationResponse.g.cs | 39 - ...itySamlServiceProviderMetadataRequest.g.cs | 67 - ...tySamlServiceProviderMetadataResponse.g.cs | 31 - .../Security/SecurityUpdateApiKeyRequest.g.cs | 159 - .../SecurityUpdateApiKeyResponse.g.cs | 31 - .../Api/Slm/SlmDeleteLifecycleRequest.g.cs | 67 - .../Api/Slm/SlmDeleteLifecycleResponse.g.cs | 31 - .../Api/Slm/SlmExecuteLifecycleRequest.g.cs | 67 - .../Api/Slm/SlmExecuteLifecycleResponse.g.cs | 31 - .../Api/Slm/SlmExecuteRetentionRequest.g.cs | 53 - .../Api/Slm/SlmExecuteRetentionResponse.g.cs | 31 - .../Api/Slm/SlmGetLifecycleRequest.g.cs | 67 - .../Api/Slm/SlmGetLifecycleResponse.g.cs | 28 - .../Api/Slm/SlmGetStatsRequest.g.cs | 53 - .../Api/Slm/SlmGetStatsResponse.g.cs | 67 - .../Api/Slm/SlmGetStatusRequest.g.cs | 53 - .../Api/Slm/SlmGetStatusResponse.g.cs | 31 - .../Api/Slm/SlmPutLifecycleRequest.g.cs | 235 -- .../Api/Slm/SlmPutLifecycleResponse.g.cs | 31 - .../_Generated/Api/Slm/SlmStartRequest.g.cs | 53 - .../_Generated/Api/Slm/SlmStartResponse.g.cs | 31 - .../_Generated/Api/Slm/SlmStopRequest.g.cs | 53 - .../_Generated/Api/Slm/SlmStopResponse.g.cs | 31 - .../Api/Snapshot/CreateSnapshotRequest.g.cs | 195 -- .../Api/Snapshot/CreateSnapshotResponse.g.cs | 35 - .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 78 - .../Api/Snapshot/DeleteSnapshotResponse.g.cs | 31 - .../Api/Snapshot/GetSnapshotRequest.g.cs | 162 - .../Api/Snapshot/GetSnapshotResponse.g.cs | 43 - .../SnapshotCleanupRepositoryRequest.g.cs | 79 - .../SnapshotCleanupRepositoryResponse.g.cs | 31 - .../Api/Snapshot/SnapshotCloneRequest.g.cs | 107 - .../Api/Snapshot/SnapshotCloneResponse.g.cs | 31 - .../SnapshotCreateRepositoryRequest.g.cs | 152 - .../SnapshotCreateRepositoryResponse.g.cs | 31 - .../SnapshotDeleteRepositoryRequest.g.cs | 79 - .../SnapshotDeleteRepositoryResponse.g.cs | 31 - .../SnapshotGetRepositoryRequest.g.cs | 79 - .../SnapshotGetRepositoryResponse.g.cs | 28 - .../Api/Snapshot/SnapshotRestoreRequest.g.cs | 474 --- .../Api/Snapshot/SnapshotRestoreResponse.g.cs | 31 - .../Api/Snapshot/SnapshotStatusRequest.g.cs | 93 - .../Api/Snapshot/SnapshotStatusResponse.g.cs | 31 - .../SnapshotVerifyRepositoryRequest.g.cs | 79 - .../SnapshotVerifyRepositoryResponse.g.cs | 31 - .../Api/Ssl/SslCertificatesRequest.g.cs | 53 - .../Api/Ssl/SslCertificatesResponse.g.cs | 28 - .../TransformDeleteTransformRequest.g.cs | 79 - .../TransformDeleteTransformResponse.g.cs | 31 - .../TransformGetTransformRequest.g.cs | 93 - .../TransformGetTransformResponse.g.cs | 35 - .../TransformGetTransformStatsRequest.g.cs | 86 - .../TransformGetTransformStatsResponse.g.cs | 35 - .../TransformPreviewTransformRequest.g.cs | 834 ----- .../TransformPreviewTransformResponse.g.cs | 35 - .../TransformPutTransformRequest.g.cs | 878 ------ .../TransformPutTransformResponse.g.cs | 31 - .../TransformResetTransformRequest.g.cs | 98 - .../TransformResetTransformResponse.g.cs | 31 - .../TransformStartTransformRequest.g.cs | 72 - .../TransformStartTransformResponse.g.cs | 31 - .../TransformStopTransformRequest.g.cs | 100 - .../TransformStopTransformResponse.g.cs | 31 - .../TransformUpdateTransformRequest.g.cs | 686 ----- .../TransformUpdateTransformResponse.g.cs | 83 - .../TransformUpgradeTransformsRequest.g.cs | 65 - .../TransformUpgradeTransformsResponse.g.cs | 39 - .../Api/Xpack/XpackInfoRequest.g.cs | 65 - .../Api/Xpack/XpackInfoResponse.g.cs | 43 - .../Api/Xpack/XpackUsageRequest.g.cs | 58 - .../Api/Xpack/XpackUsageResponse.g.cs | 139 - .../ElasticsearchClient.Autoscaling.g.cs | 199 -- .../Client/ElasticsearchClient.Ccr.g.cs | 839 ----- .../Client/ElasticsearchClient.Cluster.g.cs | 620 ---- .../ElasticsearchClient.DanglingIndices.g.cs | 73 - .../Client/ElasticsearchClient.Enrich.g.cs | 257 -- .../Client/ElasticsearchClient.Features.g.cs | 73 - .../Client/ElasticsearchClient.Graph.g.cs | 89 - .../Client/ElasticsearchClient.Ilm.g.cs | 677 ---- .../Client/ElasticsearchClient.Ingest.g.cs | 347 --- .../Client/ElasticsearchClient.License.g.cs | 325 -- .../Client/ElasticsearchClient.Ml.g.cs | 2719 ----------------- .../Client/ElasticsearchClient.Nodes.g.cs | 257 -- ...asticsearchClient.SearchableSnapshots.g.cs | 131 - .../Client/ElasticsearchClient.Security.g.cs | 1365 --------- .../Client/ElasticsearchClient.Slm.g.cs | 409 --- .../Client/ElasticsearchClient.Snapshot.g.cs | 509 --- .../Client/ElasticsearchClient.Ssl.g.cs | 73 - ...asticsearchClient.TransformManagement.g.cs | 499 --- .../Client/ElasticsearchClient.Xpack.g.cs | 115 - .../Client/ElasticsearchClient.g.cs | 72 - .../Autoscaling/AutoscalingCapacity.g.cs | 37 - .../Types/Autoscaling/AutoscalingDecider.g.cs | 41 - .../Autoscaling/AutoscalingDeciders.g.cs | 45 - .../Types/Autoscaling/AutoscalingNode.g.cs | 33 - .../Autoscaling/AutoscalingResources.g.cs | 37 - .../Types/Ccr/AutoFollowPattern.g.cs | 37 - .../Types/Ccr/AutoFollowPatternSummary.g.cs | 53 - .../_Generated/Types/Ccr/AutoFollowStats.g.cs | 49 - .../Types/Ccr/AutoFollowedCluster.g.cs | 41 - .../Types/Ccr/FollowIndexStats.g.cs | 37 - .../_Generated/Types/Ccr/FollowStats.g.cs | 33 - .../_Generated/Types/Ccr/FollowerIndex.g.cs | 45 - .../Types/Ccr/FollowerIndexParameters.g.cs | 69 - .../_Generated/Types/Ccr/ReadException.g.cs | 41 - .../_Generated/Types/Ccr/ShardStats.g.cs | 161 - .../Types/Cluster/AllocationDecision.g.cs | 41 - .../Types/Cluster/AllocationStore.g.cs | 53 - .../Types/Cluster/CharFilterTypes.g.cs | 57 - .../Types/Cluster/ClusterFileSystem.g.cs | 41 - .../Types/Cluster/ClusterIndices.g.cs | 73 - .../Types/Cluster/ClusterIndicesShards.g.cs | 45 - .../Cluster/ClusterIndicesShardsIndex.g.cs | 41 - .../_Generated/Types/Cluster/ClusterInfo.g.cs | 49 - .../Types/Cluster/ClusterIngest.g.cs | 37 - .../_Generated/Types/Cluster/ClusterJvm.g.cs | 45 - .../Types/Cluster/ClusterJvmMemory.g.cs | 37 - .../Types/Cluster/ClusterJvmVersion.g.cs | 57 - .../Types/Cluster/ClusterNetworkTypes.g.cs | 37 - .../Types/Cluster/ClusterNodeCount.g.cs | 85 - .../Types/Cluster/ClusterNodes.g.cs | 77 - .../Types/Cluster/ClusterOperatingSystem.g.cs | 53 - .../ClusterOperatingSystemArchitecture.g.cs | 37 - .../Cluster/ClusterOperatingSystemName.g.cs | 37 - .../ClusterOperatingSystemPrettyName.g.cs | 37 - .../Types/Cluster/ClusterProcess.g.cs | 37 - .../Types/Cluster/ClusterProcessCpu.g.cs | 33 - .../ClusterProcessOpenFileDescriptors.g.cs | 41 - .../Types/Cluster/ClusterProcessor.g.cs | 49 - .../Types/Cluster/ClusterShardMetrics.g.cs | 41 - .../_Generated/Types/Cluster/Command.g.cs | 293 -- .../Cluster/CommandAllocatePrimaryAction.g.cs | 99 - .../Cluster/CommandAllocateReplicaAction.g.cs | 85 - .../Types/Cluster/CommandCancelAction.g.cs | 103 - .../Types/Cluster/CommandMoveAction.g.cs | 99 - .../Types/Cluster/ComponentTemplate.g.cs | 33 - .../_Generated/Types/Cluster/CurrentNode.g.cs | 49 - .../_Generated/Types/Cluster/DiskUsage.g.cs | 53 - .../_Generated/Types/Cluster/FieldTypes.g.cs | 45 - .../Types/Cluster/FieldTypesMappings.g.cs | 37 - .../Types/Cluster/IndexingPressure.g.cs | 33 - .../Types/Cluster/IndexingPressureMemory.g.cs | 41 - .../IndexingPressureMemorySummary.g.cs | 61 - .../Types/Cluster/IndicesVersions.g.cs | 45 - .../Cluster/NodeAllocationExplanation.g.cs | 61 - .../Types/Cluster/NodeDiskUsage.g.cs | 41 - .../Types/Cluster/NodePackagingType.g.cs | 41 - .../Cluster/OperatingSystemMemoryInfo.g.cs | 53 - .../_Generated/Types/Cluster/PendingTask.g.cs | 53 - .../Types/Cluster/RerouteDecision.g.cs | 41 - .../Types/Cluster/RerouteExplanation.g.cs | 41 - .../Types/Cluster/RerouteParameters.g.cs | 53 - .../Types/Cluster/ReservedSize.g.cs | 45 - .../Types/Cluster/RuntimeFieldTypes.g.cs | 85 - .../Types/DanglingIndices/DanglingIndex.g.cs | 45 - .../_Generated/Types/Enrich/CacheStats.g.cs | 49 - .../Types/Enrich/Configuration.g.cs | 41 - .../Types/Enrich/CoordinatorStats.g.cs | 49 - .../Enrich/ExecuteEnrichPolicyStatus.g.cs | 33 - .../Types/Enrich/ExecutingPolicy.g.cs | 37 - .../_Generated/Types/Enrich/Policy.g.cs | 229 -- .../_Generated/Types/Enrich/Summary.g.cs | 33 - .../_Generated/Types/Enums/Enums.Ccr.g.cs | 68 - .../_Generated/Types/Enums/Enums.Cluster.g.cs | 140 - .../_Generated/Types/Enums/Enums.Enrich.g.cs | 82 - .../_Generated/Types/Enums/Enums.Ingest.g.cs | 243 -- .../_Generated/Types/Enums/Enums.License.g.cs | 173 -- .../_Generated/Types/Enums/Enums.Ml.g.cs | 777 ----- .../Types/Enums/Enums.NoNamespace.g.cs | 112 - .../Enums/Enums.SearchableSnapshots.g.cs | 75 - .../Types/Enums/Enums.Security.g.cs | 572 ---- .../Types/Enums/Enums.Snapshot.g.cs | 166 - .../_Generated/Types/Enums/Enums.Watcher.g.cs | 82 - .../_Generated/Types/Features/Feature.g.cs | 37 - .../_Generated/Types/Graph/Connection.g.cs | 45 - .../Types/Graph/ExploreControls.g.cs | 241 -- .../_Generated/Types/Graph/Hop.g.cs | 403 --- .../Types/Graph/SampleDiversity.g.cs | 123 - .../_Generated/Types/Graph/Vertex.g.cs | 45 - .../Types/Graph/VertexDefinition.g.cs | 381 --- .../_Generated/Types/Graph/VertexInclude.g.cs | 71 - .../_Generated/Types/Ilm/Configurations.g.cs | 41 - .../Types/Ilm/ForceMergeConfiguration.g.cs | 33 - .../Types/Ilm/LifecycleExplain.g.cs | 57 - .../Types/Ilm/LifecycleExplainManaged.g.cs | 120 - .../Ilm/LifecycleExplainPhaseExecution.g.cs | 41 - .../Types/Ilm/LifecycleExplainUnmanaged.g.cs | 37 - .../_Generated/Types/Ilm/Phase.g.cs | 41 - .../_Generated/Types/Ilm/Phases.g.cs | 45 - .../Types/Ilm/ShrinkConfiguration.g.cs | 33 - .../_Generated/Types/Ilm/StepKey.g.cs | 85 - .../IndexManagement/AliasDefinition.g.cs | 313 -- .../Types/IndexManagement/IndexState.g.cs | 409 --- .../_Generated/Types/IndicesOptions.g.cs | 116 - .../Types/Ingest/AppendProcessor.g.cs | 405 --- .../Types/Ingest/AttachmentProcessor.g.cs | 577 ---- .../Types/Ingest/BytesProcessor.g.cs | 431 --- .../Types/Ingest/CircleProcessor.g.cs | 463 --- .../Types/Ingest/ConvertProcessor.g.cs | 447 --- .../_Generated/Types/Ingest/CsvProcessor.g.cs | 563 ---- .../Types/Ingest/DateIndexNameProcessor.g.cs | 493 --- .../Types/Ingest/DateProcessor.g.cs | 487 --- .../Types/Ingest/DissectProcessor.g.cs | 421 --- .../_Generated/Types/Ingest/Document.g.cs | 91 - .../Types/Ingest/DocumentSimulation.g.cs | 53 - .../Types/Ingest/DotExpanderProcessor.g.cs | 381 --- .../Types/Ingest/DropProcessor.g.cs | 307 -- .../Types/Ingest/EnrichProcessor.g.cs | 543 ---- .../Types/Ingest/FailProcessor.g.cs | 331 -- .../Types/Ingest/ForeachProcessor.g.cs | 477 --- .../Types/Ingest/GeoIpDownloadStatistics.g.cs | 49 - .../Types/Ingest/GeoIpNodeDatabaseName.g.cs | 33 - .../Types/Ingest/GeoIpNodeDatabases.g.cs | 37 - .../Types/Ingest/GeoIpProcessor.g.cs | 487 --- .../Types/Ingest/GrokProcessor.g.cs | 461 --- .../Types/Ingest/GsubProcessor.g.cs | 479 --- .../Types/Ingest/InferenceConfig.g.cs | 229 -- .../Ingest/InferenceConfigClassification.g.cs | 253 -- .../Ingest/InferenceConfigRegression.g.cs | 139 - .../Types/Ingest/InferenceProcessor.g.cs | 501 --- .../_Generated/Types/Ingest/Ingest.g.cs | 37 - .../Types/Ingest/JoinProcessor.g.cs | 423 --- .../Types/Ingest/JsonProcessor.g.cs | 415 --- .../Types/Ingest/KeyValueProcessor.g.cs | 671 ---- .../Types/Ingest/LowercaseProcessor.g.cs | 431 --- .../_Generated/Types/Ingest/Pipeline.g.cs | 429 --- .../Types/Ingest/PipelineProcessor.g.cs | 331 -- .../Types/Ingest/PipelineSimulation.g.cs | 49 - .../Types/Ingest/ProcessorContainer.g.cs | 725 ----- .../Types/Ingest/RemoveProcessor.g.cs | 381 --- .../Types/Ingest/RenameProcessor.g.cs | 423 --- .../_Generated/Types/Ingest/SetProcessor.g.cs | 401 --- .../Ingest/SetSecurityUserProcessor.g.cs | 381 --- .../Types/Ingest/SortProcessor.g.cs | 415 --- .../Types/Ingest/SplitProcessor.g.cs | 487 --- .../Types/Ingest/TrimProcessor.g.cs | 431 --- .../Types/Ingest/UppercaseProcessor.g.cs | 431 --- .../Types/Ingest/UrlDecodeProcessor.g.cs | 431 --- .../Types/Ingest/UserAgentProcessor.g.cs | 463 --- .../Types/License/Acknowledgement.g.cs | 37 - .../_Generated/Types/License/License.g.cs | 195 -- .../Types/License/LicenseInformation.g.cs | 77 - .../_Generated/Types/Ml/AggregateOutput.g.cs | 243 -- .../_Generated/Types/Ml/AnalysisConfig.g.cs | 623 ---- .../Types/Ml/AnalysisConfigRead.g.cs | 73 - .../_Generated/Types/Ml/AnalysisLimits.g.cs | 79 - .../Types/Ml/AnalysisMemoryLimit.g.cs | 57 - .../_Generated/Types/Ml/Anomaly.g.cs | 117 - .../_Generated/Types/Ml/AnomalyCause.g.cs | 85 - .../_Generated/Types/Ml/AnomalyDetectors.g.cs | 49 - .../Types/Ml/ApiKeyAuthorization.g.cs | 37 - .../_Generated/Types/Ml/Calendar.g.cs | 41 - .../_Generated/Types/Ml/CalendarEvent.g.cs | 121 - .../Types/Ml/CategorizationAnalyzer.g.cs | 38 - .../Ml/CategorizationAnalyzerDefinition.g.cs | 97 - .../_Generated/Types/Ml/ChunkingConfig.g.cs | 75 - .../Types/Ml/ConfusionMatrixItem.g.cs | 45 - .../Types/Ml/ConfusionMatrixPrediction.g.cs | 37 - .../Types/Ml/ConfusionMatrixThreshold.g.cs | 45 - .../_Generated/Types/Ml/DataCounts.g.cs | 105 - .../_Generated/Types/Ml/DataDescription.g.cs | 203 -- .../_Generated/Types/Ml/Datafeed.g.cs | 196 -- .../Types/Ml/DatafeedAuthorization.g.cs | 41 - .../_Generated/Types/Ml/DatafeedConfig.g.cs | 952 ------ .../_Generated/Types/Ml/Datafeeds.g.cs | 33 - .../Ml/DataframeAnalysisAnalyzedFields.g.cs | 71 - .../Ml/DataframeAnalysisClassification.g.cs | 1050 ------- .../Types/Ml/DataframeAnalysisContainer.g.cs | 244 -- .../Ml/DataframeAnalysisFeatureProcessor.g.cs | 276 -- ...ysisFeatureProcessorFrequencyEncoding.g.cs | 147 - ...AnalysisFeatureProcessorMultiEncoding.g.cs | 57 - ...AnalysisFeatureProcessorNGramEncoding.g.cs | 251 -- ...nalysisFeatureProcessorOneHotEncoding.g.cs | 123 - ...sisFeatureProcessorTargetMeanEncoding.g.cs | 171 -- .../Ml/DataframeAnalysisOutlierDetection.g.cs | 151 - .../Types/Ml/DataframeAnalysisRegression.g.cs | 1050 ------- .../Types/Ml/DataframeAnalytics.g.cs | 57 - .../Ml/DataframeAnalyticsAuthorization.g.cs | 41 - .../Ml/DataframeAnalyticsDestination.g.cs | 131 - .../Ml/DataframeAnalyticsFieldSelection.g.cs | 53 - .../DataframeAnalyticsMemoryEstimation.g.cs | 37 - .../Types/Ml/DataframeAnalyticsSource.g.cs | 305 -- .../Ml/DataframeAnalyticsStatsDataCounts.g.cs | 41 - .../DataframeAnalyticsStatsMemoryUsage.g.cs | 45 - .../Ml/DataframeAnalyticsStatsProgress.g.cs | 37 - .../Types/Ml/DataframeAnalyticsSummary.g.cs | 77 - .../Ml/DataframeClassificationSummary.g.cs | 49 - ...ataframeClassificationSummaryAccuracy.g.cs | 37 - ...ationSummaryMulticlassConfusionMatrix.g.cs | 37 - ...taframeClassificationSummaryPrecision.g.cs | 37 - .../DataframeClassificationSummaryRecall.g.cs | 37 - .../Types/Ml/DataframeEvaluationClass.g.cs | 37 - .../Ml/DataframeEvaluationClassification.g.cs | 295 -- ...aframeEvaluationClassificationMetrics.g.cs | 165 - ...EvaluationClassificationMetricsAucRoc.g.cs | 79 - .../Ml/DataframeEvaluationContainer.g.cs | 245 -- .../DataframeEvaluationOutlierDetection.g.cs | 237 -- ...rameEvaluationOutlierDetectionMetrics.g.cs | 147 - .../Ml/DataframeEvaluationRegression.g.cs | 237 -- .../DataframeEvaluationRegressionMetrics.g.cs | 179 -- ...frameEvaluationRegressionMetricsHuber.g.cs | 61 - ...aframeEvaluationRegressionMetricsMsle.g.cs | 61 - .../Ml/DataframeEvaluationSummaryAucRoc.g.cs | 37 - ...frameEvaluationSummaryAucRocCurveItem.g.cs | 41 - .../Types/Ml/DataframeEvaluationValue.g.cs | 33 - .../Ml/DataframeOutlierDetectionSummary.g.cs | 45 - .../Types/Ml/DataframePreviewConfig.g.cs | 409 --- .../Types/Ml/DataframeRegressionSummary.g.cs | 45 - .../_Generated/Types/Ml/Defaults.g.cs | 37 - .../_Generated/Types/Ml/Definition.g.cs | 307 -- .../Types/Ml/DelayedDataCheckConfig.g.cs | 75 - .../_Generated/Types/Ml/DetectionRule.g.cs | 158 - .../_Generated/Types/Ml/Detector.g.cs | 563 ---- .../_Generated/Types/Ml/DetectorRead.g.cs | 69 - .../_Generated/Types/Ml/DiscoveryNode.g.cs | 49 - .../_Generated/Types/Ml/Ensemble.g.cs | 226 -- .../_Generated/Types/Ml/FilterRef.g.cs | 75 - .../Ml/FrequencyEncodingPreprocessor.g.cs | 129 - .../_Generated/Types/Ml/Hyperparameter.g.cs | 49 - .../_Generated/Types/Ml/Influence.g.cs | 37 - .../_Generated/Types/Ml/Influencer.g.cs | 73 - .../_Generated/Types/Ml/Input.g.cs | 57 - .../_Generated/Types/Ml/Job.g.cs | 121 - .../_Generated/Types/Ml/JobBlocked.g.cs | 37 - .../_Generated/Types/Ml/JobConfig.g.cs | 921 ------ .../Types/Ml/JobForecastStatistics.g.cs | 53 - .../_Generated/Types/Ml/JobStatistics.g.cs | 45 - .../_Generated/Types/Ml/JobStats.g.cs | 69 - .../_Generated/Types/Ml/JobTimingStats.g.cs | 61 - .../_Generated/Types/Ml/JvmStats.g.cs | 53 - .../_Generated/Types/Ml/Limits.g.cs | 41 - .../_Generated/Types/Ml/MemMlStats.g.cs | 69 - .../_Generated/Types/Ml/MemStats.g.cs | 49 - .../_Generated/Types/Ml/Memory.g.cs | 57 - .../_Generated/Types/Ml/ModelPlotConfig.g.cs | 171 -- .../_Generated/Types/Ml/ModelSizeStats.g.cs | 113 - .../_Generated/Types/Ml/ModelSnapshot.g.cs | 69 - .../_Generated/Types/Ml/NativeCode.g.cs | 37 - .../Types/Ml/OneHotEncodingPreprocessor.g.cs | 105 - .../_Generated/Types/Ml/OverallBucket.g.cs | 57 - .../_Generated/Types/Ml/OverallBucketJob.g.cs | 37 - .../_Generated/Types/Ml/Page.g.cs | 79 - .../Types/Ml/PerPartitionCategorization.g.cs | 79 - .../_Generated/Types/Ml/Preprocessor.g.cs | 245 -- .../_Generated/Types/Ml/RuleCondition.g.cs | 85 - .../Ml/TargetMeanEncodingPreprocessor.g.cs | 153 - .../Types/Ml/TotalFeatureImportance.g.cs | 41 - .../Types/Ml/TotalFeatureImportanceClass.g.cs | 37 - .../Ml/TotalFeatureImportanceStatistics.g.cs | 41 - .../_Generated/Types/Ml/TrainedModel.g.cs | 193 -- .../TrainedModelAssignmentRoutingTable.g.cs | 45 - .../Types/Ml/TrainedModelConfigInput.g.cs | 33 - .../Types/Ml/TrainedModelConfigMetadata.g.cs | 45 - ...rainedModelDeploymentAllocationStatus.g.cs | 41 - .../Ml/TrainedModelDeploymentNodesStats.g.cs | 77 - .../Types/Ml/TrainedModelDeploymentStats.g.cs | 81 - .../Types/Ml/TrainedModelInferenceStats.g.cs | 49 - .../Types/Ml/TrainedModelLocation.g.cs | 33 - .../Types/Ml/TrainedModelLocationIndex.g.cs | 33 - .../Types/Ml/TrainedModelSizeStats.g.cs | 37 - .../Types/Ml/TrainedModelStats.g.cs | 53 - .../_Generated/Types/Ml/TrainedModelTree.g.cs | 172 -- .../Types/Ml/TrainedModelTreeNode.g.cs | 201 -- .../Types/Ml/TransformAuthorization.g.cs | 41 - .../_Generated/Types/Ml/Weights.g.cs | 42 - .../_Generated/Types/NodeStatistics.g.cs | 45 - .../Types/Nodes/AdaptiveSelection.g.cs | 57 - .../_Generated/Types/Nodes/Breaker.g.cs | 53 - .../_Generated/Types/Nodes/Cgroup.g.cs | 41 - .../_Generated/Types/Nodes/CgroupCpu.g.cs | 45 - .../_Generated/Types/Nodes/CgroupCpuStat.g.cs | 41 - .../_Generated/Types/Nodes/CgroupMemory.g.cs | 41 - .../_Generated/Types/Nodes/Client.g.cs | 73 - .../Types/Nodes/ClusterAppliedStats.g.cs | 33 - .../Types/Nodes/ClusterStateQueue.g.cs | 41 - .../Types/Nodes/ClusterStateUpdate.g.cs | 89 - .../_Generated/Types/Nodes/Context.g.cs | 41 - .../_Generated/Types/Nodes/Cpu.g.cs | 61 - .../_Generated/Types/Nodes/CpuAcct.g.cs | 37 - .../_Generated/Types/Nodes/DataPathStats.g.cs | 93 - .../Types/Nodes/DeprecationIndexing.g.cs | 33 - .../_Generated/Types/Nodes/Discovery.g.cs | 49 - .../Types/Nodes/ExtendedMemoryStats.g.cs | 77 - .../_Generated/Types/Nodes/FileSystem.g.cs | 45 - .../Types/Nodes/FileSystemTotal.g.cs | 53 - .../Types/Nodes/GarbageCollector.g.cs | 33 - .../Types/Nodes/GarbageCollectorTotal.g.cs | 41 - .../_Generated/Types/Nodes/HotThread.g.cs | 45 - .../_Generated/Types/Nodes/Http.g.cs | 41 - .../Types/Nodes/IndexingPressure.g.cs | 33 - .../Types/Nodes/IndexingPressureMemory.g.cs | 41 - .../_Generated/Types/Nodes/Ingest.g.cs | 37 - .../_Generated/Types/Nodes/IngestTotal.g.cs | 49 - .../_Generated/Types/Nodes/IoStatDevice.g.cs | 53 - .../_Generated/Types/Nodes/IoStats.g.cs | 37 - .../_Generated/Types/Nodes/Jvm.g.cs | 61 - .../_Generated/Types/Nodes/JvmClasses.g.cs | 41 - .../Types/Nodes/JvmMemoryStats.g.cs | 57 - .../_Generated/Types/Nodes/JvmThreads.g.cs | 37 - .../Types/Nodes/KeyedProcessor.g.cs | 37 - .../_Generated/Types/Nodes/MemoryStats.g.cs | 69 - .../Types/Nodes/NodeBufferPool.g.cs | 49 - .../_Generated/Types/Nodes/NodeInfo.g.cs | 121 - .../Types/Nodes/NodeInfoAction.g.cs | 33 - .../Types/Nodes/NodeInfoBootstrap.g.cs | 33 - .../Types/Nodes/NodeInfoClient.g.cs | 33 - .../Types/Nodes/NodeInfoDiscover.g.cs | 33 - .../_Generated/Types/Nodes/NodeInfoHttp.g.cs | 45 - .../Types/Nodes/NodeInfoIngest.g.cs | 33 - .../Types/Nodes/NodeInfoIngestDownloader.g.cs | 33 - .../Types/Nodes/NodeInfoIngestInfo.g.cs | 33 - .../Types/Nodes/NodeInfoIngestProcessor.g.cs | 33 - .../Types/Nodes/NodeInfoJvmMemory.g.cs | 69 - .../Types/Nodes/NodeInfoMemory.g.cs | 37 - .../Types/Nodes/NodeInfoNetwork.g.cs | 37 - .../Types/Nodes/NodeInfoNetworkInterface.g.cs | 41 - .../_Generated/Types/Nodes/NodeInfoOSCPU.g.cs | 61 - .../_Generated/Types/Nodes/NodeInfoPath.g.cs | 45 - .../Types/Nodes/NodeInfoRepositories.g.cs | 33 - .../Types/Nodes/NodeInfoRepositoriesUrl.g.cs | 33 - .../Types/Nodes/NodeInfoScript.g.cs | 37 - .../Types/Nodes/NodeInfoSearch.g.cs | 33 - .../Types/Nodes/NodeInfoSearchRemote.g.cs | 33 - .../Types/Nodes/NodeInfoSettings.g.cs | 89 - .../Types/Nodes/NodeInfoSettingsCluster.g.cs | 49 - .../NodeInfoSettingsClusterElection.g.cs | 33 - .../Types/Nodes/NodeInfoSettingsHttp.g.cs | 45 - .../Types/Nodes/NodeInfoSettingsHttpType.g.cs | 33 - .../Types/Nodes/NodeInfoSettingsIngest.g.cs | 165 - .../Types/Nodes/NodeInfoSettingsNetwork.g.cs | 33 - .../Types/Nodes/NodeInfoSettingsNode.g.cs | 41 - .../Nodes/NodeInfoSettingsTransport.g.cs | 41 - .../NodeInfoSettingsTransportFeatures.g.cs | 33 - .../Nodes/NodeInfoSettingsTransportType.g.cs | 33 - .../Types/Nodes/NodeInfoTransport.g.cs | 41 - .../_Generated/Types/Nodes/NodeInfoXpack.g.cs | 41 - .../Types/Nodes/NodeInfoXpackLicense.g.cs | 33 - .../Types/Nodes/NodeInfoXpackLicenseType.g.cs | 33 - .../Types/Nodes/NodeInfoXpackSecurity.g.cs | 45 - .../Nodes/NodeInfoXpackSecurityAuthc.g.cs | 37 - .../NodeInfoXpackSecurityAuthcRealms.g.cs | 41 - ...odeInfoXpackSecurityAuthcRealmsStatus.g.cs | 37 - .../NodeInfoXpackSecurityAuthcToken.g.cs | 33 - .../Types/Nodes/NodeInfoXpackSecuritySsl.g.cs | 33 - .../_Generated/Types/Nodes/NodeJvmInfo.g.cs | 81 - .../Types/Nodes/NodeOperatingSystemInfo.g.cs | 69 - .../Types/Nodes/NodeProcessInfo.g.cs | 41 - .../Types/Nodes/NodeReloadError.g.cs | 37 - .../Types/Nodes/NodeReloadResult.g.cs | 38 - .../Types/Nodes/NodeThreadPoolInfo.g.cs | 53 - .../_Generated/Types/Nodes/NodeUsage.g.cs | 45 - .../Types/Nodes/OperatingSystem.g.cs | 49 - .../_Generated/Types/Nodes/Pool.g.cs | 45 - .../Types/Nodes/PressureMemory.g.cs | 61 - .../_Generated/Types/Nodes/Process.g.cs | 49 - .../_Generated/Types/Nodes/Processor.g.cs | 45 - .../Types/Nodes/PublishedClusterStates.g.cs | 41 - .../_Generated/Types/Nodes/Recording.g.cs | 45 - .../_Generated/Types/Nodes/ScriptCache.g.cs | 45 - .../_Generated/Types/Nodes/Scripting.g.cs | 45 - .../Types/Nodes/SerializedClusterState.g.cs | 37 - .../Nodes/SerializedClusterStateDetail.g.cs | 49 - .../_Generated/Types/Nodes/Stats.g.cs | 117 - .../_Generated/Types/Nodes/ThreadCount.g.cs | 53 - .../_Generated/Types/Nodes/Transport.g.cs | 69 - .../Types/Nodes/TransportHistogram.g.cs | 41 - .../_Generated/Types/Percentage.g.cs | 38 - .../_Generated/Types/PluginStats.g.cs | 69 - .../SearchableSnapshots/MountedSnapshot.g.cs | 41 - .../_Generated/Types/Security/ApiKey.g.cs | 61 - .../ApplicationGlobalUserPrivileges.g.cs | 93 - .../Types/Security/ApplicationPrivileges.g.cs | 85 - .../Security/ApplicationPrivilegesCheck.g.cs | 85 - .../Types/Security/AuthenticatedUser.g.cs | 69 - .../Security/AuthenticationProvider.g.cs | 37 - .../Types/Security/ClusterNode.g.cs | 33 - .../Types/Security/FieldSecurity.g.cs | 99 - .../Types/Security/GlobalPrivilege.g.cs | 93 - .../Types/Security/GrantApiKey.g.cs | 93 - .../Types/Security/IndexPrivilegesCheck.g.cs | 89 - .../Types/Security/IndicesPrivileges.g.cs | 186 -- .../Security/IndicesPrivilegesQuery.g.cs | 31 - .../Types/Security/ManageUserPrivileges.g.cs | 57 - .../_Generated/Types/Security/RealmInfo.g.cs | 37 - .../Types/Security/RoleDescriptor.g.cs | 479 --- .../Security/RoleTemplateInlineScript.g.cs | 111 - .../Types/Security/RoleTemplateQuery.g.cs | 61 - .../Types/Security/RoleTemplateScript.g.cs | 38 - .../_Generated/Types/Security/Token.g.cs | 37 - .../Security/TransientMetadataConfig.g.cs | 57 - .../_Generated/Types/Security/UserRealm.g.cs | 37 - .../_Generated/Types/Slm/Configuration.g.cs | 147 - .../_Generated/Types/Slm/Retention.g.cs | 85 - .../_Generated/Types/Slm/Statistics.g.cs | 142 - .../Snapshot/CleanupRepositoryResults.g.cs | 37 - .../Types/Snapshot/CompactNodeInfo.g.cs | 33 - .../Snapshot/FileCountSnapshotStats.g.cs | 37 - .../Types/Snapshot/IndexDetails.g.cs | 45 - .../Types/Snapshot/InfoFeatureState.g.cs | 37 - .../Types/Snapshot/RepositorySettings.g.cs | 200 -- .../Types/Snapshot/ShardsStats.g.cs | 53 - .../Types/Snapshot/ShardsStatsSummary.g.cs | 49 - .../Snapshot/ShardsStatsSummaryItem.g.cs | 37 - .../Types/Snapshot/SnapshotIndexStats.g.cs | 41 - .../Types/Snapshot/SnapshotInfo.g.cs | 113 - .../Types/Snapshot/SnapshotResponseItem.g.cs | 41 - .../Types/Snapshot/SnapshotRestore.g.cs | 41 - .../Types/Snapshot/SnapshotShardFailure.g.cs | 49 - .../Types/Snapshot/SnapshotShardsStatus.g.cs | 37 - .../Types/Snapshot/SnapshotStats.g.cs | 49 - .../_Generated/Types/Snapshot/Status.g.cs | 61 - .../TransformManagement/CheckpointStats.g.cs | 53 - .../TransformManagement/Checkpointing.g.cs | 53 - .../TransformManagement/Destination.g.cs | 79 - .../Types/TransformManagement/Latest.g.cs | 123 - .../Types/TransformManagement/Pivot.g.cs | 124 - .../TransformManagement/RetentionPolicy.g.cs | 123 - .../RetentionPolicyContainer.g.cs | 213 -- .../Types/TransformManagement/Settings.g.cs | 133 - .../Types/TransformManagement/Source.g.cs | 209 -- .../TransformManagement/SyncContainer.g.cs | 213 -- .../Types/TransformManagement/TimeSync.g.cs | 131 - .../TransformIndexerStats.g.cs | 97 - .../TransformProgress.g.cs | 49 - .../TransformManagement/TransformStats.g.cs | 53 - .../TransformManagement/TransformSummary.g.cs | 85 - .../_Generated/Types/Xpack/AllJobs.g.cs | 49 - .../_Generated/Types/Xpack/Analytics.g.cs | 41 - .../Types/Xpack/AnalyticsStatistics.g.cs | 65 - .../_Generated/Types/Xpack/Archive.g.cs | 41 - .../_Generated/Types/Xpack/Audit.g.cs | 37 - .../_Generated/Types/Xpack/Base.g.cs | 37 - .../Types/Xpack/BuildInformation.g.cs | 37 - .../_Generated/Types/Xpack/Ccr.g.cs | 45 - .../_Generated/Types/Xpack/Counter.g.cs | 37 - .../_Generated/Types/Xpack/DataStreams.g.cs | 41 - .../Types/Xpack/DataTierPhaseStatistics.g.cs | 69 - .../_Generated/Types/Xpack/DataTiers.g.cs | 57 - .../_Generated/Types/Xpack/Datafeed.g.cs | 33 - .../_Generated/Types/Xpack/Eql.g.cs | 45 - .../_Generated/Types/Xpack/EqlFeatures.g.cs | 57 - .../Types/Xpack/EqlFeaturesJoin.g.cs | 49 - .../Types/Xpack/EqlFeaturesKeys.g.cs | 49 - .../Types/Xpack/EqlFeaturesPipes.g.cs | 37 - .../Types/Xpack/EqlFeaturesSequences.g.cs | 53 - .../_Generated/Types/Xpack/Feature.g.cs | 45 - .../_Generated/Types/Xpack/FeatureToggle.g.cs | 33 - .../_Generated/Types/Xpack/Features.g.cs | 141 - .../_Generated/Types/Xpack/Flattened.g.cs | 41 - .../_Generated/Types/Xpack/FrozenIndices.g.cs | 41 - .../_Generated/Types/Xpack/Ilm.g.cs | 37 - .../Types/Xpack/IlmPolicyStatistics.g.cs | 37 - .../_Generated/Types/Xpack/IpFilter.g.cs | 37 - .../_Generated/Types/Xpack/Jobs.g.cs | 68 - .../Types/Xpack/MachineLearning.g.cs | 57 - .../Xpack/MinimalLicenseInformation.g.cs | 49 - .../_Generated/Types/Xpack/MlCounter.g.cs | 33 - .../Types/Xpack/MlDataFrameAnalyticsJobs.g.cs | 45 - .../MlDataFrameAnalyticsJobsAnalysis.g.cs | 41 - .../Xpack/MlDataFrameAnalyticsJobsCount.g.cs | 33 - .../Xpack/MlDataFrameAnalyticsJobsMemory.g.cs | 33 - .../_Generated/Types/Xpack/MlInference.g.cs | 41 - .../Types/Xpack/MlInferenceDeployments.g.cs | 45 - .../Xpack/MlInferenceDeploymentsTimeMs.g.cs | 33 - .../Xpack/MlInferenceIngestProcessor.g.cs | 45 - .../MlInferenceIngestProcessorCount.g.cs | 41 - .../Types/Xpack/MlInferenceTrainedModels.g.cs | 49 - .../Xpack/MlInferenceTrainedModelsCount.g.cs | 53 - .../_Generated/Types/Xpack/Monitoring.g.cs | 45 - .../Types/Xpack/NativeCodeInformation.g.cs | 37 - .../_Generated/Types/Xpack/Query.g.cs | 45 - .../_Generated/Types/Xpack/Realm.g.cs | 69 - .../_Generated/Types/Xpack/RealmCache.g.cs | 33 - .../_Generated/Types/Xpack/RoleMapping.g.cs | 37 - .../Types/Xpack/RuntimeFieldTypes.g.cs | 41 - .../Types/Xpack/RuntimeFieldsType.g.cs | 85 - .../Types/Xpack/SearchableSnapshots.g.cs | 49 - .../_Generated/Types/Xpack/Security.g.cs | 85 - .../_Generated/Types/Xpack/SecurityRoles.g.cs | 41 - .../Types/Xpack/SecurityRolesDls.g.cs | 33 - .../Xpack/SecurityRolesDlsBitSetCache.g.cs | 41 - .../Types/Xpack/SecurityRolesFile.g.cs | 41 - .../Types/Xpack/SecurityRolesNative.g.cs | 41 - .../_Generated/Types/Xpack/Slm.g.cs | 45 - .../_Generated/Types/Xpack/Sql.g.cs | 45 - .../_Generated/Types/Xpack/Ssl.g.cs | 37 - .../_Generated/Types/Xpack/Vector.g.cs | 49 - .../_Generated/Types/Xpack/Watcher.g.cs | 49 - .../Types/Xpack/WatcherActionTotals.g.cs | 37 - .../Types/Xpack/WatcherActions.g.cs | 33 - .../_Generated/Types/Xpack/WatcherWatch.g.cs | 45 - .../Types/Xpack/WatcherWatchTrigger.g.cs | 37 - .../Xpack/WatcherWatchTriggerSchedule.g.cs | 45 - .../ClusterAllocationExplainApiTests.cs | 274 +- ...tionExplainResponseDeserialisationTests.cs | 142 +- .../ClusterPendingTasksApiTests.cs | 50 +- ...endingTasksResponseDeserialisationTests.cs | 96 +- .../ClusterState/ClusterStateApiTests.cs | 122 +- .../MachineLearningJobsSerializationTests.cs | 52 +- 912 files changed, 400 insertions(+), 104256 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Autoscaling.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TransformManagement.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingCapacity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDecider.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDeciders.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingResources.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPattern.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPatternSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowedCluster.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowIndexStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndexParameters.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ReadException.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ShardStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/Command.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocatePrimaryAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocateReplicaAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandCancelAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandMoveAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteDecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteParameters.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Configuration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Policy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Summary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ccr.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.License.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchableSnapshots.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Configurations.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ForceMergeConfiguration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplain.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phase.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ShrinkConfiguration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ProcessorContainer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/License/Acknowledgement.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/License/License.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/License/LicenseInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AggregateOutput.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfigRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisLimits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisMemoryLimit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Anomaly.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyCause.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyDetectors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ApiKeyAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Calendar.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CalendarEvent.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzerDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ChunkingConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixPrediction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixThreshold.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataCounts.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataDescription.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeed.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeeds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisAnalyzedFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisContainer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisOutlierDetection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalytics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsDestination.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsFieldSelection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsMemoryEstimation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSource.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsDataCounts.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsMemoryUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsProgress.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryAccuracy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryPrecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryRecall.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClass.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetricsAucRoc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationContainer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetectionMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsHuber.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsMsle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRoc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRocCurveItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationValue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeOutlierDetectionSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframePreviewConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeRegressionSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Defaults.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Definition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DelayedDataCheckConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectionRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Detector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectorRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DiscoveryNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Ensemble.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FilterRef.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FrequencyEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Hyperparameter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influence.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influencer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Input.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Job.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobBlocked.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobForecastStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobTimingStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JvmStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Limits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemMlStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Memory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelPlotConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSizeStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSnapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NativeCode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OneHotEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucketJob.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Page.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PerPartitionCategorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Preprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/RuleCondition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TargetMeanEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceClass.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAssignmentRoutingTable.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigInput.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentAllocationStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentNodesStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelInferenceStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocationIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelSizeStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTree.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTreeNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TransformAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Weights.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetwork.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Percentage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateInlineScript.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Token.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TransientMetadataConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Configuration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Retention.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Statistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/RepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicyContainer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/SyncContainer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AllJobs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FrozenIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Jobs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Query.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs diff --git a/benchmarks/Benchmarks/Program.cs b/benchmarks/Benchmarks/Program.cs index 0e1be799c90..ba4b7dc9ef7 100644 --- a/benchmarks/Benchmarks/Program.cs +++ b/benchmarks/Benchmarks/Program.cs @@ -8,13 +8,10 @@ using BenchmarkDotNet.Reports; using BenchmarkDotNet.Running; using Elastic.Clients.Elasticsearch; -using Elastic.Clients.Elasticsearch.Enrich; -using Elastic.Clients.Elasticsearch.QueryDsl; using Elastic.Transport; using Nest; using System.Globalization; using System.Text; -using Policy = Elastic.Clients.Elasticsearch.Enrich.Policy; var config = ManualConfig.Create(DefaultConfig.Instance); config.SummaryStyle = new SummaryStyle(CultureInfo.CurrentCulture, true, BenchmarkDotNet.Columns.SizeUnit.B, null); diff --git a/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs b/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs index 6320a2b7ced..d1ea24c91d4 100644 --- a/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs +++ b/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs @@ -2,629 +2,9 @@ // 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. -using System; -using System.IO; -using System.Text.Json; -using System.Text.RegularExpressions; -using Elastic.Clients.Elasticsearch.Enrich; -using Elastic.Transport; - namespace Elastic.Clients.Elasticsearch.QueryDsl { - //public interface IQuery - //{ - // /// - // /// Provides a boost to this query to influence its relevance score. - // /// For example, a query with a boost of 2 is twice as important as a query with a boost of 1, - // /// although the actual boost value that is applied undergoes normalization and internal optimization. - // /// - // //float? Boost { get; set; } // Was defined as a double before the code gen work - - // ///// - // ///// Whether the query is conditionless. A conditionless query is not serialized as part of the request - // ///// sent to Elasticsearch. - // ///// - // //[JsonIgnore] - // //bool Conditionless { get; } - - // ///// - // ///// Whether the query should be treated as strict. A strict query will throw an exception when serialized - // ///// if it is . - // ///// - // //[JsonIgnore] - // //bool IsStrict { get; set; } - - // ///// - // ///// Whether the query should be treated as verbatim. A verbatim query will be serialized as part of the request, - // ///// irrespective - // ///// of whether it is or not. - // ///// - // //[JsonIgnore] - // //bool IsVerbatim { get; set; } - - // /// - // /// Whether the query should be treated as writable. Used when determining how to combine queries. - // /// - // //[JsonIgnore] - // //bool IsWritable { get; } - - // /// - // /// The name of the query. Allows you to retrieve for each document what part of the query it matched on. - // /// - // //string Name { get; set; } - //} - - //internal interface IFieldNameQueryDescriptor where T : Descriptor - //{ - // T Field(Field field); - //} - - //public partial class QueryContainerDescriptor - //{ - // private void Set(Action> descriptorAction, string variantName) - // where T : Descriptor, IFieldNameQueryDescriptor - // { - // if (ContainsVariant) - // throw new Exception("TODO"); - // ContainedVariantName = variantName; - // ContainsVariant = true; - // DescriptorType = typeof(T); - // var descriptor = (T)Activator.CreateInstance(typeof(T), true); - // descriptorAction?.Invoke(descriptor); - // Descriptor = descriptor; - // } - - // private void Set(Field field, Action> descriptorAction, string variantName) - // where T : Descriptor, IFieldNameQueryDescriptor - // { - // if (ContainsVariant) - // throw new Exception("TODO"); - // ContainedVariantName = variantName; - // ContainsVariant = true; - // DescriptorType = typeof(T); - // var descriptor = (T)Activator.CreateInstance(typeof(T), true); - // descriptor.Field(field); - // descriptorAction?.Invoke(descriptor); - // Descriptor = descriptor; - // } - //} - - // Leaving descriptor value experiments for future pick up work - - // RESULT OF EXPERIMENTS: - //| Method | Mean [ns] | Error [ns] | StdDev [ns] | Gen 0 | Gen 1 | Allocated [B] | - //|------------------ |-----------:|-----------:|------------:|-------:|-------:|--------------:| - //| Existing | 116.408 ns | 2.1955 ns | 2.1563 ns | 0.0942 | 0.0002 | 592 B | - //| NewV1 | 113.021 ns | 1.8475 ns | 1.8145 ns | 0.0943 | 0.0004 | 592 B | - //| NewV2 | 115.728 ns | 2.2291 ns | 2.0851 ns | 0.0905 | 0.0002 | 568 B | - //| NewV3 | 112.813 ns | 2.2198 ns | 3.1118 ns | 0.0867 | 0.0002 | 544 B | - //| SetExisting | 1.688 ns | 0.0384 ns | 0.0340 ns | - | - | - | - //| SetNewV1 | 2.200 ns | 0.0232 ns | 0.0217 ns | - | - | - | - //| SetNewV2 | 2.555 ns | 0.0289 ns | 0.0256 ns | - | - | - | - //| SetNewV3 | 1.691 ns | 0.0306 ns | 0.0286 ns | - | - | - | - //| SerialiseExisting | 461.120 ns | 9.0066 ns | 8.4248 ns | 0.0687 | - | 432 B | - //| SerialiseNewV1 | 472.239 ns | 8.4655 ns | 7.9186 ns | 0.0687 | - | 432 B | - //| SerialiseNewV2 | 476.059 ns | 9.2350 ns | 10.2647 ns | 0.0687 | - | 432 B | - //| SerialiseNewV3 | 483.717 ns | 9.5424 ns | 8.9260 ns | 0.0687 | - | 432 B | - - // We can save 16 bytes per descriptor property (when those properties themselves support descriptors). - // We would need to consider cases for types which do not have a descriptor and if we continue with a raw value property directly. - // This is probably the best choice. Performance for setting and serialising is generally on par. Serialisation for V3 is slower so - // is a trade off with the allocation reduction. Inlining may help there? - - //public sealed class Existing - //{ - // private Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatchValue { get; set; } - // private PolicyDescriptor GeoMatchDescriptor { get; set; } - // private Action> GeoMatchDescriptorAction { get; set; } - // private Elastic.Clients.Elasticsearch.Enrich.Policy? MatchValue { get; set; } - // private PolicyDescriptor MatchDescriptor { get; set; } - // private Action> MatchDescriptorAction { get; set; } - // private Elastic.Clients.Elasticsearch.Enrich.Policy? RangeValue { get; set; } - // private PolicyDescriptor RangeDescriptor { get; set; } - // private Action> RangeDescriptorAction { get; set; } - //} - - //public sealed class NewV1 - //{ - // private DescriptorValue> GeoMatchValue { get; set; } - // private DescriptorValue> MatchValue { get; set; } - // private DescriptorValue> RangeValue { get; set; } - //} - - //public sealed class NewV2 - //{ - // private DescriptorValueV2> GeoMatchValue { get; set; } - // private DescriptorValueV2> MatchValue { get; set; } - // private DescriptorValueV2> RangeValue { get; set; } - //} - - //public sealed partial class EnrichPutPolicyRequestDescriptorV2 : RequestDescriptorBase, EnrichPutPolicyRequestParameters> - //{ - // internal EnrichPutPolicyRequestDescriptorV2(Action> configure) => configure.Invoke(this); - - // public EnrichPutPolicyRequestDescriptorV2(Name name) : base(r => r.Required("name", name)) - // { - // } - - // internal EnrichPutPolicyRequestDescriptorV2() - // { - // } - - // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - // protected override HttpMethod HttpMethod => HttpMethod.PUT; - // protected override bool SupportsBody => true; - - // public EnrichPutPolicyRequestDescriptorV2 Name(Name name) - // { - // RouteValues.Required("name", name); - // return Self; - // } - - // private DescriptorValue> GeoMatchValue { get; set; } = default; - // private DescriptorValue> MatchValue { get; set; } = default; - // private DescriptorValue> RangeValue { get; set; } = default; - - // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(Policy? geoMatch) - // { - // GeoMatchValue = DescriptorValue>.Create(geoMatch); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(PolicyDescriptor descriptor) - // { - // GeoMatchValue = DescriptorValue>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(Action> configure) - // { - // GeoMatchValue = DescriptorValue>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Match(Policy? match) - // { - // MatchValue = DescriptorValue>.Create(match); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Match(PolicyDescriptor descriptor) - // { - // MatchValue = DescriptorValue>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Match(Action> configure) - // { - // MatchValue = DescriptorValue>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Range(Policy? range) - // { - // RangeValue = DescriptorValue>.Create(range); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Range(PolicyDescriptor descriptor) - // { - // RangeValue = DescriptorValue>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV2 Range(Action> configure) - // { - // RangeValue = DescriptorValue>.Create(configure); - // return Self; - // } - - // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - // { - // writer.WriteStartObject(); - // GeoMatchValue.Serialize("geo_match", writer, options); - // MatchValue.Serialize("match", writer, options); - // RangeValue.Serialize("range", writer, options); - // writer.WriteEndObject(); - // } - //} - - //public sealed partial class EnrichPutPolicyRequestDescriptorV3 : RequestDescriptorBase, EnrichPutPolicyRequestParameters> - //{ - // internal EnrichPutPolicyRequestDescriptorV3(Action> configure) => configure.Invoke(this); - - // public EnrichPutPolicyRequestDescriptorV3(Name name) : base(r => r.Required("name", name)) - // { - // } - - // internal EnrichPutPolicyRequestDescriptorV3() - // { - // } - - // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - // protected override HttpMethod HttpMethod => HttpMethod.PUT; - // protected override bool SupportsBody => true; - - // public EnrichPutPolicyRequestDescriptorV3 Name(Name name) - // { - // RouteValues.Required("name", name); - // return Self; - // } - - // private DescriptorValueV2> GeoMatchValue { get; set; } = default; - // private DescriptorValueV2> MatchValue { get; set; } = default; - // private DescriptorValueV2> RangeValue { get; set; } = default; - - // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(Policy? geoMatch) - // { - // GeoMatchValue = DescriptorValueV2>.Create(geoMatch); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(PolicyDescriptor descriptor) - // { - // GeoMatchValue = DescriptorValueV2>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(Action> configure) - // { - // GeoMatchValue = DescriptorValueV2>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Match(Policy? match) - // { - // MatchValue = DescriptorValueV2>.Create(match); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Match(PolicyDescriptor descriptor) - // { - // MatchValue = DescriptorValueV2>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Match(Action> configure) - // { - // MatchValue = DescriptorValueV2>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Range(Policy? range) - // { - // RangeValue = DescriptorValueV2>.Create(range); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Range(PolicyDescriptor descriptor) - // { - // RangeValue = DescriptorValueV2>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV3 Range(Action> configure) - // { - // RangeValue = DescriptorValueV2>.Create(configure); - // return Self; - // } - - // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - // { - // writer.WriteStartObject(); - // GeoMatchValue.Serialize("geo_match", writer, options); - // MatchValue.Serialize("geo_match", writer, options); - // RangeValue.Serialize("geo_match", writer, options); - // writer.WriteEndObject(); - // } - //} - - //public sealed partial class EnrichPutPolicyRequestDescriptorV4 : RequestDescriptorBase, EnrichPutPolicyRequestParameters> - //{ - // internal EnrichPutPolicyRequestDescriptorV4(Action> configure) => configure.Invoke(this); - - // public EnrichPutPolicyRequestDescriptorV4(Name name) : base(r => r.Required("name", name)) - // { - // } - - // internal EnrichPutPolicyRequestDescriptorV4() - // { - // } - - // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - // protected override HttpMethod HttpMethod => HttpMethod.PUT; - // protected override bool SupportsBody => true; - - // public EnrichPutPolicyRequestDescriptorV4 Name(Name name) - // { - // RouteValues.Required("name", name); - // return Self; - // } - - // private DescriptorValueV3> GeoMatchValue { get; set; } = default; - // private DescriptorValueV3> MatchValue { get; set; } = default; - // private DescriptorValueV3> RangeValue { get; set; } = default; - - // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(Policy? geoMatch) - // { - // GeoMatchValue = DescriptorValueV3>.Create(geoMatch); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(PolicyDescriptor descriptor) - // { - // GeoMatchValue = DescriptorValueV3>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(Action> configure) - // { - // GeoMatchValue = DescriptorValueV3>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Match(Policy? match) - // { - // MatchValue = DescriptorValueV3>.Create(match); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Match(PolicyDescriptor descriptor) - // { - // MatchValue = DescriptorValueV3>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Match(Action> configure) - // { - // MatchValue = DescriptorValueV3>.Create(configure); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Range(Policy? range) - // { - // RangeValue = DescriptorValueV3>.Create(range); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Range(PolicyDescriptor descriptor) - // { - // RangeValue = DescriptorValueV3>.Create(descriptor); - // return Self; - // } - - // public EnrichPutPolicyRequestDescriptorV4 Range(Action> configure) - // { - // RangeValue = DescriptorValueV3>.Create(configure); - // return Self; - // } - - // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - // { - // writer.WriteStartObject(); - // GeoMatchValue.Serialize("geo_match", writer, options); - // MatchValue.Serialize("geo_match", writer, options); - // RangeValue.Serialize("geo_match", writer, options); - // writer.WriteEndObject(); - // } - //} - - //internal readonly struct DescriptorValue - // where TDescriptor : Descriptor - //{ - // private readonly TObject? _object; - // private readonly TDescriptor? _descriptor; - // private readonly Action? _descriptorAction; - // //private bool _isSet; - - // private DescriptorValue(TObject value) - // { - // _descriptor = null; - // _descriptorAction = null; - // _object = value; - // } - - // private DescriptorValue(TDescriptor value) - // { - // _descriptor = value; - // _descriptorAction = null; - // _object = default; - // } - - // private DescriptorValue(Action value) - // { - // _descriptor = null; - // _descriptorAction = value; - // _object = default; - // } - - // public static DescriptorValue Create(TObject value) - // => value switch - // { - // null => default, - // _ => new(value) - // }; - - // public static DescriptorValue Create(TDescriptor descriptor) - // => descriptor switch - // { - // null => default, - // _ => new(descriptor) - // }; - - // public static DescriptorValue Create(Action action) - // => action switch - // { - // null => default, - // _ => new(action) - // }; - - // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options) - // { - // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors? - - // //if (!_isSet) - // // return; - - // //writer.WritePropertyName(propertyName); - - // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster. - - // if (_object is not null) - // { - // writer.WritePropertyName(propertyName); - // JsonSerializer.Serialize(writer, _object, options); - // } - // else if (_descriptor is not null) - // { - // writer.WritePropertyName(propertyName); - // JsonSerializer.Serialize(writer, _descriptor, options); - // } - // else if (_descriptorAction is not null) - // { - // writer.WritePropertyName(propertyName); - // var descriptor = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true); - // _descriptorAction?.Invoke(descriptor); - // JsonSerializer.Serialize(writer, descriptor, options); - // } - // } - //} - - //internal readonly struct DescriptorValueV2 - // where TDescriptor : Descriptor - //{ - // private readonly object? _object; - // private readonly int _containedValueType; - - // private DescriptorValueV2(TObject value) - // { - // _object = value; - // _containedValueType = value is null ? 0 : 1; - // } - - // private DescriptorValueV2(TDescriptor value) - // { - // _object = value; - // _containedValueType = value is null ? 0 : 2; - // } - - // private DescriptorValueV2(Action value) - // { - // _object = value; - // _containedValueType = value is null ? 0 : 3; - // } - - // public static DescriptorValueV2 Create(TObject value) - // => value switch - // { - // null => default, - // _ => new(value) - // }; - - // public static DescriptorValueV2 Create(TDescriptor descriptor) - // => descriptor switch - // { - // null => default, - // _ => new(descriptor) - // }; - - // public static DescriptorValueV2 Create(Action action) - // => action switch - // { - // null => default, - // _ => new(action) - // }; - - // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options) - // { - // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors? - - // if (_containedValueType == 0) - // return; - - // writer.WritePropertyName(propertyName); - - // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster. - - // switch (_containedValueType) - // { - // case 1: - // JsonSerializer.Serialize(writer, (TObject)_object, options); - // break; - // case 2: - // JsonSerializer.Serialize(writer, (TDescriptor)_object, options); - // break; - // case 3: - // var descriptor = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true); - // ((Action)_object)?.Invoke(descriptor); - // JsonSerializer.Serialize(writer, descriptor, options); - // break; - // } - // } - //} - - //internal readonly struct DescriptorValueV3 - // where TDescriptor : Descriptor - //{ - // private readonly object? _object; - // // removing the int reduces the footprint but forces the use of type checking to perform operations - - // private DescriptorValueV3(TObject value) => _object = value; - - // private DescriptorValueV3(TDescriptor value) => _object = value; - - // private DescriptorValueV3(Action value) => _object = value; - - // public static DescriptorValueV3 Create(TObject value) - // => value switch - // { - // null => default, - // _ => new(value) - // }; - - // public static DescriptorValueV3 Create(TDescriptor descriptor) - // => descriptor switch - // { - // null => default, - // _ => new(descriptor) - // }; - - // public static DescriptorValueV3 Create(Action action) - // => action switch - // { - // null => default, - // _ => new(action) - // }; - - // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options) - // { - // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors? - - // if (_object is null) - // return; - - // writer.WritePropertyName(propertyName); - - // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster. - - // if (_object is TObject value) - // { - // JsonSerializer.Serialize(writer, value, options); - // } - // else if (_object is TDescriptor descriptor) - // { - // JsonSerializer.Serialize(writer, descriptor, options); - // } - // else - // { - // var d = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true); - // ((Action)_object)?.Invoke(d); - // JsonSerializer.Serialize(writer, d, options); - // } - // } - //} - - public abstract partial class Query //: IQuery + public abstract partial class Query { //[JsonIgnore] //public bool IsWritable => throw new NotImplementedException(); diff --git a/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs b/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs index 14f5cf16a6b..1652771bd36 100644 --- a/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs @@ -9,34 +9,32 @@ namespace Elastic.Clients.Elasticsearch { - internal sealed class PercentageConverter : JsonConverter - { - public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var token = reader.TokenType; + //internal sealed class PercentageConverter : JsonConverter + //{ + // public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + // { + // var token = reader.TokenType; - switch (token) - { - case JsonTokenType.String: - { - var value = reader.GetString(); - var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value); - return result; - } - case JsonTokenType.Number: - { - var value = reader.GetSingle(); - var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value); - return result; - } - } + // switch (token) + // { + // case JsonTokenType.String: + // { + // var value = reader.GetString(); + // var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value); + // return result; + // } + // case JsonTokenType.Number: + // { + // var value = reader.GetSingle(); + // var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value); + // return result; + // } + // } - throw new SerializationException(); - } + // throw new SerializationException(); + // } - public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) => - throw new NotImplementedException(); - } - - + // public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) => + // throw new NotImplementedException(); + //} } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index 863ef3d1b63..339d215e907 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -23,53 +23,16 @@ internal static class ApiUrlsLookups internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[] { "/_async_search", "/{index}/_async_search" }); internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[] { "/_async_search/{id}" }); internal static ApiUrls AsyncSearchGet = new ApiUrls(new[] { "/_async_search/{id}" }); - internal static ApiUrls AutoscalingDeleteAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" }); - internal static ApiUrls AutoscalingGetAutoscalingCapacity = new ApiUrls(new[] { "/_autoscaling/capacity" }); - internal static ApiUrls AutoscalingGetAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" }); - internal static ApiUrls AutoscalingPutAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" }); internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "/_bulk", "/{index}/_bulk" }); - internal static ApiUrls CrossClusterReplicationDeleteAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}" }); - internal static ApiUrls CrossClusterReplicationFollowInfo = new ApiUrls(new[] { "/{index}/_ccr/info" }); - internal static ApiUrls CrossClusterReplicationFollow = new ApiUrls(new[] { "/{index}/_ccr/follow" }); - internal static ApiUrls CrossClusterReplicationFollowStats = new ApiUrls(new[] { "/{index}/_ccr/stats" }); - internal static ApiUrls CrossClusterReplicationForgetFollower = new ApiUrls(new[] { "/{index}/_ccr/forget_follower" }); - internal static ApiUrls CrossClusterReplicationGetAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow", "/_ccr/auto_follow/{name}" }); - internal static ApiUrls CrossClusterReplicationPauseAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}/pause" }); - internal static ApiUrls CrossClusterReplicationPauseFollow = new ApiUrls(new[] { "/{index}/_ccr/pause_follow" }); - internal static ApiUrls CrossClusterReplicationPutAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}" }); - internal static ApiUrls CrossClusterReplicationResumeAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}/resume" }); - internal static ApiUrls CrossClusterReplicationResumeFollow = new ApiUrls(new[] { "/{index}/_ccr/resume_follow" }); - internal static ApiUrls CrossClusterReplicationStats = new ApiUrls(new[] { "/_ccr/stats" }); - internal static ApiUrls CrossClusterReplicationUnfollow = new ApiUrls(new[] { "/{index}/_ccr/unfollow" }); internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "/_search/scroll" }); internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "/_pit" }); - internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "/_cluster/allocation/explain" }); - internal static ApiUrls ClusterDeleteComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" }); - internal static ApiUrls ClusterDeleteVotingConfigExclusions = new ApiUrls(new[] { "/_cluster/voting_config_exclusions" }); - internal static ApiUrls ClusterExistsComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" }); - internal static ApiUrls ClusterGetComponentTemplate = new ApiUrls(new[] { "/_component_template", "/_component_template/{name}" }); - internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "/_cluster/settings" }); internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "/_cluster/health", "/_cluster/health/{index}" }); - internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "/_cluster/pending_tasks" }); - internal static ApiUrls ClusterPostVotingConfigExclusions = new ApiUrls(new[] { "/_cluster/voting_config_exclusions" }); - internal static ApiUrls ClusterPutComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" }); - internal static ApiUrls ClusterPutSettings = new ApiUrls(new[] { "/_cluster/settings" }); - internal static ApiUrls ClusterRemoteInfo = new ApiUrls(new[] { "/_remote/info" }); - internal static ApiUrls ClusterReroute = new ApiUrls(new[] { "/_cluster/reroute" }); - internal static ApiUrls ClusterState = new ApiUrls(new[] { "/_cluster/state", "/_cluster/state/{metric}", "/_cluster/state/{metric}/{index}" }); - internal static ApiUrls ClusterStats = new ApiUrls(new[] { "/_cluster/stats", "/_cluster/stats/nodes/{node_id}" }); internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "/_count", "/{index}/_count" }); internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "/{index}/_create/{id}" }); - internal static ApiUrls DanglingIndicesListDanglingIndices = new ApiUrls(new[] { "/_dangling" }); internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "/{index}/_delete_by_query" }); internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "/_delete_by_query/{task_id}/_rethrottle" }); internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "/_scripts/{id}" }); - internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "/_enrich/policy/{name}" }); - internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "/_enrich/policy/{name}/_execute" }); - internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "/_enrich/policy/{name}", "/_enrich/policy" }); - internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "/_enrich/policy/{name}" }); - internal static ApiUrls EnrichStats = new ApiUrls(new[] { "/_enrich/_stats" }); internal static ApiUrls EqlDelete = new ApiUrls(new[] { "/_eql/search/{id}" }); internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "/_eql/search/status/{id}" }); internal static ApiUrls EqlSearch = new ApiUrls(new[] { "/{index}/_eql/search" }); @@ -77,21 +40,8 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "/{index}/_doc/{id}" }); internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "/{index}/_source/{id}" }); internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "/{index}/_explain/{id}" }); - internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "/_features" }); internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "/_field_caps", "/{index}/_field_caps" }); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "/{index}/_doc/{id}" }); - internal static ApiUrls GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" }); - internal static ApiUrls IndexLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" }); - internal static ApiUrls IndexLifecycleManagementExplainLifecycle = new ApiUrls(new[] { "/{index}/_ilm/explain" }); - internal static ApiUrls IndexLifecycleManagementGetLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}", "/_ilm/policy" }); - internal static ApiUrls IndexLifecycleManagementGetStatus = new ApiUrls(new[] { "/_ilm/status" }); - internal static ApiUrls IndexLifecycleManagementMigrateToDataTiers = new ApiUrls(new[] { "/_ilm/migrate_to_data_tiers" }); - internal static ApiUrls IndexLifecycleManagementMoveToStep = new ApiUrls(new[] { "/_ilm/move/{index}" }); - internal static ApiUrls IndexLifecycleManagementPutLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" }); - internal static ApiUrls IndexLifecycleManagementRemovePolicy = new ApiUrls(new[] { "/{index}/_ilm/remove" }); - internal static ApiUrls IndexLifecycleManagementRetry = new ApiUrls(new[] { "/{index}/_ilm/retry" }); - internal static ApiUrls IndexLifecycleManagementStart = new ApiUrls(new[] { "/_ilm/start" }); - internal static ApiUrls IndexLifecycleManagementStop = new ApiUrls(new[] { "/_ilm/stop" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias" }); internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "/_analyze", "/{index}/_analyze" }); internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "/_cache/clear", "/{index}/_cache/clear" }); @@ -141,84 +91,10 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "/_validate/query", "/{index}/_validate/query" }); internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "/{index}/_doc/{id}", "/{index}/_doc" }); internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "/" }); - internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "/_ingest/pipeline/{id}" }); - internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "/_ingest/geoip/stats" }); - internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "/_ingest/pipeline", "/_ingest/pipeline/{id}" }); - internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "/_ingest/processor/grok" }); - internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "/_ingest/pipeline/{id}" }); - internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate" }); - internal static ApiUrls LicenseDelete = new ApiUrls(new[] { "/_license" }); - internal static ApiUrls LicenseGet = new ApiUrls(new[] { "/_license" }); - internal static ApiUrls LicenseGetBasicStatus = new ApiUrls(new[] { "/_license/basic_status" }); - internal static ApiUrls LicenseGetTrialStatus = new ApiUrls(new[] { "/_license/trial_status" }); - internal static ApiUrls LicensePost = new ApiUrls(new[] { "/_license" }); - internal static ApiUrls LicensePostStartBasic = new ApiUrls(new[] { "/_license/start_basic" }); - internal static ApiUrls LicensePostStartTrial = new ApiUrls(new[] { "/_license/start_trial" }); internal static ApiUrls LogstashDeletePipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); internal static ApiUrls LogstashPutPipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); - internal static ApiUrls MachineLearningCloseJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_close" }); - internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events/{event_id}" }); - internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}" }); - internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}" }); - internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[] { "/_ml/_delete_expired_data/{job_id}", "/_ml/_delete_expired_data" }); - internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}" }); - internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_forecast", "/_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" }); - internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}" }); - internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" }); - internal static ApiUrls MachineLearningDeleteTrainedModelAlias = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" }); - internal static ApiUrls MachineLearningDeleteTrainedModel = new ApiUrls(new[] { "/_ml/trained_models/{model_id}" }); - internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[] { "/_ml/anomaly_detectors/_estimate_model_memory" }); - internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[] { "/_ml/data_frame/_evaluate" }); - internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/_explain", "/_ml/data_frame/analytics/{id}/_explain" }); - internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_flush" }); - internal static ApiUrls MachineLearningForecast = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_forecast" }); - internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events" }); - internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[] { "/_ml/calendars", "/_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}", "/_ml/data_frame/analytics" }); - internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[] { "/_ml/data_frame/analytics/_stats", "/_ml/data_frame/analytics/{id}/_stats" }); - internal static ApiUrls MachineLearningGetInfluencers = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/influencers" }); - internal static ApiUrls MachineLearningGetJobStats = new ApiUrls(new[] { "/_ml/anomaly_detectors/_stats", "/_ml/anomaly_detectors/{job_id}/_stats" }); - internal static ApiUrls MachineLearningGetMemoryStats = new ApiUrls(new[] { "/_ml/memory/_stats", "/_ml/memory/{node_id}/_stats" }); - internal static ApiUrls MachineLearningGetModelSnapshots = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "/_ml/anomaly_detectors/{job_id}/model_snapshots" }); - internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/overall_buckets" }); - internal static ApiUrls MachineLearningGetRecords = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/records" }); - internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/_stats", "/_ml/trained_models/_stats" }); - internal static ApiUrls MachineLearningInfo = new ApiUrls(new[] { "/_ml/info" }); - internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_open" }); - internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events" }); - internal static ApiUrls MachineLearningPreviewDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_preview", "/_ml/datafeeds/_preview" }); - internal static ApiUrls MachineLearningPreviewDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/_preview", "/_ml/data_frame/analytics/{id}/_preview" }); - internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/jobs/{job_id}" }); - internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}" }); - internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}" }); - internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}" }); - internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}" }); - internal static ApiUrls MachineLearningPutTrainedModelAlias = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" }); - internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[] { "/_ml/trained_models/{model_id}" }); - internal static ApiUrls MachineLearningResetJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_reset" }); - internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" }); - internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[] { "/_ml/set_upgrade_mode" }); - internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_start" }); - internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_start" }); - internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_stop" }); - internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_stop" }); - internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_update" }); - internal static ApiUrls MachineLearningUpdateDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_update" }); - internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}/_update" }); - internal static ApiUrls MachineLearningUpdateJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_update" }); - internal static ApiUrls MachineLearningUpdateModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" }); - internal static ApiUrls MachineLearningUpgradeJobSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade" }); - internal static ApiUrls MachineLearningValidateDetector = new ApiUrls(new[] { "/_ml/anomaly_detectors/_validate/detector" }); - internal static ApiUrls MachineLearningValidate = new ApiUrls(new[] { "/_ml/anomaly_detectors/_validate" }); internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "/_mget", "/{index}/_mget" }); internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "/_msearch", "/{index}/_msearch" }); - internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads" }); - internal static ApiUrls NodesInfo = new ApiUrls(new[] { "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}" }); - internal static ApiUrls NodesReloadSecureSettings = new ApiUrls(new[] { "/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings" }); - internal static ApiUrls NodesStats = new ApiUrls(new[] { "/_nodes/stats", "/_nodes/{node_id}/stats", "/_nodes/stats/{metric}", "/_nodes/{node_id}/stats/{metric}", "/_nodes/stats/{metric}/{index_metric}", "/_nodes/{node_id}/stats/{metric}/{index_metric}" }); - internal static ApiUrls NodesUsage = new ApiUrls(new[] { "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}" }); internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "/{index}/_pit" }); internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "/" }); internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "/_scripts/{id}", "/_scripts/{id}/{context}" }); @@ -229,83 +105,17 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "/_script_language" }); internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "/_scripts/{id}" }); internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "/_search/scroll" }); - internal static ApiUrls SearchableSnapshotsMount = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_mount" }); - internal static ApiUrls SearchableSnapshotsStats = new ApiUrls(new[] { "/_searchable_snapshots/stats", "/{index}/_searchable_snapshots/stats" }); internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "/_search", "/{index}/_search" }); internal static ApiUrls NoNamespaceSearchShards = new ApiUrls(new[] { "/_search_shards", "/{index}/_search_shards" }); - internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "/_security/_authenticate" }); - internal static ApiUrls SecurityChangePassword = new ApiUrls(new[] { "/_security/user/{username}/_password", "/_security/user/_password" }); - internal static ApiUrls SecurityClearApiKeyCache = new ApiUrls(new[] { "/_security/api_key/{ids}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedPrivileges = new ApiUrls(new[] { "/_security/privilege/{application}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "/_security/realm/{realms}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "/_security/role/{name}/_clear_cache" }); - internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "/_security/privilege/{application}/{name}" }); - internal static ApiUrls SecurityDeleteRoleMapping = new ApiUrls(new[] { "/_security/role_mapping/{name}" }); - internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "/_security/role/{name}" }); - internal static ApiUrls SecurityDeleteUser = new ApiUrls(new[] { "/_security/user/{username}" }); - internal static ApiUrls SecurityDisableUser = new ApiUrls(new[] { "/_security/user/{username}/_disable" }); - internal static ApiUrls SecurityEnableUser = new ApiUrls(new[] { "/_security/user/{username}/_enable" }); - internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[] { "/_security/api_key" }); - internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[] { "/_security/privilege/_builtin" }); - internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[] { "/_security/privilege", "/_security/privilege/{application}", "/_security/privilege/{application}/{name}" }); - internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[] { "/_security/role_mapping/{name}", "/_security/role_mapping" }); - internal static ApiUrls SecurityGetRole = new ApiUrls(new[] { "/_security/role/{name}", "/_security/role" }); - internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "/_security/oauth2/token" }); - internal static ApiUrls SecurityGrantApiKey = new ApiUrls(new[] { "/_security/api_key/grant" }); - internal static ApiUrls SecurityHasPrivileges = new ApiUrls(new[] { "/_security/user/_has_privileges", "/_security/user/{user}/_has_privileges" }); - internal static ApiUrls SecurityInvalidateApiKey = new ApiUrls(new[] { "/_security/api_key" }); - internal static ApiUrls SecurityInvalidateToken = new ApiUrls(new[] { "/_security/oauth2/token" }); - internal static ApiUrls SecurityPutUser = new ApiUrls(new[] { "/_security/user/{username}" }); - internal static ApiUrls SecurityQueryApiKeys = new ApiUrls(new[] { "/_security/_query/api_key" }); - internal static ApiUrls SecuritySamlAuthenticate = new ApiUrls(new[] { "/_security/saml/authenticate" }); - internal static ApiUrls SecuritySamlCompleteLogout = new ApiUrls(new[] { "/_security/saml/complete_logout" }); - internal static ApiUrls SecuritySamlInvalidate = new ApiUrls(new[] { "/_security/saml/invalidate" }); - internal static ApiUrls SecuritySamlLogout = new ApiUrls(new[] { "/_security/saml/logout" }); - internal static ApiUrls SecuritySamlPrepareAuthentication = new ApiUrls(new[] { "/_security/saml/prepare" }); - internal static ApiUrls SecuritySamlServiceProviderMetadata = new ApiUrls(new[] { "/_security/saml/metadata/{realm_name}" }); - internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "/_security/api_key/{id}" }); - internal static ApiUrls SnapshotLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}" }); - internal static ApiUrls SnapshotLifecycleManagementExecuteLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}/_execute" }); - internal static ApiUrls SnapshotLifecycleManagementExecuteRetention = new ApiUrls(new[] { "/_slm/_execute_retention" }); - internal static ApiUrls SnapshotLifecycleManagementGetLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}", "/_slm/policy" }); - internal static ApiUrls SnapshotLifecycleManagementGetStats = new ApiUrls(new[] { "/_slm/stats" }); - internal static ApiUrls SnapshotLifecycleManagementGetStatus = new ApiUrls(new[] { "/_slm/status" }); - internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}" }); - internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "/_slm/start" }); - internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "/_slm/stop" }); - internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotDelete = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotGet = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "/_snapshot/{repository}/_cleanup" }); - internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" }); - internal static ApiUrls SnapshotCreateRepository = new ApiUrls(new[] { "/_snapshot/{repository}" }); - internal static ApiUrls SnapshotDeleteRepository = new ApiUrls(new[] { "/_snapshot/{repository}" }); - internal static ApiUrls SnapshotGetRepository = new ApiUrls(new[] { "/_snapshot", "/_snapshot/{repository}" }); - internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_restore" }); - internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "/_snapshot/_status", "/_snapshot/{repository}/_status", "/_snapshot/{repository}/{snapshot}/_status" }); - internal static ApiUrls SnapshotVerifyRepository = new ApiUrls(new[] { "/_snapshot/{repository}/_verify" }); internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "/{index}/_source/{id}" }); internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "/_sql/close" }); internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "/_sql/async/delete/{id}" }); internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "/_sql/async/{id}" }); internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "/_sql/async/status/{id}" }); internal static ApiUrls SqlQuery = new ApiUrls(new[] { "/_sql" }); - internal static ApiUrls SecurityCertificates = new ApiUrls(new[] { "/_ssl/certificates" }); internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "/{index}/_terms_enum" }); - internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "/_transform/{transform_id}" }); - internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "/_transform/{transform_id}", "/_transform" }); - internal static ApiUrls TransformManagementGetTransformStats = new ApiUrls(new[] { "/_transform/{transform_id}/_stats" }); - internal static ApiUrls TransformManagementPreviewTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_preview", "/_transform/_preview" }); - internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "/_transform/{transform_id}" }); - internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_reset" }); - internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_start" }); - internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_stop" }); - internal static ApiUrls TransformManagementUpdateTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_update" }); - internal static ApiUrls TransformManagementUpgradeTransforms = new ApiUrls(new[] { "/_transform/_upgrade" }); 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 NoNamespaceUpdate = new ApiUrls(new[] { "/{index}/_update/{id}" }); - internal static ApiUrls XpackInfo = new ApiUrls(new[] { "/_xpack" }); - internal static ApiUrls XpackUsage = new ApiUrls(new[] { "/_xpack/usage" }); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs deleted file mode 100644 index 4a985aaee7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed class AutoscalingDeleteAutoscalingPolicyRequestParameters : RequestParameters - { - } - - public sealed partial class AutoscalingDeleteAutoscalingPolicyRequest : PlainRequestBase - { - public AutoscalingDeleteAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingDeleteAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class AutoscalingDeleteAutoscalingPolicyRequestDescriptor : RequestDescriptorBase - { - internal AutoscalingDeleteAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public AutoscalingDeleteAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal AutoscalingDeleteAutoscalingPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingDeleteAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public AutoscalingDeleteAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs deleted file mode 100644 index 4e9ddc965a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingDeleteAutoscalingPolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs deleted file mode 100644 index fda35ac8c52..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed class AutoscalingGetAutoscalingCapacityRequestParameters : RequestParameters - { - } - - public sealed partial class AutoscalingGetAutoscalingCapacityRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingCapacity; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class AutoscalingGetAutoscalingCapacityRequestDescriptor : RequestDescriptorBase - { - internal AutoscalingGetAutoscalingCapacityRequestDescriptor(Action configure) => configure.Invoke(this); - public AutoscalingGetAutoscalingCapacityRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingCapacity; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs deleted file mode 100644 index 8b87cb11c7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingGetAutoscalingCapacityResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("policies")] - public Dictionary Policies { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs deleted file mode 100644 index d12707567e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed class AutoscalingGetAutoscalingPolicyRequestParameters : RequestParameters - { - } - - public sealed partial class AutoscalingGetAutoscalingPolicyRequest : PlainRequestBase - { - public AutoscalingGetAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class AutoscalingGetAutoscalingPolicyRequestDescriptor : RequestDescriptorBase - { - internal AutoscalingGetAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public AutoscalingGetAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal AutoscalingGetAutoscalingPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public AutoscalingGetAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyResponse.g.cs deleted file mode 100644 index 60fcc9c8ded..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingGetAutoscalingPolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("deciders")] - public Dictionary Deciders { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs deleted file mode 100644 index cccd5c4a163..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed class AutoscalingPutAutoscalingPolicyRequestParameters : RequestParameters - { - } - - public sealed partial class AutoscalingPutAutoscalingPolicyRequest : PlainRequestBase - { - public AutoscalingPutAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingPutAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - } - - public sealed partial class AutoscalingPutAutoscalingPolicyRequestDescriptor : RequestDescriptorBase - { - internal AutoscalingPutAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public AutoscalingPutAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal AutoscalingPutAutoscalingPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingPutAutoscalingPolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public AutoscalingPutAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs deleted file mode 100644 index 5991b26f222..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingPutAutoscalingPolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs deleted file mode 100644 index 84c9a5a7834..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrDeleteAutoFollowPatternRequestParameters : RequestParameters - { - } - - public sealed partial class CcrDeleteAutoFollowPatternRequest : PlainRequestBase - { - public CcrDeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationDeleteAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrDeleteAutoFollowPatternRequestDescriptor : RequestDescriptorBase - { - internal CcrDeleteAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrDeleteAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal CcrDeleteAutoFollowPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationDeleteAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public CcrDeleteAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs deleted file mode 100644 index f8ba905b269..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrDeleteAutoFollowPatternResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs deleted file mode 100644 index 07b19e61d95..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrFollowInfoRequestParameters : RequestParameters - { - } - - public sealed partial class CcrFollowInfoRequest : PlainRequestBase - { - public CcrFollowInfoRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrFollowInfoRequestDescriptor : RequestDescriptorBase, CcrFollowInfoRequestParameters> - { - internal CcrFollowInfoRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrFollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal CcrFollowInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public CcrFollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class CcrFollowInfoRequestDescriptor : RequestDescriptorBase - { - internal CcrFollowInfoRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrFollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal CcrFollowInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public CcrFollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs deleted file mode 100644 index fc1fd81e15d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrFollowInfoResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("follower_indices")] - public IReadOnlyCollection FollowerIndices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs deleted file mode 100644 index 83bfa936e5d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs +++ /dev/null @@ -1,490 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrFollowRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - } - - public sealed partial class CcrFollowRequest : PlainRequestBase - { - public CcrFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - [JsonInclude] - [JsonPropertyName("leader_index")] - public Elastic.Clients.Elasticsearch.IndexName? LeaderIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_read_requests")] - public long? MaxOutstandingReadRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_write_requests")] - public long? MaxOutstandingWriteRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_operation_count")] - public long? MaxReadRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_size")] - public string? MaxReadRequestSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_count")] - public long? MaxWriteBufferCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_size")] - public string? MaxWriteBufferSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_operation_count")] - public long? MaxWriteRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_size")] - public string? MaxWriteRequestSize { get; set; } - - [JsonInclude] - [JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } - - [JsonInclude] - [JsonPropertyName("remote_cluster")] - public string? RemoteCluster { get; set; } - } - - public sealed partial class CcrFollowRequestDescriptor : RequestDescriptorBase, CcrFollowRequestParameters> - { - internal CcrFollowRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CcrFollowRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal CcrFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public CcrFollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public CcrFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } - - private long? MaxOutstandingReadRequestsValue { get; set; } - - private long? MaxOutstandingWriteRequestsValue { get; set; } - - private long? MaxReadRequestOperationCountValue { get; set; } - - private string? MaxReadRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - - private long? MaxWriteBufferCountValue { get; set; } - - private string? MaxWriteBufferSizeValue { get; set; } - - private long? MaxWriteRequestOperationCountValue { get; set; } - - private string? MaxWriteRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - - private string? RemoteClusterValue { get; set; } - - public CcrFollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) - { - LeaderIndexValue = leaderIndex; - return Self; - } - - public CcrFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) - { - MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; - return Self; - } - - public CcrFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) - { - MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; - return Self; - } - - public CcrFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) - { - MaxReadRequestOperationCountValue = maxReadRequestOperationCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) - { - MaxReadRequestSizeValue = maxReadRequestSize; - return Self; - } - - public CcrFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) - { - MaxRetryDelayValue = maxRetryDelay; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) - { - MaxWriteBufferCountValue = maxWriteBufferCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) - { - MaxWriteBufferSizeValue = maxWriteBufferSize; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) - { - MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) - { - MaxWriteRequestSizeValue = maxWriteRequestSize; - return Self; - } - - public CcrFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) - { - ReadPollTimeoutValue = readPollTimeout; - return Self; - } - - public CcrFollowRequestDescriptor RemoteCluster(string? remoteCluster) - { - RemoteClusterValue = remoteCluster; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LeaderIndexValue is not null) - { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); - } - - if (MaxOutstandingReadRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_read_requests"); - writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value); - } - - if (MaxOutstandingWriteRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_write_requests"); - writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value); - } - - if (MaxReadRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_read_request_operation_count"); - writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) - { - writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); - } - - if (MaxRetryDelayValue is not null) - { - writer.WritePropertyName("max_retry_delay"); - JsonSerializer.Serialize(writer, MaxRetryDelayValue, options); - } - - if (MaxWriteBufferCountValue.HasValue) - { - writer.WritePropertyName("max_write_buffer_count"); - writer.WriteNumberValue(MaxWriteBufferCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) - { - writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); - } - - if (MaxWriteRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_write_request_operation_count"); - writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) - { - writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); - } - - if (ReadPollTimeoutValue is not null) - { - writer.WritePropertyName("read_poll_timeout"); - JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); - } - - if (!string.IsNullOrEmpty(RemoteClusterValue)) - { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class CcrFollowRequestDescriptor : RequestDescriptorBase - { - internal CcrFollowRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal CcrFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public CcrFollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public CcrFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } - - private long? MaxOutstandingReadRequestsValue { get; set; } - - private long? MaxOutstandingWriteRequestsValue { get; set; } - - private long? MaxReadRequestOperationCountValue { get; set; } - - private string? MaxReadRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - - private long? MaxWriteBufferCountValue { get; set; } - - private string? MaxWriteBufferSizeValue { get; set; } - - private long? MaxWriteRequestOperationCountValue { get; set; } - - private string? MaxWriteRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - - private string? RemoteClusterValue { get; set; } - - public CcrFollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) - { - LeaderIndexValue = leaderIndex; - return Self; - } - - public CcrFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) - { - MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; - return Self; - } - - public CcrFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) - { - MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; - return Self; - } - - public CcrFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) - { - MaxReadRequestOperationCountValue = maxReadRequestOperationCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) - { - MaxReadRequestSizeValue = maxReadRequestSize; - return Self; - } - - public CcrFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) - { - MaxRetryDelayValue = maxRetryDelay; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) - { - MaxWriteBufferCountValue = maxWriteBufferCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) - { - MaxWriteBufferSizeValue = maxWriteBufferSize; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) - { - MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; - return Self; - } - - public CcrFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) - { - MaxWriteRequestSizeValue = maxWriteRequestSize; - return Self; - } - - public CcrFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) - { - ReadPollTimeoutValue = readPollTimeout; - return Self; - } - - public CcrFollowRequestDescriptor RemoteCluster(string? remoteCluster) - { - RemoteClusterValue = remoteCluster; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LeaderIndexValue is not null) - { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); - } - - if (MaxOutstandingReadRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_read_requests"); - writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value); - } - - if (MaxOutstandingWriteRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_write_requests"); - writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value); - } - - if (MaxReadRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_read_request_operation_count"); - writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) - { - writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); - } - - if (MaxRetryDelayValue is not null) - { - writer.WritePropertyName("max_retry_delay"); - JsonSerializer.Serialize(writer, MaxRetryDelayValue, options); - } - - if (MaxWriteBufferCountValue.HasValue) - { - writer.WritePropertyName("max_write_buffer_count"); - writer.WriteNumberValue(MaxWriteBufferCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) - { - writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); - } - - if (MaxWriteRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_write_request_operation_count"); - writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) - { - writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); - } - - if (ReadPollTimeoutValue is not null) - { - writer.WritePropertyName("read_poll_timeout"); - JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); - } - - if (!string.IsNullOrEmpty(RemoteClusterValue)) - { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs deleted file mode 100644 index 68c6e5451b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrFollowResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("follow_index_created")] - public bool FollowIndexCreated { get; init; } - - [JsonInclude] - [JsonPropertyName("follow_index_shards_acked")] - public bool FollowIndexShardsAcked { get; init; } - - [JsonInclude] - [JsonPropertyName("index_following_started")] - public bool IndexFollowingStarted { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs deleted file mode 100644 index fdaf2851c5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrFollowStatsRequestParameters : RequestParameters - { - } - - public sealed partial class CcrFollowStatsRequest : PlainRequestBase - { - public CcrFollowStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrFollowStatsRequestDescriptor : RequestDescriptorBase, CcrFollowStatsRequestParameters> - { - internal CcrFollowStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrFollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal CcrFollowStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public CcrFollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class CcrFollowStatsRequestDescriptor : RequestDescriptorBase - { - internal CcrFollowStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrFollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal CcrFollowStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public CcrFollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs deleted file mode 100644 index 619d3c56d3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrFollowStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs deleted file mode 100644 index 0523156a6de..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs +++ /dev/null @@ -1,227 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrForgetFollowerRequestParameters : RequestParameters - { - } - - public sealed partial class CcrForgetFollowerRequest : PlainRequestBase - { - public CcrForgetFollowerRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("follower_cluster")] - public string? FollowerCluster { get; set; } - - [JsonInclude] - [JsonPropertyName("follower_index")] - public Elastic.Clients.Elasticsearch.IndexName? FollowerIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("follower_index_uuid")] - public string? FollowerIndexUuid { get; set; } - - [JsonInclude] - [JsonPropertyName("leader_remote_cluster")] - public string? LeaderRemoteCluster { get; set; } - } - - public sealed partial class CcrForgetFollowerRequestDescriptor : RequestDescriptorBase, CcrForgetFollowerRequestParameters> - { - internal CcrForgetFollowerRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CcrForgetFollowerRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal CcrForgetFollowerRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public CcrForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private string? FollowerClusterValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? FollowerIndexValue { get; set; } - - private string? FollowerIndexUuidValue { get; set; } - - private string? LeaderRemoteClusterValue { get; set; } - - public CcrForgetFollowerRequestDescriptor FollowerCluster(string? followerCluster) - { - FollowerClusterValue = followerCluster; - return Self; - } - - public CcrForgetFollowerRequestDescriptor FollowerIndex(Elastic.Clients.Elasticsearch.IndexName? followerIndex) - { - FollowerIndexValue = followerIndex; - return Self; - } - - public CcrForgetFollowerRequestDescriptor FollowerIndexUuid(string? followerIndexUuid) - { - FollowerIndexUuidValue = followerIndexUuid; - return Self; - } - - public CcrForgetFollowerRequestDescriptor LeaderRemoteCluster(string? leaderRemoteCluster) - { - LeaderRemoteClusterValue = leaderRemoteCluster; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FollowerClusterValue)) - { - writer.WritePropertyName("follower_cluster"); - writer.WriteStringValue(FollowerClusterValue); - } - - if (FollowerIndexValue is not null) - { - writer.WritePropertyName("follower_index"); - JsonSerializer.Serialize(writer, FollowerIndexValue, options); - } - - if (FollowerIndexUuidValue is not null) - { - writer.WritePropertyName("follower_index_uuid"); - JsonSerializer.Serialize(writer, FollowerIndexUuidValue, options); - } - - if (!string.IsNullOrEmpty(LeaderRemoteClusterValue)) - { - writer.WritePropertyName("leader_remote_cluster"); - writer.WriteStringValue(LeaderRemoteClusterValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class CcrForgetFollowerRequestDescriptor : RequestDescriptorBase - { - internal CcrForgetFollowerRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal CcrForgetFollowerRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public CcrForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private string? FollowerClusterValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? FollowerIndexValue { get; set; } - - private string? FollowerIndexUuidValue { get; set; } - - private string? LeaderRemoteClusterValue { get; set; } - - public CcrForgetFollowerRequestDescriptor FollowerCluster(string? followerCluster) - { - FollowerClusterValue = followerCluster; - return Self; - } - - public CcrForgetFollowerRequestDescriptor FollowerIndex(Elastic.Clients.Elasticsearch.IndexName? followerIndex) - { - FollowerIndexValue = followerIndex; - return Self; - } - - public CcrForgetFollowerRequestDescriptor FollowerIndexUuid(string? followerIndexUuid) - { - FollowerIndexUuidValue = followerIndexUuid; - return Self; - } - - public CcrForgetFollowerRequestDescriptor LeaderRemoteCluster(string? leaderRemoteCluster) - { - LeaderRemoteClusterValue = leaderRemoteCluster; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FollowerClusterValue)) - { - writer.WritePropertyName("follower_cluster"); - writer.WriteStringValue(FollowerClusterValue); - } - - if (FollowerIndexValue is not null) - { - writer.WritePropertyName("follower_index"); - JsonSerializer.Serialize(writer, FollowerIndexValue, options); - } - - if (FollowerIndexUuidValue is not null) - { - writer.WritePropertyName("follower_index_uuid"); - JsonSerializer.Serialize(writer, FollowerIndexUuidValue, options); - } - - if (!string.IsNullOrEmpty(LeaderRemoteClusterValue)) - { - writer.WritePropertyName("leader_remote_cluster"); - writer.WriteStringValue(LeaderRemoteClusterValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs deleted file mode 100644 index 4c45af9b38f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrForgetFollowerResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs deleted file mode 100644 index 136b71a16cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrGetAutoFollowPatternRequestParameters : RequestParameters - { - } - - public sealed partial class CcrGetAutoFollowPatternRequest : PlainRequestBase - { - public CcrGetAutoFollowPatternRequest() - { - } - - public CcrGetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationGetAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrGetAutoFollowPatternRequestDescriptor : RequestDescriptorBase - { - internal CcrGetAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrGetAutoFollowPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationGetAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public CcrGetAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs deleted file mode 100644 index caa71cd0b38..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrGetAutoFollowPatternResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("patterns")] - public IReadOnlyCollection Patterns { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs deleted file mode 100644 index 6fdcae99c6e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrPauseAutoFollowPatternRequestParameters : RequestParameters - { - } - - public sealed partial class CcrPauseAutoFollowPatternRequest : PlainRequestBase - { - public CcrPauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrPauseAutoFollowPatternRequestDescriptor : RequestDescriptorBase - { - internal CcrPauseAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrPauseAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal CcrPauseAutoFollowPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrPauseAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs deleted file mode 100644 index d599956bfa6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrPauseAutoFollowPatternResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs deleted file mode 100644 index 3c1e48da2b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrPauseFollowRequestParameters : RequestParameters - { - } - - public sealed partial class CcrPauseFollowRequest : PlainRequestBase - { - public CcrPauseFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrPauseFollowRequestDescriptor : RequestDescriptorBase, CcrPauseFollowRequestParameters> - { - internal CcrPauseFollowRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrPauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CcrPauseFollowRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal CcrPauseFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrPauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class CcrPauseFollowRequestDescriptor : RequestDescriptorBase - { - internal CcrPauseFollowRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrPauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal CcrPauseFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrPauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs deleted file mode 100644 index 781665f82ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrPauseFollowResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs deleted file mode 100644 index 20b3880dec9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs +++ /dev/null @@ -1,334 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrPutAutoFollowPatternRequestParameters : RequestParameters - { - } - - public sealed partial class CcrPutAutoFollowPatternRequest : PlainRequestBase - { - public CcrPutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPutAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("remote_cluster")] - public string RemoteCluster { get; set; } - - [JsonInclude] - [JsonPropertyName("follow_index_pattern")] - public string? FollowIndexPattern { get; set; } - - [JsonInclude] - [JsonPropertyName("leader_index_patterns")] - public IEnumerable? LeaderIndexPatterns { get; set; } - - [JsonInclude] - [JsonPropertyName("leader_index_exclusion_patterns")] - public IEnumerable? LeaderIndexExclusionPatterns { get; set; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_read_requests")] - public int? MaxOutstandingReadRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Dictionary? Settings { get; set; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_write_requests")] - public int? MaxOutstandingWriteRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_operation_count")] - public int? MaxReadRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_count")] - public int? MaxWriteBufferCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_operation_count")] - public int? MaxWriteRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; set; } - } - - public sealed partial class CcrPutAutoFollowPatternRequestDescriptor : RequestDescriptorBase - { - internal CcrPutAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrPutAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal CcrPutAutoFollowPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPutAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public CcrPutAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private string? FollowIndexPatternValue { get; set; } - - private IEnumerable? LeaderIndexExclusionPatternsValue { get; set; } - - private IEnumerable? LeaderIndexPatternsValue { get; set; } - - private int? MaxOutstandingReadRequestsValue { get; set; } - - private int? MaxOutstandingWriteRequestsValue { get; set; } - - private int? MaxReadRequestOperationCountValue { get; set; } - - private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - - private int? MaxWriteBufferCountValue { get; set; } - - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } - - private int? MaxWriteRequestOperationCountValue { get; set; } - - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - - private string RemoteClusterValue { get; set; } - - private Dictionary? SettingsValue { get; set; } - - public CcrPutAutoFollowPatternRequestDescriptor FollowIndexPattern(string? followIndexPattern) - { - FollowIndexPatternValue = followIndexPattern; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor LeaderIndexExclusionPatterns(IEnumerable? leaderIndexExclusionPatterns) - { - LeaderIndexExclusionPatternsValue = leaderIndexExclusionPatterns; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor LeaderIndexPatterns(IEnumerable? leaderIndexPatterns) - { - LeaderIndexPatternsValue = leaderIndexPatterns; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxOutstandingReadRequests(int? maxOutstandingReadRequests) - { - MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) - { - MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) - { - MaxReadRequestOperationCountValue = maxReadRequestOperationCount; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) - { - MaxReadRequestSizeValue = maxReadRequestSize; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) - { - MaxRetryDelayValue = maxRetryDelay; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) - { - MaxWriteBufferCountValue = maxWriteBufferCount; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) - { - MaxWriteBufferSizeValue = maxWriteBufferSize; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) - { - MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) - { - MaxWriteRequestSizeValue = maxWriteRequestSize; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) - { - ReadPollTimeoutValue = readPollTimeout; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor RemoteCluster(string remoteCluster) - { - RemoteClusterValue = remoteCluster; - return Self; - } - - public CcrPutAutoFollowPatternRequestDescriptor Settings(Func, FluentDictionary> selector) - { - SettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FollowIndexPatternValue is not null) - { - writer.WritePropertyName("follow_index_pattern"); - JsonSerializer.Serialize(writer, FollowIndexPatternValue, options); - } - - if (LeaderIndexExclusionPatternsValue is not null) - { - writer.WritePropertyName("leader_index_exclusion_patterns"); - JsonSerializer.Serialize(writer, LeaderIndexExclusionPatternsValue, options); - } - - if (LeaderIndexPatternsValue is not null) - { - writer.WritePropertyName("leader_index_patterns"); - JsonSerializer.Serialize(writer, LeaderIndexPatternsValue, options); - } - - if (MaxOutstandingReadRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_read_requests"); - writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value); - } - - if (MaxOutstandingWriteRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_write_requests"); - writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value); - } - - if (MaxReadRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_read_request_operation_count"); - writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); - } - - if (MaxReadRequestSizeValue is not null) - { - writer.WritePropertyName("max_read_request_size"); - JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); - } - - if (MaxRetryDelayValue is not null) - { - writer.WritePropertyName("max_retry_delay"); - JsonSerializer.Serialize(writer, MaxRetryDelayValue, options); - } - - if (MaxWriteBufferCountValue.HasValue) - { - writer.WritePropertyName("max_write_buffer_count"); - writer.WriteNumberValue(MaxWriteBufferCountValue.Value); - } - - if (MaxWriteBufferSizeValue is not null) - { - writer.WritePropertyName("max_write_buffer_size"); - JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); - } - - if (MaxWriteRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_write_request_operation_count"); - writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); - } - - if (MaxWriteRequestSizeValue is not null) - { - writer.WritePropertyName("max_write_request_size"); - JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); - } - - if (ReadPollTimeoutValue is not null) - { - writer.WritePropertyName("read_poll_timeout"); - JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); - } - - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); - if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs deleted file mode 100644 index 6d02735d91a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrPutAutoFollowPatternResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs deleted file mode 100644 index d5fe4d39d13..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrResumeAutoFollowPatternRequestParameters : RequestParameters - { - } - - public sealed partial class CcrResumeAutoFollowPatternRequest : PlainRequestBase - { - public CcrResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrResumeAutoFollowPatternRequestDescriptor : RequestDescriptorBase - { - internal CcrResumeAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrResumeAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal CcrResumeAutoFollowPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeAutoFollowPattern; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrResumeAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs deleted file mode 100644 index c439d4c0a33..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrResumeAutoFollowPatternResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs deleted file mode 100644 index bcddcca5122..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs +++ /dev/null @@ -1,419 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrResumeFollowRequestParameters : RequestParameters - { - } - - public sealed partial class CcrResumeFollowRequest : PlainRequestBase - { - public CcrResumeFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("max_outstanding_read_requests")] - public long? MaxOutstandingReadRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_write_requests")] - public long? MaxOutstandingWriteRequests { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_operation_count")] - public long? MaxReadRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_read_request_size")] - public string? MaxReadRequestSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_count")] - public long? MaxWriteBufferCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_size")] - public string? MaxWriteBufferSize { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_operation_count")] - public long? MaxWriteRequestOperationCount { get; set; } - - [JsonInclude] - [JsonPropertyName("max_write_request_size")] - public string? MaxWriteRequestSize { get; set; } - - [JsonInclude] - [JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } - } - - public sealed partial class CcrResumeFollowRequestDescriptor : RequestDescriptorBase, CcrResumeFollowRequestParameters> - { - internal CcrResumeFollowRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrResumeFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CcrResumeFollowRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal CcrResumeFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public CcrResumeFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private long? MaxOutstandingReadRequestsValue { get; set; } - - private long? MaxOutstandingWriteRequestsValue { get; set; } - - private long? MaxReadRequestOperationCountValue { get; set; } - - private string? MaxReadRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - - private long? MaxWriteBufferCountValue { get; set; } - - private string? MaxWriteBufferSizeValue { get; set; } - - private long? MaxWriteRequestOperationCountValue { get; set; } - - private string? MaxWriteRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - - public CcrResumeFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) - { - MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) - { - MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) - { - MaxReadRequestOperationCountValue = maxReadRequestOperationCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) - { - MaxReadRequestSizeValue = maxReadRequestSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) - { - MaxRetryDelayValue = maxRetryDelay; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) - { - MaxWriteBufferCountValue = maxWriteBufferCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) - { - MaxWriteBufferSizeValue = maxWriteBufferSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) - { - MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) - { - MaxWriteRequestSizeValue = maxWriteRequestSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) - { - ReadPollTimeoutValue = readPollTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxOutstandingReadRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_read_requests"); - writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value); - } - - if (MaxOutstandingWriteRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_write_requests"); - writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value); - } - - if (MaxReadRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_read_request_operation_count"); - writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) - { - writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); - } - - if (MaxRetryDelayValue is not null) - { - writer.WritePropertyName("max_retry_delay"); - JsonSerializer.Serialize(writer, MaxRetryDelayValue, options); - } - - if (MaxWriteBufferCountValue.HasValue) - { - writer.WritePropertyName("max_write_buffer_count"); - writer.WriteNumberValue(MaxWriteBufferCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) - { - writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); - } - - if (MaxWriteRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_write_request_operation_count"); - writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) - { - writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); - } - - if (ReadPollTimeoutValue is not null) - { - writer.WritePropertyName("read_poll_timeout"); - JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class CcrResumeFollowRequestDescriptor : RequestDescriptorBase - { - internal CcrResumeFollowRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrResumeFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal CcrResumeFollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeFollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public CcrResumeFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private long? MaxOutstandingReadRequestsValue { get; set; } - - private long? MaxOutstandingWriteRequestsValue { get; set; } - - private long? MaxReadRequestOperationCountValue { get; set; } - - private string? MaxReadRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - - private long? MaxWriteBufferCountValue { get; set; } - - private string? MaxWriteBufferSizeValue { get; set; } - - private long? MaxWriteRequestOperationCountValue { get; set; } - - private string? MaxWriteRequestSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - - public CcrResumeFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) - { - MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) - { - MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) - { - MaxReadRequestOperationCountValue = maxReadRequestOperationCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) - { - MaxReadRequestSizeValue = maxReadRequestSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) - { - MaxRetryDelayValue = maxRetryDelay; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) - { - MaxWriteBufferCountValue = maxWriteBufferCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) - { - MaxWriteBufferSizeValue = maxWriteBufferSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) - { - MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; - return Self; - } - - public CcrResumeFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) - { - MaxWriteRequestSizeValue = maxWriteRequestSize; - return Self; - } - - public CcrResumeFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) - { - ReadPollTimeoutValue = readPollTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxOutstandingReadRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_read_requests"); - writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value); - } - - if (MaxOutstandingWriteRequestsValue.HasValue) - { - writer.WritePropertyName("max_outstanding_write_requests"); - writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value); - } - - if (MaxReadRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_read_request_operation_count"); - writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) - { - writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); - } - - if (MaxRetryDelayValue is not null) - { - writer.WritePropertyName("max_retry_delay"); - JsonSerializer.Serialize(writer, MaxRetryDelayValue, options); - } - - if (MaxWriteBufferCountValue.HasValue) - { - writer.WritePropertyName("max_write_buffer_count"); - writer.WriteNumberValue(MaxWriteBufferCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) - { - writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); - } - - if (MaxWriteRequestOperationCountValue.HasValue) - { - writer.WritePropertyName("max_write_request_operation_count"); - writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); - } - - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) - { - writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); - } - - if (ReadPollTimeoutValue is not null) - { - writer.WritePropertyName("read_poll_timeout"); - JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowResponse.g.cs deleted file mode 100644 index 260286ffa7c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrResumeFollowResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsRequest.g.cs deleted file mode 100644 index 55b766af1ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrStatsRequestParameters : RequestParameters - { - } - - public sealed partial class CcrStatsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrStatsRequestDescriptor : RequestDescriptorBase - { - internal CcrStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsResponse.g.cs deleted file mode 100644 index 1879f3e6ec8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("auto_follow_stats")] - public Elastic.Clients.Elasticsearch.Ccr.AutoFollowStats AutoFollowStats { get; init; } - - [JsonInclude] - [JsonPropertyName("follow_stats")] - public Elastic.Clients.Elasticsearch.Ccr.FollowStats FollowStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowRequest.g.cs deleted file mode 100644 index ec1a8d0b630..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed class CcrUnfollowRequestParameters : RequestParameters - { - } - - public sealed partial class CcrUnfollowRequest : PlainRequestBase - { - public CcrUnfollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationUnfollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class CcrUnfollowRequestDescriptor : RequestDescriptorBase, CcrUnfollowRequestParameters> - { - internal CcrUnfollowRequestDescriptor(Action> configure) => configure.Invoke(this); - public CcrUnfollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CcrUnfollowRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal CcrUnfollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationUnfollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrUnfollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class CcrUnfollowRequestDescriptor : RequestDescriptorBase - { - internal CcrUnfollowRequestDescriptor(Action configure) => configure.Invoke(this); - public CcrUnfollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal CcrUnfollowRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationUnfollow; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public CcrUnfollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowResponse.g.cs deleted file mode 100644 index 2ea90fe9ca6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrUnfollowResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class CcrUnfollowResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainRequest.g.cs deleted file mode 100644 index ada02961a2a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainRequest.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterAllocationExplainRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } - - [JsonIgnore] - public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } - } - - public sealed partial class ClusterAllocationExplainRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterAllocationExplain; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } - - [JsonIgnore] - public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } - - [JsonInclude] - [JsonPropertyName("current_node")] - public string? CurrentNode { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("primary")] - public bool? Primary { get; set; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int? Shard { get; set; } - } - - public sealed partial class ClusterAllocationExplainRequestDescriptor : RequestDescriptorBase - { - internal ClusterAllocationExplainRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterAllocationExplainRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterAllocationExplain; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public ClusterAllocationExplainRequestDescriptor IncludeDiskInfo(bool? includeDiskInfo = true) => Qs("include_disk_info", includeDiskInfo); - public ClusterAllocationExplainRequestDescriptor IncludeYesDecisions(bool? includeYesDecisions = true) => Qs("include_yes_decisions", includeYesDecisions); - private string? CurrentNodeValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private bool? PrimaryValue { get; set; } - - private int? ShardValue { get; set; } - - public ClusterAllocationExplainRequestDescriptor CurrentNode(string? currentNode) - { - CurrentNodeValue = currentNode; - return Self; - } - - public ClusterAllocationExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public ClusterAllocationExplainRequestDescriptor Primary(bool? primary = true) - { - PrimaryValue = primary; - return Self; - } - - public ClusterAllocationExplainRequestDescriptor Shard(int? shard) - { - ShardValue = shard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CurrentNodeValue)) - { - writer.WritePropertyName("current_node"); - writer.WriteStringValue(CurrentNodeValue); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (PrimaryValue.HasValue) - { - writer.WritePropertyName("primary"); - writer.WriteBooleanValue(PrimaryValue.Value); - } - - if (ShardValue.HasValue) - { - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainResponse.g.cs deleted file mode 100644 index 09b58613c1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterAllocationExplainResponse.g.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterAllocationExplainResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allocate_explanation")] - public string? AllocateExplanation { get; init; } - - [JsonInclude] - [JsonPropertyName("allocation_delay")] - public Elastic.Clients.Elasticsearch.Duration? AllocationDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("allocation_delay_in_millis")] - public long? AllocationDelayInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("can_allocate")] - public Elastic.Clients.Elasticsearch.Cluster.Decision? CanAllocate { get; init; } - - [JsonInclude] - [JsonPropertyName("can_move_to_other_node")] - public Elastic.Clients.Elasticsearch.Cluster.Decision? CanMoveToOtherNode { get; init; } - - [JsonInclude] - [JsonPropertyName("can_rebalance_cluster")] - public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceCluster { get; init; } - - [JsonInclude] - [JsonPropertyName("can_rebalance_cluster_decisions")] - public IReadOnlyCollection? CanRebalanceClusterDecisions { get; init; } - - [JsonInclude] - [JsonPropertyName("can_rebalance_to_other_node")] - public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceToOtherNode { get; init; } - - [JsonInclude] - [JsonPropertyName("can_remain_decisions")] - public IReadOnlyCollection? CanRemainDecisions { get; init; } - - [JsonInclude] - [JsonPropertyName("can_remain_on_current_node")] - public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRemainOnCurrentNode { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster_info")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterInfo? ClusterInfo { get; init; } - - [JsonInclude] - [JsonPropertyName("configured_delay")] - public Elastic.Clients.Elasticsearch.Duration? ConfiguredDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("configured_delay_in_millis")] - public long? ConfiguredDelayInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("current_node")] - public Elastic.Clients.Elasticsearch.Cluster.CurrentNode? CurrentNode { get; init; } - - [JsonInclude] - [JsonPropertyName("current_state")] - public string CurrentState { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("move_explanation")] - public string? MoveExplanation { get; init; } - - [JsonInclude] - [JsonPropertyName("node_allocation_decisions")] - public IReadOnlyCollection? NodeAllocationDecisions { get; init; } - - [JsonInclude] - [JsonPropertyName("note")] - public string? Note { get; init; } - - [JsonInclude] - [JsonPropertyName("primary")] - public bool Primary { get; init; } - - [JsonInclude] - [JsonPropertyName("rebalance_explanation")] - public string? RebalanceExplanation { get; init; } - - [JsonInclude] - [JsonPropertyName("remaining_delay")] - public Elastic.Clients.Elasticsearch.Duration? RemainingDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("remaining_delay_in_millis")] - public long? RemainingDelayInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; init; } - - [JsonInclude] - [JsonPropertyName("unassigned_info")] - public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateRequest.g.cs deleted file mode 100644 index 2e7f8f6d296..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterDeleteComponentTemplateRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterDeleteComponentTemplateRequest : PlainRequestBase - { - public ClusterDeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterDeleteComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterDeleteComponentTemplateRequestDescriptor : RequestDescriptorBase - { - internal ClusterDeleteComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterDeleteComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal ClusterDeleteComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterDeleteComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public ClusterDeleteComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterDeleteComponentTemplateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public ClusterDeleteComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateResponse.g.cs deleted file mode 100644 index 9a2b2ce46f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteComponentTemplateResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterDeleteComponentTemplateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsRequest.g.cs deleted file mode 100644 index b5ef21f79b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsRequest.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterDeleteVotingConfigExclusionsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? WaitForRemoval { get => Q("wait_for_removal"); set => Q("wait_for_removal", value); } - } - - public sealed partial class ClusterDeleteVotingConfigExclusionsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterDeleteVotingConfigExclusions; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? WaitForRemoval { get => Q("wait_for_removal"); set => Q("wait_for_removal", value); } - } - - public sealed partial class ClusterDeleteVotingConfigExclusionsRequestDescriptor : RequestDescriptorBase - { - internal ClusterDeleteVotingConfigExclusionsRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterDeleteVotingConfigExclusionsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterDeleteVotingConfigExclusions; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public ClusterDeleteVotingConfigExclusionsRequestDescriptor WaitForRemoval(bool? waitForRemoval = true) => Qs("wait_for_removal", waitForRemoval); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsResponse.g.cs deleted file mode 100644 index c83e0879ff8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterDeleteVotingConfigExclusionsResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterDeleteVotingConfigExclusionsResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateRequest.g.cs deleted file mode 100644 index 464d43df3da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterExistsComponentTemplateRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - } - - public sealed partial class ClusterExistsComponentTemplateRequest : PlainRequestBase - { - public ClusterExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterExistsComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.HEAD; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - } - - public sealed partial class ClusterExistsComponentTemplateRequestDescriptor : RequestDescriptorBase - { - internal ClusterExistsComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterExistsComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal ClusterExistsComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterExistsComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.HEAD; - protected override bool SupportsBody => false; - public ClusterExistsComponentTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ClusterExistsComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterExistsComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateResponse.g.cs deleted file mode 100644 index 216c822aeb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterExistsComponentTemplateResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterExistsComponentTemplateResponse : ExistsResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateRequest.g.cs deleted file mode 100644 index 85763094954..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterGetComponentTemplateRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class ClusterGetComponentTemplateRequest : PlainRequestBase - { - public ClusterGetComponentTemplateRequest() - { - } - - public ClusterGetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterGetComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class ClusterGetComponentTemplateRequestDescriptor : RequestDescriptorBase - { - internal ClusterGetComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterGetComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterGetComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterGetComponentTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterGetComponentTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ClusterGetComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterGetComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateResponse.g.cs deleted file mode 100644 index 97105f57af9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetComponentTemplateResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterGetComponentTemplateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("component_templates")] - public IReadOnlyCollection ComponentTemplates { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsRequest.g.cs deleted file mode 100644 index 19c510179e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterGetSettingsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterGetSettingsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterGetSettings; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterGetSettingsRequestDescriptor : RequestDescriptorBase - { - internal ClusterGetSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterGetSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterGetSettings; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterGetSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterGetSettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public ClusterGetSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterGetSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsResponse.g.cs deleted file mode 100644 index 1a15335855b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterGetSettingsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterGetSettingsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("defaults")] - public Dictionary? Defaults { get; init; } - - [JsonInclude] - [JsonPropertyName("persistent")] - public Dictionary Persistent { get; init; } - - [JsonInclude] - [JsonPropertyName("transient")] - public Dictionary Transient { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksRequest.g.cs deleted file mode 100644 index 7d869369f58..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterPendingTasksRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class ClusterPendingTasksRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPendingTasks; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class ClusterPendingTasksRequestDescriptor : RequestDescriptorBase - { - internal ClusterPendingTasksRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterPendingTasksRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPendingTasks; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterPendingTasksRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ClusterPendingTasksRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksResponse.g.cs deleted file mode 100644 index 7acd978e942..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPendingTasksResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterPendingTasksResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("tasks")] - public IReadOnlyCollection Tasks { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsRequest.g.cs deleted file mode 100644 index f68165af0cc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterPostVotingConfigExclusionsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Names? NodeNames { get => Q("node_names"); set => Q("node_names", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Ids? NodeIds { get => Q("node_ids"); set => Q("node_ids", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterPostVotingConfigExclusionsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPostVotingConfigExclusions; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Names? NodeNames { get => Q("node_names"); set => Q("node_names", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Ids? NodeIds { get => Q("node_ids"); set => Q("node_ids", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterPostVotingConfigExclusionsRequestDescriptor : RequestDescriptorBase - { - internal ClusterPostVotingConfigExclusionsRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterPostVotingConfigExclusionsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPostVotingConfigExclusions; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public ClusterPostVotingConfigExclusionsRequestDescriptor NodeIds(Elastic.Clients.Elasticsearch.Ids? nodeIds) => Qs("node_ids", nodeIds); - public ClusterPostVotingConfigExclusionsRequestDescriptor NodeNames(Elastic.Clients.Elasticsearch.Names? nodeNames) => Qs("node_names", nodeNames); - public ClusterPostVotingConfigExclusionsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsResponse.g.cs deleted file mode 100644 index 2eceba16dc0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPostVotingConfigExclusionsResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterPostVotingConfigExclusionsResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateRequest.g.cs deleted file mode 100644 index f3559a2b854..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateRequest.g.cs +++ /dev/null @@ -1,494 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterPutComponentTemplateRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class ClusterPutComponentTemplateRequest : PlainRequestBase - { - public ClusterPutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPutComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonInclude] - [JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexState Template { get; set; } - - [JsonInclude] - [JsonPropertyName("aliases")] - public Dictionary? Aliases { get; set; } - - [JsonInclude] - [JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } - - [JsonInclude] - [JsonPropertyName("version")] - public long? Version { get; set; } - - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; set; } - } - - public sealed partial class ClusterPutComponentTemplateRequestDescriptor : RequestDescriptorBase, ClusterPutComponentTemplateRequestParameters> - { - internal ClusterPutComponentTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - public ClusterPutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal ClusterPutComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPutComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public ClusterPutComponentTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public ClusterPutComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterPutComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } - - private Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - - private Action> MappingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - - private IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - - private Action> SettingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexState TemplateValue { get; set; } - - private IndexManagement.IndexStateDescriptor TemplateDescriptor { get; set; } - - private Action> TemplateDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private Dictionary? AliasesValue { get; set; } - - private long? VersionValue { get; set; } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexState template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(IndexManagement.IndexStateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(Action> configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Aliases(Func, FluentDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexStateDescriptor(TemplateDescriptorAction), options); - } - else - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ClusterPutComponentTemplateRequestDescriptor : RequestDescriptorBase - { - internal ClusterPutComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterPutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal ClusterPutComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPutComponentTemplate; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public ClusterPutComponentTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public ClusterPutComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterPutComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } - - private Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - - private Action MappingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - - private IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexState TemplateValue { get; set; } - - private IndexManagement.IndexStateDescriptor TemplateDescriptor { get; set; } - - private Action TemplateDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private Dictionary? AliasesValue { get; set; } - - private long? VersionValue { get; set; } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexState template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(IndexManagement.IndexStateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Aliases(Func, FluentDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ClusterPutComponentTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexStateDescriptor(TemplateDescriptorAction), options); - } - else - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateResponse.g.cs deleted file mode 100644 index 55a74d48ca4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutComponentTemplateResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterPutComponentTemplateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsRequest.g.cs deleted file mode 100644 index 3673f8e6b6e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsRequest.g.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterPutSettingsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterPutSettingsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPutSettings; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("persistent")] - public Dictionary? Persistent { get; set; } - - [JsonInclude] - [JsonPropertyName("transient")] - public Dictionary? Transient { get; set; } - } - - public sealed partial class ClusterPutSettingsRequestDescriptor : RequestDescriptorBase - { - internal ClusterPutSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterPutSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterPutSettings; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public ClusterPutSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterPutSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterPutSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - private Dictionary? PersistentValue { get; set; } - - private Dictionary? TransientValue { get; set; } - - public ClusterPutSettingsRequestDescriptor Persistent(Func, FluentDictionary> selector) - { - PersistentValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ClusterPutSettingsRequestDescriptor Transient(Func, FluentDictionary> selector) - { - TransientValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PersistentValue is not null) - { - writer.WritePropertyName("persistent"); - JsonSerializer.Serialize(writer, PersistentValue, options); - } - - if (TransientValue is not null) - { - writer.WritePropertyName("transient"); - JsonSerializer.Serialize(writer, TransientValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsResponse.g.cs deleted file mode 100644 index f20bda52fb8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterPutSettingsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterPutSettingsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("persistent")] - public Dictionary Persistent { get; init; } - - [JsonInclude] - [JsonPropertyName("transient")] - public Dictionary Transient { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoRequest.g.cs deleted file mode 100644 index eb6c2427ad8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterRemoteInfoRequestParameters : RequestParameters - { - } - - public sealed partial class ClusterRemoteInfoRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterRemoteInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class ClusterRemoteInfoRequestDescriptor : RequestDescriptorBase - { - internal ClusterRemoteInfoRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterRemoteInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterRemoteInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoResponse.g.cs deleted file mode 100644 index eb9e0c43485..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRemoteInfoResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterRemoteInfoResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteRequest.g.cs deleted file mode 100644 index 064f53a4b66..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteRequest.g.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterRerouteRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - [JsonIgnore] - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => Q("metric"); set => Q("metric", value); } - - [JsonIgnore] - public bool? RetryFailed { get => Q("retry_failed"); set => Q("retry_failed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterRerouteRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterReroute; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - [JsonIgnore] - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Metrics? Metric { get => Q("metric"); set => Q("metric", value); } - - [JsonIgnore] - public bool? RetryFailed { get => Q("retry_failed"); set => Q("retry_failed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("commands")] - public IEnumerable? Commands { get; set; } - } - - public sealed partial class ClusterRerouteRequestDescriptor : RequestDescriptorBase - { - internal ClusterRerouteRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterRerouteRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterReroute; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public ClusterRerouteRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public ClusterRerouteRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); - public ClusterRerouteRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterRerouteRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) => Qs("metric", metric); - public ClusterRerouteRequestDescriptor RetryFailed(bool? retryFailed = true) => Qs("retry_failed", retryFailed); - public ClusterRerouteRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - private IEnumerable? CommandsValue { get; set; } - - private CommandDescriptor CommandsDescriptor { get; set; } - - private Action CommandsDescriptorAction { get; set; } - - private Action[] CommandsDescriptorActions { get; set; } - - public ClusterRerouteRequestDescriptor Commands(IEnumerable? commands) - { - CommandsDescriptor = null; - CommandsDescriptorAction = null; - CommandsDescriptorActions = null; - CommandsValue = commands; - return Self; - } - - public ClusterRerouteRequestDescriptor Commands(CommandDescriptor descriptor) - { - CommandsValue = null; - CommandsDescriptorAction = null; - CommandsDescriptorActions = null; - CommandsDescriptor = descriptor; - return Self; - } - - public ClusterRerouteRequestDescriptor Commands(Action configure) - { - CommandsValue = null; - CommandsDescriptor = null; - CommandsDescriptorActions = null; - CommandsDescriptorAction = configure; - return Self; - } - - public ClusterRerouteRequestDescriptor Commands(params Action[] configure) - { - CommandsValue = null; - CommandsDescriptor = null; - CommandsDescriptorAction = null; - CommandsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CommandsDescriptor is not null) - { - writer.WritePropertyName("commands"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CommandsDescriptor, options); - writer.WriteEndArray(); - } - else if (CommandsDescriptorAction is not null) - { - writer.WritePropertyName("commands"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new CommandDescriptor(CommandsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CommandsDescriptorActions is not null) - { - writer.WritePropertyName("commands"); - writer.WriteStartArray(); - foreach (var action in CommandsDescriptorActions) - { - JsonSerializer.Serialize(writer, new CommandDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CommandsValue is not null) - { - writer.WritePropertyName("commands"); - JsonSerializer.Serialize(writer, CommandsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteResponse.g.cs deleted file mode 100644 index 0ab3bbac75a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterRerouteResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterRerouteResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("explanations")] - public IReadOnlyCollection? Explanations { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public object State { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateRequest.g.cs deleted file mode 100644 index 3eeb66e2992..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateRequest.g.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterStateRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public long? WaitForMetadataVersion { get => Q("wait_for_metadata_version"); set => Q("wait_for_metadata_version", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? WaitForTimeout { get => Q("wait_for_timeout"); set => Q("wait_for_timeout", value); } - } - - public sealed partial class ClusterStateRequest : PlainRequestBase - { - public ClusterStateRequest() - { - } - - public ClusterStateRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public ClusterStateRequest(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("metric", metric).Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterState; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public long? WaitForMetadataVersion { get => Q("wait_for_metadata_version"); set => Q("wait_for_metadata_version", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? WaitForTimeout { get => Q("wait_for_timeout"); set => Q("wait_for_timeout", value); } - } - - public sealed partial class ClusterStateRequestDescriptor : RequestDescriptorBase, ClusterStateRequestParameters> - { - internal ClusterStateRequestDescriptor(Action> configure) => configure.Invoke(this); - public ClusterStateRequestDescriptor() - { - } - - public ClusterStateRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("metric", metric).Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterState; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterStateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClusterStateRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClusterStateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterStateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClusterStateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ClusterStateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterStateRequestDescriptor WaitForMetadataVersion(long? waitForMetadataVersion) => Qs("wait_for_metadata_version", waitForMetadataVersion); - public ClusterStateRequestDescriptor WaitForTimeout(Elastic.Clients.Elasticsearch.Duration? waitForTimeout) => Qs("wait_for_timeout", waitForTimeout); - public ClusterStateRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public ClusterStateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class ClusterStateRequestDescriptor : RequestDescriptorBase - { - internal ClusterStateRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterStateRequestDescriptor() - { - } - - public ClusterStateRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("metric", metric).Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterState; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterStateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClusterStateRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClusterStateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterStateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClusterStateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ClusterStateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ClusterStateRequestDescriptor WaitForMetadataVersion(long? waitForMetadataVersion) => Qs("wait_for_metadata_version", waitForMetadataVersion); - public ClusterStateRequestDescriptor WaitForTimeout(Elastic.Clients.Elasticsearch.Duration? waitForTimeout) => Qs("wait_for_timeout", waitForTimeout); - public ClusterStateRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public ClusterStateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateResponse.g.cs deleted file mode 100644 index 590ddbe9a0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStateResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterStateResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs deleted file mode 100644 index 8ef04f5045b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed class ClusterStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterStatsRequest : PlainRequestBase - { - public ClusterStatsRequest() - { - } - - public ClusterStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class ClusterStatsRequestDescriptor : RequestDescriptorBase - { - internal ClusterStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public ClusterStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public ClusterStatsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs deleted file mode 100644 index d9a9e01d517..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster_uuid")] - public string ClusterUuid { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterIndices Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterNodes Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesRequest.g.cs deleted file mode 100644 index 0cd6004d74e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.DanglingIndices -{ - public sealed class DanglingIndicesListDanglingIndicesRequestParameters : RequestParameters - { - } - - public sealed partial class DanglingIndicesListDanglingIndicesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesListDanglingIndices; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class DanglingIndicesListDanglingIndicesRequestDescriptor : RequestDescriptorBase - { - internal DanglingIndicesListDanglingIndicesRequestDescriptor(Action configure) => configure.Invoke(this); - public DanglingIndicesListDanglingIndicesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesListDanglingIndices; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesResponse.g.cs deleted file mode 100644 index feb96916d36..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/DanglingIndicesListDanglingIndicesResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.DanglingIndices -{ - public sealed partial class DanglingIndicesListDanglingIndicesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("dangling_indices")] - public IReadOnlyCollection DanglingIndices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyRequest.g.cs deleted file mode 100644 index 6d90acd5173..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed class EnrichDeletePolicyRequestParameters : RequestParameters - { - } - - public sealed partial class EnrichDeletePolicyRequest : PlainRequestBase - { - public EnrichDeletePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichDeletePolicy; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class EnrichDeletePolicyRequestDescriptor : RequestDescriptorBase - { - internal EnrichDeletePolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public EnrichDeletePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal EnrichDeletePolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichDeletePolicy; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public EnrichDeletePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyResponse.g.cs deleted file mode 100644 index 5e31b7ac7fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichDeletePolicyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class EnrichDeletePolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyRequest.g.cs deleted file mode 100644 index e7e6d2b68bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed class EnrichExecutePolicyRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class EnrichExecutePolicyRequest : PlainRequestBase - { - public EnrichExecutePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichExecutePolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class EnrichExecutePolicyRequestDescriptor : RequestDescriptorBase - { - internal EnrichExecutePolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public EnrichExecutePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal EnrichExecutePolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichExecutePolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public EnrichExecutePolicyRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public EnrichExecutePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyResponse.g.cs deleted file mode 100644 index bc8ad69994b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichExecutePolicyResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class EnrichExecutePolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Enrich.ExecuteEnrichPolicyStatus Status { get; init; } - - [JsonInclude] - [JsonPropertyName("task_id")] - public Elastic.Clients.Elasticsearch.TaskId? TaskId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyRequest.g.cs deleted file mode 100644 index ba1f7476d5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed class EnrichGetPolicyRequestParameters : RequestParameters - { - } - - public sealed partial class EnrichGetPolicyRequest : PlainRequestBase - { - public EnrichGetPolicyRequest() - { - } - - public EnrichGetPolicyRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichGetPolicy; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class EnrichGetPolicyRequestDescriptor : RequestDescriptorBase - { - internal EnrichGetPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public EnrichGetPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichGetPolicy; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public EnrichGetPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyResponse.g.cs deleted file mode 100644 index 3bf45e0c3d0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichGetPolicyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class EnrichGetPolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("policies")] - public IReadOnlyCollection Policies { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyRequest.g.cs deleted file mode 100644 index f11d26dbd52..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyRequest.g.cs +++ /dev/null @@ -1,383 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed class EnrichPutPolicyRequestParameters : RequestParameters - { - } - - public sealed partial class EnrichPutPolicyRequest : PlainRequestBase - { - public EnrichPutPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("geo_match")] - public Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatch { get; set; } - - [JsonInclude] - [JsonPropertyName("match")] - public Elastic.Clients.Elasticsearch.Enrich.Policy? Match { get; set; } - - [JsonInclude] - [JsonPropertyName("range")] - public Elastic.Clients.Elasticsearch.Enrich.Policy? Range { get; set; } - } - - public sealed partial class EnrichPutPolicyRequestDescriptor : RequestDescriptorBase, EnrichPutPolicyRequestParameters> - { - internal EnrichPutPolicyRequestDescriptor(Action> configure) => configure.Invoke(this); - public EnrichPutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal EnrichPutPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public EnrichPutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatchValue { get; set; } - - private PolicyDescriptor GeoMatchDescriptor { get; set; } - - private Action> GeoMatchDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? MatchValue { get; set; } - - private PolicyDescriptor MatchDescriptor { get; set; } - - private Action> MatchDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? RangeValue { get; set; } - - private PolicyDescriptor RangeDescriptor { get; set; } - - private Action> RangeDescriptorAction { get; set; } - - public EnrichPutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Enrich.Policy? geoMatch) - { - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = null; - GeoMatchValue = geoMatch; - return Self; - } - - public EnrichPutPolicyRequestDescriptor GeoMatch(PolicyDescriptor descriptor) - { - GeoMatchValue = null; - GeoMatchDescriptorAction = null; - GeoMatchDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor GeoMatch(Action> configure) - { - GeoMatchValue = null; - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = configure; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Enrich.Policy? match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(PolicyDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(Action> configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Enrich.Policy? range) - { - RangeDescriptor = null; - RangeDescriptorAction = null; - RangeValue = range; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(PolicyDescriptor descriptor) - { - RangeValue = null; - RangeDescriptorAction = null; - RangeDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(Action> configure) - { - RangeValue = null; - RangeDescriptor = null; - RangeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GeoMatchDescriptor is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); - } - else if (GeoMatchDescriptorAction is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(GeoMatchDescriptorAction), options); - } - else if (GeoMatchValue is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchValue, options); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(MatchDescriptorAction), options); - } - else if (MatchValue is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (RangeDescriptor is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeDescriptor, options); - } - else if (RangeDescriptorAction is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(RangeDescriptorAction), options); - } - else if (RangeValue is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class EnrichPutPolicyRequestDescriptor : RequestDescriptorBase - { - internal EnrichPutPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public EnrichPutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal EnrichPutPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public EnrichPutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatchValue { get; set; } - - private PolicyDescriptor GeoMatchDescriptor { get; set; } - - private Action GeoMatchDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? MatchValue { get; set; } - - private PolicyDescriptor MatchDescriptor { get; set; } - - private Action MatchDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Enrich.Policy? RangeValue { get; set; } - - private PolicyDescriptor RangeDescriptor { get; set; } - - private Action RangeDescriptorAction { get; set; } - - public EnrichPutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Enrich.Policy? geoMatch) - { - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = null; - GeoMatchValue = geoMatch; - return Self; - } - - public EnrichPutPolicyRequestDescriptor GeoMatch(PolicyDescriptor descriptor) - { - GeoMatchValue = null; - GeoMatchDescriptorAction = null; - GeoMatchDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor GeoMatch(Action configure) - { - GeoMatchValue = null; - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = configure; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Enrich.Policy? match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(PolicyDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Match(Action configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Enrich.Policy? range) - { - RangeDescriptor = null; - RangeDescriptorAction = null; - RangeValue = range; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(PolicyDescriptor descriptor) - { - RangeValue = null; - RangeDescriptorAction = null; - RangeDescriptor = descriptor; - return Self; - } - - public EnrichPutPolicyRequestDescriptor Range(Action configure) - { - RangeValue = null; - RangeDescriptor = null; - RangeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GeoMatchDescriptor is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); - } - else if (GeoMatchDescriptorAction is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(GeoMatchDescriptorAction), options); - } - else if (GeoMatchValue is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchValue, options); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(MatchDescriptorAction), options); - } - else if (MatchValue is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (RangeDescriptor is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeDescriptor, options); - } - else if (RangeDescriptorAction is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, new PolicyDescriptor(RangeDescriptorAction), options); - } - else if (RangeValue is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyResponse.g.cs deleted file mode 100644 index 2013f4b5ab6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichPutPolicyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class EnrichPutPolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ 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 deleted file mode 100644 index 3e0c2274575..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed class EnrichStatsRequestParameters : RequestParameters - { - } - - public sealed partial class EnrichStatsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class EnrichStatsRequestDescriptor : RequestDescriptorBase - { - internal EnrichStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public EnrichStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs deleted file mode 100644 index 3030eb3f80a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class EnrichStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cache_stats")] - public IReadOnlyCollection? CacheStats { get; init; } - - [JsonInclude] - [JsonPropertyName("coordinator_stats")] - public IReadOnlyCollection CoordinatorStats { get; init; } - - [JsonInclude] - [JsonPropertyName("executing_policies")] - public IReadOnlyCollection ExecutingPolicies { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesRequest.g.cs deleted file mode 100644 index ddcab578861..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public sealed class FeaturesGetFeaturesRequestParameters : RequestParameters - { - } - - public sealed partial class FeaturesGetFeaturesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesGetFeatures; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class FeaturesGetFeaturesRequestDescriptor : RequestDescriptorBase - { - internal FeaturesGetFeaturesRequestDescriptor(Action configure) => configure.Invoke(this); - public FeaturesGetFeaturesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.FeaturesGetFeatures; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesResponse.g.cs deleted file mode 100644 index 58bb498d2fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/FeaturesGetFeaturesResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public sealed partial class FeaturesGetFeaturesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("features")] - public IReadOnlyCollection Features { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreRequest.g.cs deleted file mode 100644 index 372042ed759..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreRequest.g.cs +++ /dev/null @@ -1,552 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed class GraphExploreRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class GraphExploreRequest : PlainRequestBase - { - public GraphExploreRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.GraphExplore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("connections")] - public Elastic.Clients.Elasticsearch.Graph.Hop? Connections { get; set; } - - [JsonInclude] - [JsonPropertyName("controls")] - public Elastic.Clients.Elasticsearch.Graph.ExploreControls? Controls { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("vertices")] - public IEnumerable? Vertices { get; set; } - } - - public sealed partial class GraphExploreRequestDescriptor : RequestDescriptorBase, GraphExploreRequestParameters> - { - internal GraphExploreRequestDescriptor(Action> configure) => configure.Invoke(this); - public GraphExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal GraphExploreRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.GraphExplore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public GraphExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public GraphExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public GraphExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } - - private HopDescriptor ConnectionsDescriptor { get; set; } - - private Action> ConnectionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Graph.ExploreControls? ControlsValue { get; set; } - - private ExploreControlsDescriptor ControlsDescriptor { get; set; } - - private Action> ControlsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private IEnumerable? VerticesValue { get; set; } - - private VertexDefinitionDescriptor VerticesDescriptor { get; set; } - - private Action> VerticesDescriptorAction { get; set; } - - private Action>[] VerticesDescriptorActions { get; set; } - - public GraphExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public GraphExploreRequestDescriptor Connections(HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Connections(Action> configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Graph.ExploreControls? controls) - { - ControlsDescriptor = null; - ControlsDescriptorAction = null; - ControlsValue = controls; - return Self; - } - - public GraphExploreRequestDescriptor Controls(ExploreControlsDescriptor descriptor) - { - ControlsValue = null; - ControlsDescriptorAction = null; - ControlsDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Controls(Action> configure) - { - ControlsValue = null; - ControlsDescriptor = null; - ControlsDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public GraphExploreRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(IEnumerable? vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(Action> configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(params Action>[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (ControlsDescriptor is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsDescriptor, options); - } - else if (ControlsDescriptorAction is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, new ExploreControlsDescriptor(ControlsDescriptorAction), options); - } - else if (ControlsValue is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (VerticesValue is not null) - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class GraphExploreRequestDescriptor : RequestDescriptorBase - { - internal GraphExploreRequestDescriptor(Action configure) => configure.Invoke(this); - public GraphExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal GraphExploreRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.GraphExplore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public GraphExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public GraphExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public GraphExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } - - private HopDescriptor ConnectionsDescriptor { get; set; } - - private Action ConnectionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Graph.ExploreControls? ControlsValue { get; set; } - - private ExploreControlsDescriptor ControlsDescriptor { get; set; } - - private Action ControlsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private IEnumerable? VerticesValue { get; set; } - - private VertexDefinitionDescriptor VerticesDescriptor { get; set; } - - private Action VerticesDescriptorAction { get; set; } - - private Action[] VerticesDescriptorActions { get; set; } - - public GraphExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public GraphExploreRequestDescriptor Connections(HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Connections(Action configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Graph.ExploreControls? controls) - { - ControlsDescriptor = null; - ControlsDescriptorAction = null; - ControlsValue = controls; - return Self; - } - - public GraphExploreRequestDescriptor Controls(ExploreControlsDescriptor descriptor) - { - ControlsValue = null; - ControlsDescriptorAction = null; - ControlsDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Controls(Action configure) - { - ControlsValue = null; - ControlsDescriptor = null; - ControlsDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public GraphExploreRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(IEnumerable? vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(Action configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public GraphExploreRequestDescriptor Vertices(params Action[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (ControlsDescriptor is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsDescriptor, options); - } - else if (ControlsDescriptorAction is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, new ExploreControlsDescriptor(ControlsDescriptorAction), options); - } - else if (ControlsValue is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (VerticesValue is not null) - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreResponse.g.cs deleted file mode 100644 index 70736254eea..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/GraphExploreResponse.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class GraphExploreResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("connections")] - public IReadOnlyCollection Connections { get; init; } - - [JsonInclude] - [JsonPropertyName("failures")] - public IReadOnlyCollection Failures { get; init; } - - [JsonInclude] - [JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - - [JsonInclude] - [JsonPropertyName("took")] - public long Took { get; init; } - - [JsonInclude] - [JsonPropertyName("vertices")] - public IReadOnlyCollection Vertices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs deleted file mode 100644 index 2264f6cf854..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmDeleteLifecycleRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmDeleteLifecycleRequest : PlainRequestBase - { - public IlmDeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementDeleteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmDeleteLifecycleRequestDescriptor : RequestDescriptorBase - { - internal IlmDeleteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmDeleteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) - { - } - - internal IlmDeleteLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementDeleteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public IlmDeleteLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmDeleteLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IlmDeleteLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name policy) - { - RouteValues.Required("policy", policy); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs deleted file mode 100644 index 63a4cd24761..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmDeleteLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmDeleteLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs deleted file mode 100644 index a1199fd317f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleRequest.g.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmExplainLifecycleRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? OnlyErrors { get => Q("only_errors"); set => Q("only_errors", value); } - - [JsonIgnore] - public bool? OnlyManaged { get => Q("only_managed"); set => Q("only_managed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmExplainLifecycleRequest : PlainRequestBase - { - public IlmExplainLifecycleRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? OnlyErrors { get => Q("only_errors"); set => Q("only_errors", value); } - - [JsonIgnore] - public bool? OnlyManaged { get => Q("only_managed"); set => Q("only_managed", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmExplainLifecycleRequestDescriptor : RequestDescriptorBase, IlmExplainLifecycleRequestParameters> - { - internal IlmExplainLifecycleRequestDescriptor(Action> configure) => configure.Invoke(this); - public IlmExplainLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public IlmExplainLifecycleRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal IlmExplainLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public IlmExplainLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmExplainLifecycleRequestDescriptor OnlyErrors(bool? onlyErrors = true) => Qs("only_errors", onlyErrors); - public IlmExplainLifecycleRequestDescriptor OnlyManaged(bool? onlyManaged = true) => Qs("only_managed", onlyManaged); - public IlmExplainLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IlmExplainLifecycleRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class IlmExplainLifecycleRequestDescriptor : RequestDescriptorBase - { - internal IlmExplainLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmExplainLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal IlmExplainLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementExplainLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public IlmExplainLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmExplainLifecycleRequestDescriptor OnlyErrors(bool? onlyErrors = true) => Qs("only_errors", onlyErrors); - public IlmExplainLifecycleRequestDescriptor OnlyManaged(bool? onlyManaged = true) => Qs("only_managed", onlyManaged); - public IlmExplainLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IlmExplainLifecycleRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs deleted file mode 100644 index 0b462fc9879..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmExplainLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmExplainLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Ilm.LifecycleExplain Indices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs deleted file mode 100644 index bb12694aac1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmGetLifecycleRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmGetLifecycleRequest : PlainRequestBase - { - public IlmGetLifecycleRequest() - { - } - - public IlmGetLifecycleRequest(Elastic.Clients.Elasticsearch.Name? policy) : base(r => r.Optional("policy", policy)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmGetLifecycleRequestDescriptor : RequestDescriptorBase - { - internal IlmGetLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmGetLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public IlmGetLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmGetLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IlmGetLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name? policy) - { - RouteValues.Optional("policy", policy); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs deleted file mode 100644 index 679d0dd9d3d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetLifecycleResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmGetLifecycleResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs deleted file mode 100644 index d5ccce8b581..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmGetStatusRequestParameters : RequestParameters - { - } - - public sealed partial class IlmGetStatusRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class IlmGetStatusRequestDescriptor : RequestDescriptorBase - { - internal IlmGetStatusRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmGetStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementGetStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs deleted file mode 100644 index 8d4a408f05f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmGetStatusResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmGetStatusResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("operation_mode")] - public Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs deleted file mode 100644 index e3cdfd23cb6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmMigrateToDataTiersRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - } - - public sealed partial class IlmMigrateToDataTiersRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMigrateToDataTiers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - [JsonInclude] - [JsonPropertyName("legacy_template_to_delete")] - public string? LegacyTemplateToDelete { get; set; } - - [JsonInclude] - [JsonPropertyName("node_attribute")] - public string? NodeAttribute { get; set; } - } - - public sealed partial class IlmMigrateToDataTiersRequestDescriptor : RequestDescriptorBase - { - internal IlmMigrateToDataTiersRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmMigrateToDataTiersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMigrateToDataTiers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public IlmMigrateToDataTiersRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - private string? LegacyTemplateToDeleteValue { get; set; } - - private string? NodeAttributeValue { get; set; } - - public IlmMigrateToDataTiersRequestDescriptor LegacyTemplateToDelete(string? legacyTemplateToDelete) - { - LegacyTemplateToDeleteValue = legacyTemplateToDelete; - return Self; - } - - public IlmMigrateToDataTiersRequestDescriptor NodeAttribute(string? nodeAttribute) - { - NodeAttributeValue = nodeAttribute; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LegacyTemplateToDeleteValue)) - { - writer.WritePropertyName("legacy_template_to_delete"); - writer.WriteStringValue(LegacyTemplateToDeleteValue); - } - - if (!string.IsNullOrEmpty(NodeAttributeValue)) - { - writer.WritePropertyName("node_attribute"); - writer.WriteStringValue(NodeAttributeValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs deleted file mode 100644 index 8156b860881..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMigrateToDataTiersResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmMigrateToDataTiersResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("dry_run")] - public bool DryRun { get; init; } - - [JsonInclude] - [JsonPropertyName("migrated_component_templates")] - public IReadOnlyCollection MigratedComponentTemplates { get; init; } - - [JsonInclude] - [JsonPropertyName("migrated_composable_templates")] - public IReadOnlyCollection MigratedComposableTemplates { get; init; } - - [JsonInclude] - [JsonPropertyName("migrated_ilm_policies")] - public IReadOnlyCollection MigratedIlmPolicies { get; init; } - - [JsonInclude] - [JsonPropertyName("migrated_indices")] - public IReadOnlyCollection MigratedIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("migrated_legacy_templates")] - public IReadOnlyCollection MigratedLegacyTemplates { get; init; } - - [JsonInclude] - [JsonPropertyName("removed_legacy_template")] - public string RemovedLegacyTemplate { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs deleted file mode 100644 index 8efe1adc7b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepRequest.g.cs +++ /dev/null @@ -1,291 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmMoveToStepRequestParameters : RequestParameters - { - } - - public sealed partial class IlmMoveToStepRequest : PlainRequestBase - { - public IlmMoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("current_step")] - public Elastic.Clients.Elasticsearch.Ilm.StepKey? CurrentStep { get; set; } - - [JsonInclude] - [JsonPropertyName("next_step")] - public Elastic.Clients.Elasticsearch.Ilm.StepKey? NextStep { get; set; } - } - - public sealed partial class IlmMoveToStepRequestDescriptor : RequestDescriptorBase, IlmMoveToStepRequestParameters> - { - internal IlmMoveToStepRequestDescriptor(Action> configure) => configure.Invoke(this); - public IlmMoveToStepRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public IlmMoveToStepRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal IlmMoveToStepRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public IlmMoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ilm.StepKey? CurrentStepValue { get; set; } - - private StepKeyDescriptor CurrentStepDescriptor { get; set; } - - private Action CurrentStepDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ilm.StepKey? NextStepValue { get; set; } - - private StepKeyDescriptor NextStepDescriptor { get; set; } - - private Action NextStepDescriptorAction { get; set; } - - public IlmMoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.Ilm.StepKey? currentStep) - { - CurrentStepDescriptor = null; - CurrentStepDescriptorAction = null; - CurrentStepValue = currentStep; - return Self; - } - - public IlmMoveToStepRequestDescriptor CurrentStep(StepKeyDescriptor descriptor) - { - CurrentStepValue = null; - CurrentStepDescriptorAction = null; - CurrentStepDescriptor = descriptor; - return Self; - } - - public IlmMoveToStepRequestDescriptor CurrentStep(Action configure) - { - CurrentStepValue = null; - CurrentStepDescriptor = null; - CurrentStepDescriptorAction = configure; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.Ilm.StepKey? nextStep) - { - NextStepDescriptor = null; - NextStepDescriptorAction = null; - NextStepValue = nextStep; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(StepKeyDescriptor descriptor) - { - NextStepValue = null; - NextStepDescriptorAction = null; - NextStepDescriptor = descriptor; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(Action configure) - { - NextStepValue = null; - NextStepDescriptor = null; - NextStepDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CurrentStepDescriptor is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, CurrentStepDescriptor, options); - } - else if (CurrentStepDescriptorAction is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, new StepKeyDescriptor(CurrentStepDescriptorAction), options); - } - else if (CurrentStepValue is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, CurrentStepValue, options); - } - - if (NextStepDescriptor is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, NextStepDescriptor, options); - } - else if (NextStepDescriptorAction is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, new StepKeyDescriptor(NextStepDescriptorAction), options); - } - else if (NextStepValue is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, NextStepValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class IlmMoveToStepRequestDescriptor : RequestDescriptorBase - { - internal IlmMoveToStepRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmMoveToStepRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal IlmMoveToStepRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementMoveToStep; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public IlmMoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ilm.StepKey? CurrentStepValue { get; set; } - - private StepKeyDescriptor CurrentStepDescriptor { get; set; } - - private Action CurrentStepDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ilm.StepKey? NextStepValue { get; set; } - - private StepKeyDescriptor NextStepDescriptor { get; set; } - - private Action NextStepDescriptorAction { get; set; } - - public IlmMoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.Ilm.StepKey? currentStep) - { - CurrentStepDescriptor = null; - CurrentStepDescriptorAction = null; - CurrentStepValue = currentStep; - return Self; - } - - public IlmMoveToStepRequestDescriptor CurrentStep(StepKeyDescriptor descriptor) - { - CurrentStepValue = null; - CurrentStepDescriptorAction = null; - CurrentStepDescriptor = descriptor; - return Self; - } - - public IlmMoveToStepRequestDescriptor CurrentStep(Action configure) - { - CurrentStepValue = null; - CurrentStepDescriptor = null; - CurrentStepDescriptorAction = configure; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.Ilm.StepKey? nextStep) - { - NextStepDescriptor = null; - NextStepDescriptorAction = null; - NextStepValue = nextStep; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(StepKeyDescriptor descriptor) - { - NextStepValue = null; - NextStepDescriptorAction = null; - NextStepDescriptor = descriptor; - return Self; - } - - public IlmMoveToStepRequestDescriptor NextStep(Action configure) - { - NextStepValue = null; - NextStepDescriptor = null; - NextStepDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CurrentStepDescriptor is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, CurrentStepDescriptor, options); - } - else if (CurrentStepDescriptorAction is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, new StepKeyDescriptor(CurrentStepDescriptorAction), options); - } - else if (CurrentStepValue is not null) - { - writer.WritePropertyName("current_step"); - JsonSerializer.Serialize(writer, CurrentStepValue, options); - } - - if (NextStepDescriptor is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, NextStepDescriptor, options); - } - else if (NextStepDescriptorAction is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, new StepKeyDescriptor(NextStepDescriptorAction), options); - } - else if (NextStepValue is not null) - { - writer.WritePropertyName("next_step"); - JsonSerializer.Serialize(writer, NextStepValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs deleted file mode 100644 index 66758fec71f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmMoveToStepResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmMoveToStepResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs deleted file mode 100644 index bb45a3cb238..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmPutLifecycleRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmPutLifecycleRequest : PlainRequestBase - { - public IlmPutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementPutLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmPutLifecycleRequestDescriptor : RequestDescriptorBase - { - internal IlmPutLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmPutLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy) : base(r => r.Required("policy", policy)) - { - } - - internal IlmPutLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementPutLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public IlmPutLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmPutLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IlmPutLifecycleRequestDescriptor Policy(Elastic.Clients.Elasticsearch.Name policy) - { - RouteValues.Required("policy", policy); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs deleted file mode 100644 index 9a213e9658b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmPutLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmPutLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs deleted file mode 100644 index 6ac23f62e46..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmRemovePolicyRequestParameters : RequestParameters - { - } - - public sealed partial class IlmRemovePolicyRequest : PlainRequestBase - { - public IlmRemovePolicyRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class IlmRemovePolicyRequestDescriptor : RequestDescriptorBase, IlmRemovePolicyRequestParameters> - { - internal IlmRemovePolicyRequestDescriptor(Action> configure) => configure.Invoke(this); - public IlmRemovePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public IlmRemovePolicyRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal IlmRemovePolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmRemovePolicyRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class IlmRemovePolicyRequestDescriptor : RequestDescriptorBase - { - internal IlmRemovePolicyRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmRemovePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal IlmRemovePolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRemovePolicy; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmRemovePolicyRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs deleted file mode 100644 index 656d0f5337f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRemovePolicyResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmRemovePolicyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("failed_indexes")] - public IReadOnlyCollection FailedIndexes { get; init; } - - [JsonInclude] - [JsonPropertyName("has_failures")] - public bool HasFailures { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs deleted file mode 100644 index a4d886b7e6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryRequest.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmRetryRequestParameters : RequestParameters - { - } - - public sealed partial class IlmRetryRequest : PlainRequestBase - { - public IlmRetryRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class IlmRetryRequestDescriptor : RequestDescriptorBase, IlmRetryRequestParameters> - { - internal IlmRetryRequestDescriptor(Action> configure) => configure.Invoke(this); - public IlmRetryRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - public IlmRetryRequestDescriptor(TDocument document) : this(typeof(TDocument)) - { - } - - internal IlmRetryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmRetryRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class IlmRetryRequestDescriptor : RequestDescriptorBase - { - internal IlmRetryRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmRetryRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal IlmRetryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementRetry; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmRetryRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs deleted file mode 100644 index 8e000a5684a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmRetryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmRetryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs deleted file mode 100644 index 6b2cbd79d31..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmStartRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmStartRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStart; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmStartRequestDescriptor : RequestDescriptorBase - { - internal IlmStartRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmStartRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStart; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmStartRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmStartRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs deleted file mode 100644 index 33e9f0161da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStartResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmStartResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs deleted file mode 100644 index dfd94873c62..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed class IlmStopRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmStopRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStop; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IlmStopRequestDescriptor : RequestDescriptorBase - { - internal IlmStopRequestDescriptor(Action configure) => configure.Invoke(this); - public IlmStopRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexLifecycleManagementStop; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public IlmStopRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IlmStopRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs deleted file mode 100644 index cc3fff9563b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ilm/IlmStopResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class IlmStopResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineRequest.g.cs deleted file mode 100644 index f3722470792..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineRequest.g.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestDeletePipelineRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IngestDeletePipelineRequest : PlainRequestBase - { - public IngestDeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class IngestDeletePipelineRequestDescriptor : RequestDescriptorBase, IngestDeletePipelineRequestParameters> - { - internal IngestDeletePipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - public IngestDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal IngestDeletePipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public IngestDeletePipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestDeletePipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IngestDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class IngestDeletePipelineRequestDescriptor : RequestDescriptorBase - { - internal IngestDeletePipelineRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal IngestDeletePipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public IngestDeletePipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestDeletePipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IngestDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineResponse.g.cs deleted file mode 100644 index 8f825fc939f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestDeletePipelineResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestDeletePipelineResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsRequest.g.cs deleted file mode 100644 index f281724096a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestGeoIpStatsRequestParameters : RequestParameters - { - } - - public sealed partial class IngestGeoIpStatsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestGeoIpStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class IngestGeoIpStatsRequestDescriptor : RequestDescriptorBase - { - internal IngestGeoIpStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestGeoIpStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestGeoIpStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsResponse.g.cs deleted file mode 100644 index 4df6d4c3958..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGeoIpStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestGeoIpStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Ingest.GeoIpDownloadStatistics Stats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineRequest.g.cs deleted file mode 100644 index 833078c1828..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineRequest.g.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestGetPipelineRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Summary { get => Q("summary"); set => Q("summary", value); } - } - - public sealed partial class IngestGetPipelineRequest : PlainRequestBase - { - public IngestGetPipelineRequest() - { - } - - public IngestGetPipelineRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestGetPipeline; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Summary { get => Q("summary"); set => Q("summary", value); } - } - - public sealed partial class IngestGetPipelineRequestDescriptor : RequestDescriptorBase, IngestGetPipelineRequestParameters> - { - internal IngestGetPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - public IngestGetPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestGetPipeline; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public IngestGetPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestGetPipelineRequestDescriptor Summary(bool? summary = true) => Qs("summary", summary); - public IngestGetPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class IngestGetPipelineRequestDescriptor : RequestDescriptorBase - { - internal IngestGetPipelineRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestGetPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestGetPipeline; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public IngestGetPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestGetPipelineRequestDescriptor Summary(bool? summary = true) => Qs("summary", summary); - public IngestGetPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineResponse.g.cs deleted file mode 100644 index e711224aa41..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestGetPipelineResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestGetPipelineResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokRequest.g.cs deleted file mode 100644 index ea1a4b192da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestProcessorGrokRequestParameters : RequestParameters - { - } - - public sealed partial class IngestProcessorGrokRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestProcessorGrok; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class IngestProcessorGrokRequestDescriptor : RequestDescriptorBase - { - internal IngestProcessorGrokRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestProcessorGrokRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestProcessorGrok; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokResponse.g.cs deleted file mode 100644 index 46b69996529..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestProcessorGrokResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestProcessorGrokResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("patterns")] - public Dictionary Patterns { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineRequest.g.cs deleted file mode 100644 index 3a10d23e27b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineRequest.g.cs +++ /dev/null @@ -1,522 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestPutPipelineRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } - } - - public sealed partial class IngestPutPipelineRequest : PlainRequestBase - { - public IngestPutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } - - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("processors")] - public IEnumerable? Processors { get; set; } - - [JsonInclude] - [JsonPropertyName("version")] - public long? Version { get; set; } - } - - public sealed partial class IngestPutPipelineRequestDescriptor : RequestDescriptorBase, IngestPutPipelineRequestParameters> - { - internal IngestPutPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - public IngestPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal IngestPutPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public IngestPutPipelineRequestDescriptor IfVersion(long? ifVersion) => Qs("if_version", ifVersion); - public IngestPutPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestPutPipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IngestPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ProcessorsValue { get; set; } - - private ProcessorContainerDescriptor ProcessorsDescriptor { get; set; } - - private Action> ProcessorsDescriptorAction { get; set; } - - private Action>[] ProcessorsDescriptorActions { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private long? VersionValue { get; set; } - - public IngestPutPipelineRequestDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(IEnumerable? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(ProcessorContainerDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(Action> configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(params Action>[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IngestPutPipelineRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public IngestPutPipelineRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class IngestPutPipelineRequestDescriptor : RequestDescriptorBase - { - internal IngestPutPipelineRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal IngestPutPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public IngestPutPipelineRequestDescriptor IfVersion(long? ifVersion) => Qs("if_version", ifVersion); - public IngestPutPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public IngestPutPipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public IngestPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ProcessorsValue { get; set; } - - private ProcessorContainerDescriptor ProcessorsDescriptor { get; set; } - - private Action ProcessorsDescriptorAction { get; set; } - - private Action[] ProcessorsDescriptorActions { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private long? VersionValue { get; set; } - - public IngestPutPipelineRequestDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(IEnumerable? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(ProcessorContainerDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(Action configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Processors(params Action[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - public IngestPutPipelineRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IngestPutPipelineRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public IngestPutPipelineRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineResponse.g.cs deleted file mode 100644 index 36780bffd42..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestPutPipelineResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestPutPipelineResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateRequest.g.cs deleted file mode 100644 index b950f8a03ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateRequest.g.cs +++ /dev/null @@ -1,348 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed class IngestSimulateRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - } - - public sealed partial class IngestSimulateRequest : PlainRequestBase - { - public IngestSimulateRequest() - { - } - - public IngestSimulateRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestSimulate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - - [JsonInclude] - [JsonPropertyName("docs")] - public IEnumerable? Docs { get; set; } - - [JsonInclude] - [JsonPropertyName("pipeline")] - public Elastic.Clients.Elasticsearch.Ingest.Pipeline? Pipeline { get; set; } - } - - public sealed partial class IngestSimulateRequestDescriptor : RequestDescriptorBase, IngestSimulateRequestParameters> - { - internal IngestSimulateRequestDescriptor(Action> configure) => configure.Invoke(this); - public IngestSimulateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestSimulate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public IngestSimulateRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public IngestSimulateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ingest.Pipeline? PipelineValue { get; set; } - - private PipelineDescriptor PipelineDescriptor { get; set; } - - private Action> PipelineDescriptorAction { get; set; } - - private IEnumerable? DocsValue { get; set; } - - private DocumentDescriptor DocsDescriptor { get; set; } - - private Action DocsDescriptorAction { get; set; } - - private Action[] DocsDescriptorActions { get; set; } - - public IngestSimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.Pipeline? pipeline) - { - PipelineDescriptor = null; - PipelineDescriptorAction = null; - PipelineValue = pipeline; - return Self; - } - - public IngestSimulateRequestDescriptor Pipeline(PipelineDescriptor descriptor) - { - PipelineValue = null; - PipelineDescriptorAction = null; - PipelineDescriptor = descriptor; - return Self; - } - - public IngestSimulateRequestDescriptor Pipeline(Action> configure) - { - PipelineValue = null; - PipelineDescriptor = null; - PipelineDescriptorAction = configure; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(IEnumerable? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(DocumentDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PipelineDescriptor is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineDescriptor, options); - } - else if (PipelineDescriptorAction is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, new PipelineDescriptor(PipelineDescriptorAction), options); - } - else if (PipelineValue is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineValue, options); - } - - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DocumentDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DocumentDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class IngestSimulateRequestDescriptor : RequestDescriptorBase - { - internal IngestSimulateRequestDescriptor(Action configure) => configure.Invoke(this); - public IngestSimulateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.IngestSimulate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public IngestSimulateRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public IngestSimulateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ingest.Pipeline? PipelineValue { get; set; } - - private PipelineDescriptor PipelineDescriptor { get; set; } - - private Action PipelineDescriptorAction { get; set; } - - private IEnumerable? DocsValue { get; set; } - - private DocumentDescriptor DocsDescriptor { get; set; } - - private Action DocsDescriptorAction { get; set; } - - private Action[] DocsDescriptorActions { get; set; } - - public IngestSimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.Pipeline? pipeline) - { - PipelineDescriptor = null; - PipelineDescriptorAction = null; - PipelineValue = pipeline; - return Self; - } - - public IngestSimulateRequestDescriptor Pipeline(PipelineDescriptor descriptor) - { - PipelineValue = null; - PipelineDescriptorAction = null; - PipelineDescriptor = descriptor; - return Self; - } - - public IngestSimulateRequestDescriptor Pipeline(Action configure) - { - PipelineValue = null; - PipelineDescriptor = null; - PipelineDescriptorAction = configure; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(IEnumerable? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(DocumentDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public IngestSimulateRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PipelineDescriptor is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineDescriptor, options); - } - else if (PipelineDescriptorAction is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, new PipelineDescriptor(PipelineDescriptorAction), options); - } - else if (PipelineValue is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineValue, options); - } - - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DocumentDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DocumentDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateResponse.g.cs deleted file mode 100644 index d8b8123f215..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/IngestSimulateResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class IngestSimulateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("docs")] - public IReadOnlyCollection Docs { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseRequest.g.cs deleted file mode 100644 index 7a2053ed8be..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class DeleteLicenseRequestParameters : RequestParameters - { - } - - public sealed partial class DeleteLicenseRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseDelete; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class DeleteLicenseRequestDescriptor : RequestDescriptorBase - { - internal DeleteLicenseRequestDescriptor(Action configure) => configure.Invoke(this); - public DeleteLicenseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseDelete; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseResponse.g.cs deleted file mode 100644 index d866aadfa85..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/DeleteLicenseResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class DeleteLicenseResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseRequest.g.cs deleted file mode 100644 index bea1d5f47ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class GetLicenseRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - } - - public sealed partial class GetLicenseRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - } - - public sealed partial class GetLicenseRequestDescriptor : RequestDescriptorBase - { - internal GetLicenseRequestDescriptor(Action configure) => configure.Invoke(this); - public GetLicenseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public GetLicenseRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise); - public GetLicenseRequestDescriptor Local(bool? local = true) => Qs("local", local); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseResponse.g.cs deleted file mode 100644 index 36c4f0c08f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/GetLicenseResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class GetLicenseResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.License.LicenseInformation License { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusRequest.g.cs deleted file mode 100644 index 6def433bccc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class LicenseGetBasicStatusRequestParameters : RequestParameters - { - } - - public sealed partial class LicenseGetBasicStatusRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGetBasicStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class LicenseGetBasicStatusRequestDescriptor : RequestDescriptorBase - { - internal LicenseGetBasicStatusRequestDescriptor(Action configure) => configure.Invoke(this); - public LicenseGetBasicStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGetBasicStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusResponse.g.cs deleted file mode 100644 index ccd252d5812..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetBasicStatusResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicenseGetBasicStatusResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("eligible_to_start_basic")] - public bool EligibleToStartBasic { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusRequest.g.cs deleted file mode 100644 index 117a27b2e12..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class LicenseGetTrialStatusRequestParameters : RequestParameters - { - } - - public sealed partial class LicenseGetTrialStatusRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGetTrialStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class LicenseGetTrialStatusRequestDescriptor : RequestDescriptorBase - { - internal LicenseGetTrialStatusRequestDescriptor(Action configure) => configure.Invoke(this); - public LicenseGetTrialStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicenseGetTrialStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusResponse.g.cs deleted file mode 100644 index c185fb1917c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicenseGetTrialStatusResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicenseGetTrialStatusResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("eligible_to_start_trial")] - public bool EligibleToStartTrial { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostRequest.g.cs deleted file mode 100644 index b62c63d6ca8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostRequest.g.cs +++ /dev/null @@ -1,189 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class LicensePostRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - } - - public sealed partial class LicensePostRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePost; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - - [JsonInclude] - [JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.License.License? License { get; set; } - - [JsonInclude] - [JsonPropertyName("licenses")] - public IEnumerable Licenses { get; set; } - } - - public sealed partial class LicensePostRequestDescriptor : RequestDescriptorBase - { - internal LicensePostRequestDescriptor(Action configure) => configure.Invoke(this); - public LicensePostRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePost; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public LicensePostRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); - private Elastic.Clients.Elasticsearch.License.License? LicenseValue { get; set; } - - private LicenseDescriptor LicenseDescriptor { get; set; } - - private Action LicenseDescriptorAction { get; set; } - - private IEnumerable LicensesValue { get; set; } - - private LicenseDescriptor LicensesDescriptor { get; set; } - - private Action LicensesDescriptorAction { get; set; } - - private Action[] LicensesDescriptorActions { get; set; } - - public LicensePostRequestDescriptor License(Elastic.Clients.Elasticsearch.License.License? license) - { - LicenseDescriptor = null; - LicenseDescriptorAction = null; - LicenseValue = license; - return Self; - } - - public LicensePostRequestDescriptor License(LicenseDescriptor descriptor) - { - LicenseValue = null; - LicenseDescriptorAction = null; - LicenseDescriptor = descriptor; - return Self; - } - - public LicensePostRequestDescriptor License(Action configure) - { - LicenseValue = null; - LicenseDescriptor = null; - LicenseDescriptorAction = configure; - return Self; - } - - public LicensePostRequestDescriptor Licenses(IEnumerable licenses) - { - LicensesDescriptor = null; - LicensesDescriptorAction = null; - LicensesDescriptorActions = null; - LicensesValue = licenses; - return Self; - } - - public LicensePostRequestDescriptor Licenses(LicenseDescriptor descriptor) - { - LicensesValue = null; - LicensesDescriptorAction = null; - LicensesDescriptorActions = null; - LicensesDescriptor = descriptor; - return Self; - } - - public LicensePostRequestDescriptor Licenses(Action configure) - { - LicensesValue = null; - LicensesDescriptor = null; - LicensesDescriptorActions = null; - LicensesDescriptorAction = configure; - return Self; - } - - public LicensePostRequestDescriptor Licenses(params Action[] configure) - { - LicensesValue = null; - LicensesDescriptor = null; - LicensesDescriptorAction = null; - LicensesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LicenseDescriptor is not null) - { - writer.WritePropertyName("license"); - JsonSerializer.Serialize(writer, LicenseDescriptor, options); - } - else if (LicenseDescriptorAction is not null) - { - writer.WritePropertyName("license"); - JsonSerializer.Serialize(writer, new LicenseDescriptor(LicenseDescriptorAction), options); - } - else if (LicenseValue is not null) - { - writer.WritePropertyName("license"); - JsonSerializer.Serialize(writer, LicenseValue, options); - } - - if (LicensesDescriptor is not null) - { - writer.WritePropertyName("licenses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, LicensesDescriptor, options); - writer.WriteEndArray(); - } - else if (LicensesDescriptorAction is not null) - { - writer.WritePropertyName("licenses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new LicenseDescriptor(LicensesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (LicensesDescriptorActions is not null) - { - writer.WritePropertyName("licenses"); - writer.WriteStartArray(); - foreach (var action in LicensesDescriptorActions) - { - JsonSerializer.Serialize(writer, new LicenseDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("licenses"); - JsonSerializer.Serialize(writer, LicensesValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostResponse.g.cs deleted file mode 100644 index 9745e7b3cf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicensePostResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledge")] - public Elastic.Clients.Elasticsearch.License.Acknowledgement? Acknowledge { get; init; } - - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("license_status")] - public Elastic.Clients.Elasticsearch.License.LicenseStatus LicenseStatus { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicRequest.g.cs deleted file mode 100644 index 8daf10e9fa2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicRequest.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class LicensePostStartBasicRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - } - - public sealed partial class LicensePostStartBasicRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePostStartBasic; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - } - - public sealed partial class LicensePostStartBasicRequestDescriptor : RequestDescriptorBase - { - internal LicensePostStartBasicRequestDescriptor(Action configure) => configure.Invoke(this); - public LicensePostStartBasicRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePostStartBasic; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public LicensePostStartBasicRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicResponse.g.cs deleted file mode 100644 index 034705316ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartBasicResponse.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicensePostStartBasicResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledge")] - public Dictionary>? Acknowledge { get; init; } - - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("basic_was_started")] - public bool BasicWasStarted { get; init; } - - [JsonInclude] - [JsonPropertyName("error_message")] - public string? ErrorMessage { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.License.LicenseType? Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialRequest.g.cs deleted file mode 100644 index 2a90bfeb503..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed class LicensePostStartTrialRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - - [JsonIgnore] - public string? TypeQueryString { get => Q("type_query_string"); set => Q("type_query_string", value); } - } - - public sealed partial class LicensePostStartTrialRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePostStartTrial; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } - - [JsonIgnore] - public string? TypeQueryString { get => Q("type_query_string"); set => Q("type_query_string", value); } - } - - public sealed partial class LicensePostStartTrialRequestDescriptor : RequestDescriptorBase - { - internal LicensePostStartTrialRequestDescriptor(Action configure) => configure.Invoke(this); - public LicensePostStartTrialRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LicensePostStartTrial; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public LicensePostStartTrialRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); - public LicensePostStartTrialRequestDescriptor TypeQueryString(string? typeQueryString) => Qs("type_query_string", typeQueryString); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialResponse.g.cs deleted file mode 100644 index 3ba2e04c131..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/License/LicensePostStartTrialResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicensePostStartTrialResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("error_message")] - public string? ErrorMessage { get; init; } - - [JsonInclude] - [JsonPropertyName("trial_was_started")] - public bool TrialWasStarted { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.License.LicenseType? Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobRequest.g.cs deleted file mode 100644 index 44bde0776d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlCloseJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlCloseJobRequest : PlainRequestBase - { - public MlCloseJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningCloseJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - [JsonInclude] - [JsonPropertyName("force")] - public bool? Force { get; set; } - - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - } - - public sealed partial class MlCloseJobRequestDescriptor : RequestDescriptorBase - { - internal MlCloseJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlCloseJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlCloseJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningCloseJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlCloseJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - - private bool? ForceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - public MlCloseJobRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - public MlCloseJobRequestDescriptor Force(bool? force = true) - { - ForceValue = force; - return Self; - } - - public MlCloseJobRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (ForceValue.HasValue) - { - writer.WritePropertyName("force"); - writer.WriteBooleanValue(ForceValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobResponse.g.cs deleted file mode 100644 index ce44ec1e5e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlCloseJobResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlCloseJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("closed")] - public bool Closed { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventRequest.g.cs deleted file mode 100644 index d4041b658ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventRequest.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteCalendarEventRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteCalendarEventRequest : PlainRequestBase - { - public MlDeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id) : base(r => r.Required("calendar_id", calendar_id).Required("event_id", event_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteCalendarEvent; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class MlDeleteCalendarEventRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteCalendarEventRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteCalendarEventRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id) : base(r => r.Required("calendar_id", calendar_id).Required("event_id", event_id)) - { - } - - internal MlDeleteCalendarEventRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteCalendarEvent; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteCalendarEventRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - public MlDeleteCalendarEventRequestDescriptor EventId(Elastic.Clients.Elasticsearch.Id event_id) - { - RouteValues.Required("event_id", event_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventResponse.g.cs deleted file mode 100644 index 6185a36ae00..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarEventResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteCalendarEventResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarRequest.g.cs deleted file mode 100644 index e830962c00b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteCalendarRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteCalendarRequest : PlainRequestBase - { - public MlDeleteCalendarRequest(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteCalendar; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class MlDeleteCalendarRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteCalendarRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteCalendarRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal MlDeleteCalendarRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteCalendar; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteCalendarRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarResponse.g.cs deleted file mode 100644 index 8ef13249213..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteCalendarResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteCalendarResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 77af2dec8d0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteDataFrameAnalyticsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlDeleteDataFrameAnalyticsRequest : PlainRequestBase - { - public MlDeleteDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlDeleteDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlDeleteDataFrameAnalyticsRequestParameters> - { - internal MlDeleteDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlDeleteDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlDeleteDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlDeleteDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlDeleteDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class MlDeleteDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlDeleteDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlDeleteDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlDeleteDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 7d88fdfba3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedRequest.g.cs deleted file mode 100644 index b3381ca91b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteDatafeedRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class MlDeleteDatafeedRequest : PlainRequestBase - { - public MlDeleteDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class MlDeleteDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlDeleteDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteDatafeedRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlDeleteDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedResponse.g.cs deleted file mode 100644 index 7b407137608..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteDatafeedResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataRequest.g.cs deleted file mode 100644 index a6e4afb58f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataRequest.g.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteExpiredDataRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteExpiredDataRequest : PlainRequestBase - { - public MlDeleteExpiredDataRequest() - { - } - - public MlDeleteExpiredDataRequest(Elastic.Clients.Elasticsearch.Id? job_id) : base(r => r.Optional("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteExpiredData; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("requests_per_second")] - public float? RequestsPerSecond { get; set; } - - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - } - - public sealed partial class MlDeleteExpiredDataRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteExpiredDataRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteExpiredDataRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteExpiredData; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - public MlDeleteExpiredDataRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? job_id) - { - RouteValues.Optional("job_id", job_id); - return Self; - } - - private float? RequestsPerSecondValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - public MlDeleteExpiredDataRequestDescriptor RequestsPerSecond(float? requestsPerSecond) - { - RequestsPerSecondValue = requestsPerSecond; - return Self; - } - - public MlDeleteExpiredDataRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RequestsPerSecondValue.HasValue) - { - writer.WritePropertyName("requests_per_second"); - writer.WriteNumberValue(RequestsPerSecondValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataResponse.g.cs deleted file mode 100644 index 7d69112ab84..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteExpiredDataResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteExpiredDataResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("deleted")] - public bool Deleted { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterRequest.g.cs deleted file mode 100644 index f4eb1617753..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteFilterRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteFilterRequest : PlainRequestBase - { - public MlDeleteFilterRequest(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteFilter; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class MlDeleteFilterRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteFilterRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal MlDeleteFilterRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteFilter; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Id filter_id) - { - RouteValues.Required("filter_id", filter_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterResponse.g.cs deleted file mode 100644 index c0222902a93..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteFilterResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteFilterResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastRequest.g.cs deleted file mode 100644 index b1c14aeaaff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastRequest.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteForecastRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoForecasts { get => Q("allow_no_forecasts"); set => Q("allow_no_forecasts", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlDeleteForecastRequest : PlainRequestBase - { - public MlDeleteForecastRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - public MlDeleteForecastRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id? forecast_id) : base(r => r.Required("job_id", job_id).Optional("forecast_id", forecast_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteForecast; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoForecasts { get => Q("allow_no_forecasts"); set => Q("allow_no_forecasts", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlDeleteForecastRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteForecastRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - public MlDeleteForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id? forecast_id) : base(r => r.Required("job_id", job_id).Optional("forecast_id", forecast_id)) - { - } - - internal MlDeleteForecastRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteForecast; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteForecastRequestDescriptor AllowNoForecasts(bool? allowNoForecasts = true) => Qs("allow_no_forecasts", allowNoForecasts); - public MlDeleteForecastRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlDeleteForecastRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlDeleteForecastRequestDescriptor ForecastId(Elastic.Clients.Elasticsearch.Id? forecast_id) - { - RouteValues.Optional("forecast_id", forecast_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastResponse.g.cs deleted file mode 100644 index d0adf94d4d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteForecastResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteForecastResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobRequest.g.cs deleted file mode 100644 index 74c927951f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteJobRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class MlDeleteJobRequest : PlainRequestBase - { - public MlDeleteJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteJob; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class MlDeleteJobRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlDeleteJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteJob; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteJobRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlDeleteJobRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public MlDeleteJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobResponse.g.cs deleted file mode 100644 index dd825935e74..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteJobResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotRequest.g.cs deleted file mode 100644 index 8e3f855f9ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotRequest.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteModelSnapshotRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteModelSnapshotRequest : PlainRequestBase - { - public MlDeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class MlDeleteModelSnapshotRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal MlDeleteModelSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlDeleteModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id snapshot_id) - { - RouteValues.Required("snapshot_id", snapshot_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotResponse.g.cs deleted file mode 100644 index 69f917774a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteModelSnapshotResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteModelSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasRequest.g.cs deleted file mode 100644 index dedd200e613..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasRequest.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteTrainedModelAliasRequestParameters : RequestParameters - { - } - - public sealed partial class MlDeleteTrainedModelAliasRequest : PlainRequestBase - { - public MlDeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) : base(r => r.Required("model_id", model_id).Required("model_alias", model_alias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteTrainedModelAlias; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class MlDeleteTrainedModelAliasRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteTrainedModelAliasRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteTrainedModelAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) : base(r => r.Required("model_id", model_id).Required("model_alias", model_alias)) - { - } - - internal MlDeleteTrainedModelAliasRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteTrainedModelAlias; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteTrainedModelAliasRequestDescriptor ModelAlias(Elastic.Clients.Elasticsearch.Name model_alias) - { - RouteValues.Required("model_alias", model_alias); - return Self; - } - - public MlDeleteTrainedModelAliasRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasResponse.g.cs deleted file mode 100644 index aedc64e0607..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelAliasResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteTrainedModelAliasResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelRequest.g.cs deleted file mode 100644 index 70f8c31525c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlDeleteTrainedModelRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class MlDeleteTrainedModelRequest : PlainRequestBase - { - public MlDeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteTrainedModel; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class MlDeleteTrainedModelRequestDescriptor : RequestDescriptorBase - { - internal MlDeleteTrainedModelRequestDescriptor(Action configure) => configure.Invoke(this); - public MlDeleteTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlDeleteTrainedModelRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteTrainedModel; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public MlDeleteTrainedModelRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlDeleteTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelResponse.g.cs deleted file mode 100644 index 306fb455963..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlDeleteTrainedModelResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlDeleteTrainedModelResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryRequest.g.cs deleted file mode 100644 index 0cb6bf9389f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryRequest.g.cs +++ /dev/null @@ -1,231 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlEstimateModelMemoryRequestParameters : RequestParameters - { - } - - public sealed partial class MlEstimateModelMemoryRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEstimateModelMemory; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("max_bucket_cardinality")] - public Dictionary? MaxBucketCardinality { get; set; } - - [JsonInclude] - [JsonPropertyName("overall_cardinality")] - public Dictionary? OverallCardinality { get; set; } - } - - public sealed partial class MlEstimateModelMemoryRequestDescriptor : RequestDescriptorBase, MlEstimateModelMemoryRequestParameters> - { - internal MlEstimateModelMemoryRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlEstimateModelMemoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEstimateModelMemory; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action> AnalysisConfigDescriptorAction { get; set; } - - private Dictionary? MaxBucketCardinalityValue { get; set; } - - private Dictionary? OverallCardinalityValue { get; set; } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor MaxBucketCardinality(Func, FluentDictionary> selector) - { - MaxBucketCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor OverallCardinality(Func, FluentDictionary> selector) - { - OverallCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (MaxBucketCardinalityValue is not null) - { - writer.WritePropertyName("max_bucket_cardinality"); - JsonSerializer.Serialize(writer, MaxBucketCardinalityValue, options); - } - - if (OverallCardinalityValue is not null) - { - writer.WritePropertyName("overall_cardinality"); - JsonSerializer.Serialize(writer, OverallCardinalityValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlEstimateModelMemoryRequestDescriptor : RequestDescriptorBase - { - internal MlEstimateModelMemoryRequestDescriptor(Action configure) => configure.Invoke(this); - public MlEstimateModelMemoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEstimateModelMemory; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action AnalysisConfigDescriptorAction { get; set; } - - private Dictionary? MaxBucketCardinalityValue { get; set; } - - private Dictionary? OverallCardinalityValue { get; set; } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor MaxBucketCardinality(Func, FluentDictionary> selector) - { - MaxBucketCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlEstimateModelMemoryRequestDescriptor OverallCardinality(Func, FluentDictionary> selector) - { - OverallCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (MaxBucketCardinalityValue is not null) - { - writer.WritePropertyName("max_bucket_cardinality"); - JsonSerializer.Serialize(writer, MaxBucketCardinalityValue, options); - } - - if (OverallCardinalityValue is not null) - { - writer.WritePropertyName("overall_cardinality"); - JsonSerializer.Serialize(writer, OverallCardinalityValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryResponse.g.cs deleted file mode 100644 index d91ef78e596..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEstimateModelMemoryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlEstimateModelMemoryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("model_memory_estimate")] - public string ModelMemoryEstimate { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameRequest.g.cs deleted file mode 100644 index 33f63920983..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameRequest.g.cs +++ /dev/null @@ -1,287 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlEvaluateDataFrameRequestParameters : RequestParameters - { - } - - public sealed partial class MlEvaluateDataFrameRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEvaluateDataFrame; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("evaluation")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationContainer Evaluation { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - } - - public sealed partial class MlEvaluateDataFrameRequestDescriptor : RequestDescriptorBase, MlEvaluateDataFrameRequestParameters> - { - internal MlEvaluateDataFrameRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlEvaluateDataFrameRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEvaluateDataFrame; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationContainer EvaluationValue { get; set; } - - private DataframeEvaluationContainerDescriptor EvaluationDescriptor { get; set; } - - private Action> EvaluationDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationContainer evaluation) - { - EvaluationDescriptor = null; - EvaluationDescriptorAction = null; - EvaluationValue = evaluation; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(DataframeEvaluationContainerDescriptor descriptor) - { - EvaluationValue = null; - EvaluationDescriptorAction = null; - EvaluationDescriptor = descriptor; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(Action> configure) - { - EvaluationValue = null; - EvaluationDescriptor = null; - EvaluationDescriptorAction = configure; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EvaluationDescriptor is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationDescriptor, options); - } - else if (EvaluationDescriptorAction is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, new DataframeEvaluationContainerDescriptor(EvaluationDescriptorAction), options); - } - else - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class MlEvaluateDataFrameRequestDescriptor : RequestDescriptorBase - { - internal MlEvaluateDataFrameRequestDescriptor(Action configure) => configure.Invoke(this); - public MlEvaluateDataFrameRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningEvaluateDataFrame; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationContainer EvaluationValue { get; set; } - - private DataframeEvaluationContainerDescriptor EvaluationDescriptor { get; set; } - - private Action EvaluationDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationContainer evaluation) - { - EvaluationDescriptor = null; - EvaluationDescriptorAction = null; - EvaluationValue = evaluation; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(DataframeEvaluationContainerDescriptor descriptor) - { - EvaluationValue = null; - EvaluationDescriptorAction = null; - EvaluationDescriptor = descriptor; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Evaluation(Action configure) - { - EvaluationValue = null; - EvaluationDescriptor = null; - EvaluationDescriptorAction = configure; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlEvaluateDataFrameRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EvaluationDescriptor is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationDescriptor, options); - } - else if (EvaluationDescriptorAction is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, new DataframeEvaluationContainerDescriptor(EvaluationDescriptorAction), options); - } - else - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameResponse.g.cs deleted file mode 100644 index 4728ce9f631..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlEvaluateDataFrameResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlEvaluateDataFrameResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("classification")] - public Elastic.Clients.Elasticsearch.Ml.DataframeClassificationSummary? Classification { get; init; } - - [JsonInclude] - [JsonPropertyName("outlier_detection")] - public Elastic.Clients.Elasticsearch.Ml.DataframeOutlierDetectionSummary? OutlierDetection { get; init; } - - [JsonInclude] - [JsonPropertyName("regression")] - public Elastic.Clients.Elasticsearch.Ml.DataframeRegressionSummary? Regression { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 74372fb2d4a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,603 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlExplainDataFrameAnalyticsRequestParameters : RequestParameters - { - } - - public sealed partial class MlExplainDataFrameAnalyticsRequest : PlainRequestBase - { - public MlExplainDataFrameAnalyticsRequest() - { - } - - public MlExplainDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningExplainDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource? Source { get; set; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination? Dest { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer? Analysis { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - } - - public sealed partial class MlExplainDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlExplainDataFrameAnalyticsRequestParameters> - { - internal MlExplainDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlExplainDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningExplainDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlExplainDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer? AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action> AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination? DestValue { get; set; } - - private DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - - private Action> DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource? SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private bool? AllowLazyStartValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(Action> configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlExplainDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlExplainDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlExplainDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningExplainDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlExplainDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer? AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination? DestValue { get; set; } - - private DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource? SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private bool? AllowLazyStartValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlExplainDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 9ae80130193..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlExplainDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlExplainDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("field_selection")] - public IReadOnlyCollection FieldSelection { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_estimation")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsMemoryEstimation MemoryEstimation { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobRequest.g.cs deleted file mode 100644 index fae4e2cde04..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobRequest.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlFlushJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlFlushJobRequest : PlainRequestBase - { - public MlFlushJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningFlushJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("advance_time")] - public DateTimeOffset? AdvanceTime { get; set; } - - [JsonInclude] - [JsonPropertyName("calc_interim")] - public bool? CalcInterim { get; set; } - - [JsonInclude] - [JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - [JsonInclude] - [JsonPropertyName("skip_time")] - public DateTimeOffset? SkipTime { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - } - - public sealed partial class MlFlushJobRequestDescriptor : RequestDescriptorBase, MlFlushJobRequestParameters> - { - internal MlFlushJobRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlFlushJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlFlushJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningFlushJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlFlushJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private DateTimeOffset? AdvanceTimeValue { get; set; } - - private bool? CalcInterimValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private DateTimeOffset? SkipTimeValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlFlushJobRequestDescriptor AdvanceTime(DateTimeOffset? advanceTime) - { - AdvanceTimeValue = advanceTime; - return Self; - } - - public MlFlushJobRequestDescriptor CalcInterim(bool? calcInterim = true) - { - CalcInterimValue = calcInterim; - return Self; - } - - public MlFlushJobRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlFlushJobRequestDescriptor SkipTime(DateTimeOffset? skipTime) - { - SkipTimeValue = skipTime; - return Self; - } - - public MlFlushJobRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AdvanceTimeValue is not null) - { - writer.WritePropertyName("advance_time"); - JsonSerializer.Serialize(writer, AdvanceTimeValue, options); - } - - if (CalcInterimValue.HasValue) - { - writer.WritePropertyName("calc_interim"); - writer.WriteBooleanValue(CalcInterimValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (SkipTimeValue is not null) - { - writer.WritePropertyName("skip_time"); - JsonSerializer.Serialize(writer, SkipTimeValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlFlushJobRequestDescriptor : RequestDescriptorBase - { - internal MlFlushJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlFlushJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlFlushJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningFlushJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlFlushJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private DateTimeOffset? AdvanceTimeValue { get; set; } - - private bool? CalcInterimValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private DateTimeOffset? SkipTimeValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlFlushJobRequestDescriptor AdvanceTime(DateTimeOffset? advanceTime) - { - AdvanceTimeValue = advanceTime; - return Self; - } - - public MlFlushJobRequestDescriptor CalcInterim(bool? calcInterim = true) - { - CalcInterimValue = calcInterim; - return Self; - } - - public MlFlushJobRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlFlushJobRequestDescriptor SkipTime(DateTimeOffset? skipTime) - { - SkipTimeValue = skipTime; - return Self; - } - - public MlFlushJobRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AdvanceTimeValue is not null) - { - writer.WritePropertyName("advance_time"); - JsonSerializer.Serialize(writer, AdvanceTimeValue, options); - } - - if (CalcInterimValue.HasValue) - { - writer.WritePropertyName("calc_interim"); - writer.WriteBooleanValue(CalcInterimValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (SkipTimeValue is not null) - { - writer.WritePropertyName("skip_time"); - JsonSerializer.Serialize(writer, SkipTimeValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobResponse.g.cs deleted file mode 100644 index f9bde3785e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlFlushJobResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlFlushJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("flushed")] - public bool Flushed { get; init; } - - [JsonInclude] - [JsonPropertyName("last_finalized_bucket_end")] - public int? LastFinalizedBucketEnd { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastRequest.g.cs deleted file mode 100644 index e52f660bc30..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlForecastRequestParameters : RequestParameters - { - } - - public sealed partial class MlForecastRequest : PlainRequestBase - { - public MlForecastRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningForecast; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("duration")] - public Elastic.Clients.Elasticsearch.Duration? Duration { get; set; } - - [JsonInclude] - [JsonPropertyName("expires_in")] - public Elastic.Clients.Elasticsearch.Duration? ExpiresIn { get; set; } - - [JsonInclude] - [JsonPropertyName("max_model_memory")] - public string? MaxModelMemory { get; set; } - } - - public sealed partial class MlForecastRequestDescriptor : RequestDescriptorBase - { - internal MlForecastRequestDescriptor(Action configure) => configure.Invoke(this); - public MlForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlForecastRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningForecast; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlForecastRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Duration? DurationValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ExpiresInValue { get; set; } - - private string? MaxModelMemoryValue { get; set; } - - public MlForecastRequestDescriptor Duration(Elastic.Clients.Elasticsearch.Duration? duration) - { - DurationValue = duration; - return Self; - } - - public MlForecastRequestDescriptor ExpiresIn(Elastic.Clients.Elasticsearch.Duration? expiresIn) - { - ExpiresInValue = expiresIn; - return Self; - } - - public MlForecastRequestDescriptor MaxModelMemory(string? maxModelMemory) - { - MaxModelMemoryValue = maxModelMemory; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DurationValue is not null) - { - writer.WritePropertyName("duration"); - JsonSerializer.Serialize(writer, DurationValue, options); - } - - if (ExpiresInValue is not null) - { - writer.WritePropertyName("expires_in"); - JsonSerializer.Serialize(writer, ExpiresInValue, options); - } - - if (!string.IsNullOrEmpty(MaxModelMemoryValue)) - { - writer.WritePropertyName("max_model_memory"); - writer.WriteStringValue(MaxModelMemoryValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastResponse.g.cs deleted file mode 100644 index 3619eb80013..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlForecastResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlForecastResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("forecast_id")] - public string ForecastId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsRequest.g.cs deleted file mode 100644 index 5bf5cf4f48b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsRequest.g.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetCalendarEventsRequestParameters : RequestParameters - { - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? JobId { get => Q("job_id"); set => Q("job_id", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } - } - - public sealed partial class MlGetCalendarEventsRequest : PlainRequestBase - { - public MlGetCalendarEventsRequest(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetCalendarEvents; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? JobId { get => Q("job_id"); set => Q("job_id", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } - } - - public sealed partial class MlGetCalendarEventsRequestDescriptor : RequestDescriptorBase - { - internal MlGetCalendarEventsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetCalendarEventsRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal MlGetCalendarEventsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetCalendarEvents; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetCalendarEventsRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public MlGetCalendarEventsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetCalendarEventsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) => Qs("job_id", jobId); - public MlGetCalendarEventsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetCalendarEventsRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - public MlGetCalendarEventsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsResponse.g.cs deleted file mode 100644 index efca345fd52..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarEventsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetCalendarEventsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("events")] - public IReadOnlyCollection Events { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsRequest.g.cs deleted file mode 100644 index ba265b73b34..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsRequest.g.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetCalendarsRequestParameters : RequestParameters - { - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class MlGetCalendarsRequest : PlainRequestBase - { - public MlGetCalendarsRequest() - { - } - - public MlGetCalendarsRequest(Elastic.Clients.Elasticsearch.Id? calendar_id) : base(r => r.Optional("calendar_id", calendar_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetCalendars; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonInclude] - [JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Ml.Page? Page { get; set; } - } - - public sealed partial class MlGetCalendarsRequestDescriptor : RequestDescriptorBase - { - internal MlGetCalendarsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetCalendarsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetCalendars; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetCalendarsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetCalendarsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetCalendarsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id? calendar_id) - { - RouteValues.Optional("calendar_id", calendar_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - public MlGetCalendarsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetCalendarsRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetCalendarsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsResponse.g.cs deleted file mode 100644 index 9bdd01d1ceb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetCalendarsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetCalendarsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("calendars")] - public IReadOnlyCollection Calendars { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 1e5113368a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetDataFrameAnalyticsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - } - - public sealed partial class MlGetDataFrameAnalyticsRequest : PlainRequestBase - { - public MlGetDataFrameAnalyticsRequest() - { - } - - public MlGetDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - } - - public sealed partial class MlGetDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlGetDataFrameAnalyticsRequestParameters> - { - internal MlGetDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlGetDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetDataFrameAnalyticsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public MlGetDataFrameAnalyticsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetDataFrameAnalyticsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class MlGetDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlGetDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetDataFrameAnalyticsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public MlGetDataFrameAnalyticsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetDataFrameAnalyticsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 81bee2a6b80..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame_analytics")] - public IReadOnlyCollection DataFrameAnalytics { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsRequest.g.cs deleted file mode 100644 index 3645141a841..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsRequest.g.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetDataFrameAnalyticsStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - } - - public sealed partial class MlGetDataFrameAnalyticsStatsRequest : PlainRequestBase - { - public MlGetDataFrameAnalyticsStatsRequest() - { - } - - public MlGetDataFrameAnalyticsStatsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalyticsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - } - - public sealed partial class MlGetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptorBase, MlGetDataFrameAnalyticsStatsRequestParameters> - { - internal MlGetDataFrameAnalyticsStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlGetDataFrameAnalyticsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalyticsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetDataFrameAnalyticsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetDataFrameAnalyticsStatsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class MlGetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptorBase - { - internal MlGetDataFrameAnalyticsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetDataFrameAnalyticsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDataFrameAnalyticsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetDataFrameAnalyticsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetDataFrameAnalyticsStatsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public MlGetDataFrameAnalyticsStatsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsResponse.g.cs deleted file mode 100644 index a4b05b882ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetDataFrameAnalyticsStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetDataFrameAnalyticsStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame_analytics")] - public IReadOnlyCollection DataFrameAnalytics { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersRequest.g.cs deleted file mode 100644 index d9c0b49d31c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersRequest.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetInfluencersRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Desc { get => Q("desc"); set => Q("desc", value); } - - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - [JsonIgnore] - public bool? ExcludeInterim { get => Q("exclude_interim"); set => Q("exclude_interim", value); } - - [JsonIgnore] - public double? InfluencerScore { get => Q("influencer_score"); set => Q("influencer_score", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Field? Sort { get => Q("sort"); set => Q("sort", value); } - - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } - } - - public sealed partial class MlGetInfluencersRequest : PlainRequestBase - { - public MlGetInfluencersRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetInfluencers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? Desc { get => Q("desc"); set => Q("desc", value); } - - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - [JsonIgnore] - public bool? ExcludeInterim { get => Q("exclude_interim"); set => Q("exclude_interim", value); } - - [JsonIgnore] - public double? InfluencerScore { get => Q("influencer_score"); set => Q("influencer_score", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Field? Sort { get => Q("sort"); set => Q("sort", value); } - - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } - - [JsonInclude] - [JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Ml.Page? Page { get; set; } - } - - public sealed partial class MlGetInfluencersRequestDescriptor : RequestDescriptorBase, MlGetInfluencersRequestParameters> - { - internal MlGetInfluencersRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlGetInfluencersRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetInfluencersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetInfluencers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetInfluencersRequestDescriptor Desc(bool? desc = true) => Qs("desc", desc); - public MlGetInfluencersRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public MlGetInfluencersRequestDescriptor ExcludeInterim(bool? excludeInterim = true) => Qs("exclude_interim", excludeInterim); - public MlGetInfluencersRequestDescriptor From(int? from) => Qs("from", from); - public MlGetInfluencersRequestDescriptor InfluencerScore(double? influencerScore) => Qs("influencer_score", influencerScore); - public MlGetInfluencersRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetInfluencersRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) => Qs("sort", sort); - public MlGetInfluencersRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - public MlGetInfluencersRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - public MlGetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetInfluencersRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetInfluencersRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlGetInfluencersRequestDescriptor : RequestDescriptorBase - { - internal MlGetInfluencersRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetInfluencersRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetInfluencersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetInfluencers; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetInfluencersRequestDescriptor Desc(bool? desc = true) => Qs("desc", desc); - public MlGetInfluencersRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public MlGetInfluencersRequestDescriptor ExcludeInterim(bool? excludeInterim = true) => Qs("exclude_interim", excludeInterim); - public MlGetInfluencersRequestDescriptor From(int? from) => Qs("from", from); - public MlGetInfluencersRequestDescriptor InfluencerScore(double? influencerScore) => Qs("influencer_score", influencerScore); - public MlGetInfluencersRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetInfluencersRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) => Qs("sort", sort); - public MlGetInfluencersRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - public MlGetInfluencersRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - public MlGetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetInfluencersRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetInfluencersRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersResponse.g.cs deleted file mode 100644 index dc6c6681377..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetInfluencersResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetInfluencersResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsRequest.g.cs deleted file mode 100644 index 98fa2841556..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetJobStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - } - - public sealed partial class MlGetJobStatsRequest : PlainRequestBase - { - public MlGetJobStatsRequest() - { - } - - public MlGetJobStatsRequest(Elastic.Clients.Elasticsearch.Id? job_id) : base(r => r.Optional("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetJobStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - } - - public sealed partial class MlGetJobStatsRequestDescriptor : RequestDescriptorBase - { - internal MlGetJobStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetJobStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetJobStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetJobStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetJobStatsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? job_id) - { - RouteValues.Optional("job_id", job_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsResponse.g.cs deleted file mode 100644 index d374c30f5fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetJobStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetJobStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("jobs")] - public IReadOnlyCollection Jobs { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsRequest.g.cs deleted file mode 100644 index 6f353feef8e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetMemoryStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlGetMemoryStatsRequest : PlainRequestBase - { - public MlGetMemoryStatsRequest() - { - } - - public MlGetMemoryStatsRequest(Elastic.Clients.Elasticsearch.Id? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetMemoryStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlGetMemoryStatsRequestDescriptor : RequestDescriptorBase - { - internal MlGetMemoryStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetMemoryStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetMemoryStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetMemoryStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public MlGetMemoryStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlGetMemoryStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Id? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsResponse.g.cs deleted file mode 100644 index 390a320202e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetMemoryStatsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetMemoryStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics NodeStatistics { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsRequest.g.cs deleted file mode 100644 index 3183c4eb787..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsRequest.g.cs +++ /dev/null @@ -1,376 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetModelSnapshotsRequestParameters : RequestParameters - { - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class MlGetModelSnapshotsRequest : PlainRequestBase - { - public MlGetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id? snapshot_id) : base(r => r.Required("job_id", job_id).Optional("snapshot_id", snapshot_id)) - { - } - - public MlGetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetModelSnapshots; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonInclude] - [JsonPropertyName("desc")] - public bool? Desc { get; set; } - - [JsonInclude] - [JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - [JsonInclude] - [JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Ml.Page? Page { get; set; } - - [JsonInclude] - [JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Field? Sort { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - } - - public sealed partial class MlGetModelSnapshotsRequestDescriptor : RequestDescriptorBase, MlGetModelSnapshotsRequestParameters> - { - internal MlGetModelSnapshotsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlGetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id? snapshot_id) : base(r => r.Required("job_id", job_id).Optional("snapshot_id", snapshot_id)) - { - } - - public MlGetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetModelSnapshotsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetModelSnapshots; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetModelSnapshotsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetModelSnapshotsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetModelSnapshotsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id? snapshot_id) - { - RouteValues.Optional("snapshot_id", snapshot_id); - return Self; - } - - private bool? DescValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SortValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlGetModelSnapshotsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) - { - SortValue = sort; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlGetModelSnapshotsRequestDescriptor : RequestDescriptorBase - { - internal MlGetModelSnapshotsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id? snapshot_id) : base(r => r.Required("job_id", job_id).Optional("snapshot_id", snapshot_id)) - { - } - - public MlGetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetModelSnapshotsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetModelSnapshots; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetModelSnapshotsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetModelSnapshotsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetModelSnapshotsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id? snapshot_id) - { - RouteValues.Optional("snapshot_id", snapshot_id); - return Self; - } - - private bool? DescValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SortValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlGetModelSnapshotsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) - { - SortValue = sort; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetModelSnapshotsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsResponse.g.cs deleted file mode 100644 index 6726aecb61d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetModelSnapshotsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetModelSnapshotsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshots")] - public IReadOnlyCollection ModelSnapshots { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsRequest.g.cs deleted file mode 100644 index 412aea7a532..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsRequest.g.cs +++ /dev/null @@ -1,194 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetOverallBucketsRequestParameters : RequestParameters - { - } - - public sealed partial class MlGetOverallBucketsRequest : PlainRequestBase - { - public MlGetOverallBucketsRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetOverallBuckets; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - [JsonInclude] - [JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Duration? BucketSpan { get; set; } - - [JsonInclude] - [JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - [JsonInclude] - [JsonPropertyName("exclude_interim")] - public bool? ExcludeInterim { get; set; } - - [JsonInclude] - [JsonPropertyName("overall_score")] - public Union? OverallScore { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - - [JsonInclude] - [JsonPropertyName("top_n")] - public int? TopN { get; set; } - } - - public sealed partial class MlGetOverallBucketsRequestDescriptor : RequestDescriptorBase - { - internal MlGetOverallBucketsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetOverallBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetOverallBucketsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetOverallBuckets; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetOverallBucketsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BucketSpanValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private bool? ExcludeInterimValue { get; set; } - - private Union? OverallScoreValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - private int? TopNValue { get; set; } - - public MlGetOverallBucketsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Duration? bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor OverallScore(Union? overallScore) - { - OverallScoreValue = overallScore; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - public MlGetOverallBucketsRequestDescriptor TopN(int? topN) - { - TopNValue = topN; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (BucketSpanValue is not null) - { - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (OverallScoreValue is not null) - { - writer.WritePropertyName("overall_score"); - JsonSerializer.Serialize(writer, OverallScoreValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - if (TopNValue.HasValue) - { - writer.WritePropertyName("top_n"); - writer.WriteNumberValue(TopNValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsResponse.g.cs deleted file mode 100644 index 24144532934..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetOverallBucketsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetOverallBucketsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("overall_buckets")] - public IReadOnlyCollection OverallBuckets { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsRequest.g.cs deleted file mode 100644 index 0690ed279b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsRequest.g.cs +++ /dev/null @@ -1,416 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetRecordsRequestParameters : RequestParameters - { - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class MlGetRecordsRequest : PlainRequestBase - { - public MlGetRecordsRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetRecords; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonInclude] - [JsonPropertyName("desc")] - public bool? Desc { get; set; } - - [JsonInclude] - [JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - [JsonInclude] - [JsonPropertyName("exclude_interim")] - public bool? ExcludeInterim { get; set; } - - [JsonInclude] - [JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Ml.Page? Page { get; set; } - - [JsonInclude] - [JsonPropertyName("record_score")] - public double? RecordScore { get; set; } - - [JsonInclude] - [JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Field? Sort { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - } - - public sealed partial class MlGetRecordsRequestDescriptor : RequestDescriptorBase, MlGetRecordsRequestParameters> - { - internal MlGetRecordsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlGetRecordsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetRecordsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetRecords; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetRecordsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetRecordsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetRecordsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private bool? DescValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private bool? ExcludeInterimValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - private double? RecordScoreValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SortValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlGetRecordsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - public MlGetRecordsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlGetRecordsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - public MlGetRecordsRequestDescriptor RecordScore(double? recordScore) - { - RecordScoreValue = recordScore; - return Self; - } - - public MlGetRecordsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) - { - SortValue = sort; - return Self; - } - - public MlGetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetRecordsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (RecordScoreValue.HasValue) - { - writer.WritePropertyName("record_score"); - writer.WriteNumberValue(RecordScoreValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlGetRecordsRequestDescriptor : RequestDescriptorBase - { - internal MlGetRecordsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetRecordsRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlGetRecordsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetRecords; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlGetRecordsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetRecordsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetRecordsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private bool? DescValue { get; set; } - - private DateTimeOffset? EndValue { get; set; } - - private bool? ExcludeInterimValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Page? PageValue { get; set; } - - private PageDescriptor PageDescriptor { get; set; } - - private Action PageDescriptorAction { get; set; } - - private double? RecordScoreValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SortValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - public MlGetRecordsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - public MlGetRecordsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlGetRecordsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Ml.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public MlGetRecordsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - public MlGetRecordsRequestDescriptor RecordScore(double? recordScore) - { - RecordScoreValue = recordScore; - return Self; - } - - public MlGetRecordsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Field? sort) - { - SortValue = sort; - return Self; - } - - public MlGetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public MlGetRecordsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (RecordScoreValue.HasValue) - { - writer.WritePropertyName("record_score"); - writer.WriteNumberValue(RecordScoreValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsResponse.g.cs deleted file mode 100644 index 3d9ed39a442..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetRecordsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetRecordsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("records")] - public IReadOnlyCollection Records { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsRequest.g.cs deleted file mode 100644 index bf07bbe909d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlGetTrainedModelsStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class MlGetTrainedModelsStatsRequest : PlainRequestBase - { - public MlGetTrainedModelsStatsRequest() - { - } - - public MlGetTrainedModelsStatsRequest(Elastic.Clients.Elasticsearch.Ids? model_id) : base(r => r.Optional("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetTrainedModelsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class MlGetTrainedModelsStatsRequestDescriptor : RequestDescriptorBase - { - internal MlGetTrainedModelsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlGetTrainedModelsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetTrainedModelsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public MlGetTrainedModelsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlGetTrainedModelsStatsRequestDescriptor From(int? from) => Qs("from", from); - public MlGetTrainedModelsStatsRequestDescriptor Size(int? size) => Qs("size", size); - public MlGetTrainedModelsStatsRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Ids? model_id) - { - RouteValues.Optional("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsResponse.g.cs deleted file mode 100644 index fd21b66ae6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlGetTrainedModelsStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlGetTrainedModelsStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("trained_model_stats")] - public IReadOnlyCollection TrainedModelStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoRequest.g.cs deleted file mode 100644 index 9d0013d8ea1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlInfoRequestParameters : RequestParameters - { - } - - public sealed partial class MlInfoRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class MlInfoRequestDescriptor : RequestDescriptorBase - { - internal MlInfoRequestDescriptor(Action configure) => configure.Invoke(this); - public MlInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoResponse.g.cs deleted file mode 100644 index 9a17e5ba6b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlInfoResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlInfoResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("defaults")] - public Elastic.Clients.Elasticsearch.Ml.Defaults Defaults { get; init; } - - [JsonInclude] - [JsonPropertyName("limits")] - public Elastic.Clients.Elasticsearch.Ml.Limits Limits { get; init; } - - [JsonInclude] - [JsonPropertyName("native_code")] - public Elastic.Clients.Elasticsearch.Ml.NativeCode NativeCode { get; init; } - - [JsonInclude] - [JsonPropertyName("upgrade_mode")] - public bool UpgradeMode { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobRequest.g.cs deleted file mode 100644 index 68d0ce33ea6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlOpenJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlOpenJobRequest : PlainRequestBase - { - public MlOpenJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningOpenJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - } - - public sealed partial class MlOpenJobRequestDescriptor : RequestDescriptorBase - { - internal MlOpenJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlOpenJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlOpenJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningOpenJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlOpenJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - public MlOpenJobRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobResponse.g.cs deleted file mode 100644 index 85fcbc2e75f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlOpenJobResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlOpenJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("opened")] - public bool Opened { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsRequest.g.cs deleted file mode 100644 index a73eba7c319..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsRequest.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPostCalendarEventsRequestParameters : RequestParameters - { - } - - public sealed partial class MlPostCalendarEventsRequest : PlainRequestBase - { - public MlPostCalendarEventsRequest(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPostCalendarEvents; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("events")] - public IEnumerable Events { get; set; } - } - - public sealed partial class MlPostCalendarEventsRequestDescriptor : RequestDescriptorBase - { - internal MlPostCalendarEventsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPostCalendarEventsRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal MlPostCalendarEventsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPostCalendarEvents; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlPostCalendarEventsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - private IEnumerable EventsValue { get; set; } - - private CalendarEventDescriptor EventsDescriptor { get; set; } - - private Action EventsDescriptorAction { get; set; } - - private Action[] EventsDescriptorActions { get; set; } - - public MlPostCalendarEventsRequestDescriptor Events(IEnumerable events) - { - EventsDescriptor = null; - EventsDescriptorAction = null; - EventsDescriptorActions = null; - EventsValue = events; - return Self; - } - - public MlPostCalendarEventsRequestDescriptor Events(CalendarEventDescriptor descriptor) - { - EventsValue = null; - EventsDescriptorAction = null; - EventsDescriptorActions = null; - EventsDescriptor = descriptor; - return Self; - } - - public MlPostCalendarEventsRequestDescriptor Events(Action configure) - { - EventsValue = null; - EventsDescriptor = null; - EventsDescriptorActions = null; - EventsDescriptorAction = configure; - return Self; - } - - public MlPostCalendarEventsRequestDescriptor Events(params Action[] configure) - { - EventsValue = null; - EventsDescriptor = null; - EventsDescriptorAction = null; - EventsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EventsDescriptor is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, EventsDescriptor, options); - writer.WriteEndArray(); - } - else if (EventsDescriptorAction is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new CalendarEventDescriptor(EventsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (EventsDescriptorActions is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - foreach (var action in EventsDescriptorActions) - { - JsonSerializer.Serialize(writer, new CalendarEventDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("events"); - JsonSerializer.Serialize(writer, EventsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsResponse.g.cs deleted file mode 100644 index 0f5de06a1c7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPostCalendarEventsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPostCalendarEventsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("events")] - public IReadOnlyCollection Events { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index f62ad76fcf0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,187 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPreviewDataFrameAnalyticsRequestParameters : RequestParameters - { - } - - public sealed partial class MlPreviewDataFrameAnalyticsRequest : PlainRequestBase - { - public MlPreviewDataFrameAnalyticsRequest() - { - } - - public MlPreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Ml.DataframePreviewConfig? Config { get; set; } - } - - public sealed partial class MlPreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlPreviewDataFrameAnalyticsRequestParameters> - { - internal MlPreviewDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPreviewDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlPreviewDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframePreviewConfig? ConfigValue { get; set; } - - private DataframePreviewConfigDescriptor ConfigDescriptor { get; set; } - - private Action> ConfigDescriptorAction { get; set; } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Ml.DataframePreviewConfig? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(DataframePreviewConfigDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(Action> configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new DataframePreviewConfigDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlPreviewDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPreviewDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlPreviewDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframePreviewConfig? ConfigValue { get; set; } - - private DataframePreviewConfigDescriptor ConfigDescriptor { get; set; } - - private Action ConfigDescriptorAction { get; set; } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Ml.DataframePreviewConfig? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(DataframePreviewConfigDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDataFrameAnalyticsRequestDescriptor Config(Action configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new DataframePreviewConfigDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 44d4f91c8f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPreviewDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("feature_values")] - public IReadOnlyCollection> FeatureValues { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedRequest.g.cs deleted file mode 100644 index 0a5d357ad68..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedRequest.g.cs +++ /dev/null @@ -1,283 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPreviewDatafeedRequestParameters : RequestParameters - { - } - - public sealed partial class MlPreviewDatafeedRequest : PlainRequestBase - { - public MlPreviewDatafeedRequest() - { - } - - public MlPreviewDatafeedRequest(Elastic.Clients.Elasticsearch.Id? datafeed_id) : base(r => r.Optional("datafeed_id", datafeed_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("job_config")] - public Elastic.Clients.Elasticsearch.Ml.JobConfig? JobConfig { get; set; } - } - - public sealed partial class MlPreviewDatafeedRequestDescriptor : RequestDescriptorBase, MlPreviewDatafeedRequestParameters> - { - internal MlPreviewDatafeedRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPreviewDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlPreviewDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id? datafeed_id) - { - RouteValues.Optional("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action> DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.JobConfig? JobConfigValue { get; set; } - - private JobConfigDescriptor JobConfigDescriptor { get; set; } - - private Action> JobConfigDescriptorAction { get; set; } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(Action> configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(Elastic.Clients.Elasticsearch.Ml.JobConfig? jobConfig) - { - JobConfigDescriptor = null; - JobConfigDescriptorAction = null; - JobConfigValue = jobConfig; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(JobConfigDescriptor descriptor) - { - JobConfigValue = null; - JobConfigDescriptorAction = null; - JobConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(Action> configure) - { - JobConfigValue = null; - JobConfigDescriptor = null; - JobConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (JobConfigDescriptor is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, JobConfigDescriptor, options); - } - else if (JobConfigDescriptorAction is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, new JobConfigDescriptor(JobConfigDescriptorAction), options); - } - else if (JobConfigValue is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, JobConfigValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPreviewDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlPreviewDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPreviewDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlPreviewDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id? datafeed_id) - { - RouteValues.Optional("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.JobConfig? JobConfigValue { get; set; } - - private JobConfigDescriptor JobConfigDescriptor { get; set; } - - private Action JobConfigDescriptorAction { get; set; } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor DatafeedConfig(Action configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(Elastic.Clients.Elasticsearch.Ml.JobConfig? jobConfig) - { - JobConfigDescriptor = null; - JobConfigDescriptorAction = null; - JobConfigValue = jobConfig; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(JobConfigDescriptor descriptor) - { - JobConfigValue = null; - JobConfigDescriptorAction = null; - JobConfigDescriptor = descriptor; - return Self; - } - - public MlPreviewDatafeedRequestDescriptor JobConfig(Action configure) - { - JobConfigValue = null; - JobConfigDescriptor = null; - JobConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (JobConfigDescriptor is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, JobConfigDescriptor, options); - } - else if (JobConfigDescriptorAction is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, new JobConfigDescriptor(JobConfigDescriptorAction), options); - } - else if (JobConfigValue is not null) - { - writer.WritePropertyName("job_config"); - JsonSerializer.Serialize(writer, JobConfigValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedResponse.g.cs deleted file mode 100644 index 7d70f9c42d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPreviewDatafeedResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPreviewDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("data")] - public IReadOnlyCollection Data { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobRequest.g.cs deleted file mode 100644 index 62b41aab8e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobRequest.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutCalendarJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlPutCalendarJobRequest : PlainRequestBase - { - public MlPutCalendarJobRequest(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("calendar_id", calendar_id).Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutCalendarJob; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - } - - public sealed partial class MlPutCalendarJobRequestDescriptor : RequestDescriptorBase - { - internal MlPutCalendarJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutCalendarJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("calendar_id", calendar_id).Required("job_id", job_id)) - { - } - - internal MlPutCalendarJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutCalendarJob; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public MlPutCalendarJobRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - public MlPutCalendarJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobResponse.g.cs deleted file mode 100644 index 8caf5376a7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarJobResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutCalendarJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("job_ids")] - public Elastic.Clients.Elasticsearch.Ids JobIds { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarRequest.g.cs deleted file mode 100644 index 70881b823b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarRequest.g.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutCalendarRequestParameters : RequestParameters - { - } - - public sealed partial class MlPutCalendarRequest : PlainRequestBase - { - public MlPutCalendarRequest(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutCalendar; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("job_ids")] - public IEnumerable? JobIds { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - } - - public sealed partial class MlPutCalendarRequestDescriptor : RequestDescriptorBase - { - internal MlPutCalendarRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutCalendarRequestDescriptor(Elastic.Clients.Elasticsearch.Id calendar_id) : base(r => r.Required("calendar_id", calendar_id)) - { - } - - internal MlPutCalendarRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutCalendar; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutCalendarRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id calendar_id) - { - RouteValues.Required("calendar_id", calendar_id); - return Self; - } - - private string? DescriptionValue { get; set; } - - private IEnumerable? JobIdsValue { get; set; } - - public MlPutCalendarRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutCalendarRequestDescriptor JobIds(IEnumerable? jobIds) - { - JobIdsValue = jobIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdsValue is not null) - { - writer.WritePropertyName("job_ids"); - JsonSerializer.Serialize(writer, JobIdsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarResponse.g.cs deleted file mode 100644 index 86d545731e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutCalendarResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutCalendarResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("job_ids")] - public Elastic.Clients.Elasticsearch.Ids JobIds { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index c5addf4bd85..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,671 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutDataFrameAnalyticsRequestParameters : RequestParameters - { - } - - public sealed partial class MlPutDataFrameAnalyticsRequest : PlainRequestBase - { - public MlPutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer Analysis { get; set; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination Dest { get; set; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource Source { get; set; } - - [JsonInclude] - [JsonPropertyName("headers")] - public Dictionary>? Headers { get; set; } - - [JsonInclude] - [JsonPropertyName("version")] - public string? Version { get; set; } - } - - public sealed partial class MlPutDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlPutDataFrameAnalyticsRequestParameters> - { - internal MlPutDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPutDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlPutDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action> AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination DestValue { get; set; } - - private DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - - private Action> DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private bool? AllowLazyStartValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Dictionary>? HeadersValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - private string? VersionValue { get; set; } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(Action> configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Headers(Func>, FluentDictionary>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>()); - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPutDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlPutDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlPutDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination DestValue { get; set; } - - private DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private bool? AllowLazyStartValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Dictionary>? HeadersValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - private string? VersionValue { get; set; } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Headers(Func>, FluentDictionary>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>()); - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - public MlPutDataFrameAnalyticsRequestDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 0abf94d8361..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool AllowLazyStart { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer Analysis { get; init; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination Dest { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int MaxNumThreads { get; init; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource Source { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedRequest.g.cs deleted file mode 100644 index 32cfa74d2f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedRequest.g.cs +++ /dev/null @@ -1,1027 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutDatafeedRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - } - - internal sealed class MlPutDatafeedRequestConverter : JsonConverter - { - public override MlPutDatafeedRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new MlPutDatafeedRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "indexes") - { - variant.Indices = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - variant.JobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "headers") - { - variant.Headers = JsonSerializer.Deserialize>?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, MlPutDatafeedRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.JobId is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, value.JobId, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - if (value.Headers is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, value.Headers, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(MlPutDatafeedRequestConverter))] - public sealed partial class MlPutDatafeedRequest : PlainRequestBase - { - public MlPutDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlPutDatafeedRequest() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonInclude] - [JsonPropertyName("aggregations")] - public Dictionary? Aggregations { get; set; } - - [JsonInclude] - [JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } - - [JsonInclude] - [JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Duration? QueryDelay { get; set; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; set; } - - [JsonInclude] - [JsonPropertyName("script_fields")] - public Dictionary? ScriptFields { get; set; } - - [JsonInclude] - [JsonPropertyName("scroll_size")] - public int? ScrollSize { get; set; } - - [JsonInclude] - [JsonPropertyName("headers")] - public Dictionary>? Headers { get; set; } - } - - public sealed partial class MlPutDatafeedRequestDescriptor : RequestDescriptorBase, MlPutDatafeedRequestParameters> - { - internal MlPutDatafeedRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPutDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlPutDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MlPutDatafeedRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MlPutDatafeedRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MlPutDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MlPutDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Dictionary>? HeadersValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public MlPutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlPutDatafeedRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public MlPutDatafeedRequestDescriptor Headers(Func>, FluentDictionary>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>()); - return Self; - } - - public MlPutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public MlPutDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public MlPutDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public MlPutDatafeedRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPutDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlPutDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlPutDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MlPutDatafeedRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MlPutDatafeedRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MlPutDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MlPutDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Dictionary>? HeadersValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public MlPutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlPutDatafeedRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public MlPutDatafeedRequestDescriptor Headers(Func>, FluentDictionary>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>()); - return Self; - } - - public MlPutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public MlPutDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public MlPutDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public MlPutDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public MlPutDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public MlPutDatafeedRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlPutDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedResponse.g.cs deleted file mode 100644 index db617896ac3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutDatafeedResponse.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("aggregations")] - public Dictionary Aggregations { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.DatafeedAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig ChunkingConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeed_id")] - public string DatafeedId { get; init; } - - [JsonInclude] - [JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration Frequency { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("max_empty_searches")] - public int MaxEmptySearches { get; init; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; init; } - - [JsonInclude] - [JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Duration QueryDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; init; } - - [JsonInclude] - [JsonPropertyName("script_fields")] - public Dictionary? ScriptFields { get; init; } - - [JsonInclude] - [JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterRequest.g.cs deleted file mode 100644 index a36d8074fbf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterRequest.g.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutFilterRequestParameters : RequestParameters - { - } - - public sealed partial class MlPutFilterRequest : PlainRequestBase - { - public MlPutFilterRequest(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutFilter; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("items")] - public IEnumerable? Items { get; set; } - } - - public sealed partial class MlPutFilterRequestDescriptor : RequestDescriptorBase - { - internal MlPutFilterRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal MlPutFilterRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutFilter; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Id filter_id) - { - RouteValues.Required("filter_id", filter_id); - return Self; - } - - private string? DescriptionValue { get; set; } - - private IEnumerable? ItemsValue { get; set; } - - public MlPutFilterRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutFilterRequestDescriptor Items(IEnumerable? items) - { - ItemsValue = items; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ItemsValue is not null) - { - writer.WritePropertyName("items"); - JsonSerializer.Serialize(writer, ItemsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterResponse.g.cs deleted file mode 100644 index b361c3304f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutFilterResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutFilterResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; init; } - - [JsonInclude] - [JsonPropertyName("filter_id")] - public string FilterId { get; init; } - - [JsonInclude] - [JsonPropertyName("items")] - public IReadOnlyCollection Items { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobRequest.g.cs deleted file mode 100644 index 313fe054838..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobRequest.g.cs +++ /dev/null @@ -1,895 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlPutJobRequest : PlainRequestBase - { - public MlPutJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutJob; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool? AllowLazyOpen { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimits { get; set; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; set; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public object? CustomSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; set; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescription { get; set; } - - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IEnumerable? Groups { get; set; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; set; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public Elastic.Clients.Elasticsearch.IndexName? ResultsIndexName { get; set; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; set; } - } - - public sealed partial class MlPutJobRequestDescriptor : RequestDescriptorBase, MlPutJobRequestParameters> - { - internal MlPutJobRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlPutJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutJob; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action> AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action> DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action> DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action> ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private object? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public MlPutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(Action> configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(Action> configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(Action> configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public MlPutJobRequestDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - public MlPutJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public MlPutJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutJobRequestDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public MlPutJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlPutJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public MlPutJobRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - public MlPutJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPutJobRequestDescriptor : RequestDescriptorBase - { - internal MlPutJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlPutJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutJob; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private object? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public MlPutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor DataDescription(Action configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor DatafeedConfig(Action configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor ModelPlotConfig(Action configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlPutJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlPutJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public MlPutJobRequestDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - public MlPutJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public MlPutJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutJobRequestDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public MlPutJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlPutJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public MlPutJobRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - public MlPutJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobResponse.g.cs deleted file mode 100644 index 981914d5477..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutJobResponse.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfigRead AnalysisConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits AnalysisLimits { get; init; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public DateTimeOffset CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public object? CustomSettings { get; init; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long DailyModelSnapshotRetentionAfterDays { get; init; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.Datafeed? DatafeedConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("job_type")] - public string JobType { get; init; } - - [JsonInclude] - [JsonPropertyName("job_version")] - public string JobVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasRequest.g.cs deleted file mode 100644 index 1dcc1e67248..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasRequest.g.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutTrainedModelAliasRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Reassign { get => Q("reassign"); set => Q("reassign", value); } - } - - public sealed partial class MlPutTrainedModelAliasRequest : PlainRequestBase - { - public MlPutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) : base(r => r.Required("model_id", model_id).Required("model_alias", model_alias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModelAlias; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Reassign { get => Q("reassign"); set => Q("reassign", value); } - } - - public sealed partial class MlPutTrainedModelAliasRequestDescriptor : RequestDescriptorBase - { - internal MlPutTrainedModelAliasRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutTrainedModelAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) : base(r => r.Required("model_id", model_id).Required("model_alias", model_alias)) - { - } - - internal MlPutTrainedModelAliasRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModelAlias; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public MlPutTrainedModelAliasRequestDescriptor Reassign(bool? reassign = true) => Qs("reassign", reassign); - public MlPutTrainedModelAliasRequestDescriptor ModelAlias(Elastic.Clients.Elasticsearch.Name model_alias) - { - RouteValues.Required("model_alias", model_alias); - return Self; - } - - public MlPutTrainedModelAliasRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasResponse.g.cs deleted file mode 100644 index 32ab517a1b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelAliasResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutTrainedModelAliasResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelRequest.g.cs deleted file mode 100644 index 0e95e72fad8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelRequest.g.cs +++ /dev/null @@ -1,570 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlPutTrainedModelRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DeferDefinitionDecompression { get => Q("defer_definition_decompression"); set => Q("defer_definition_decompression", value); } - } - - public sealed partial class MlPutTrainedModelRequest : PlainRequestBase - { - public MlPutTrainedModelRequest(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModel; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? DeferDefinitionDecompression { get => Q("defer_definition_decompression"); set => Q("defer_definition_decompression", value); } - - [JsonInclude] - [JsonPropertyName("compressed_definition")] - public string? CompressedDefinition { get; set; } - - [JsonInclude] - [JsonPropertyName("definition")] - public Elastic.Clients.Elasticsearch.Ml.Definition? Definition { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer InferenceConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("input")] - public Elastic.Clients.Elasticsearch.Ml.Input Input { get; set; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - [JsonInclude] - [JsonPropertyName("model_type")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelType? ModelType { get; set; } - - [JsonInclude] - [JsonPropertyName("model_size_bytes")] - public long? ModelSizeBytes { get; set; } - - [JsonInclude] - [JsonPropertyName("tags")] - public IEnumerable? Tags { get; set; } - } - - public sealed partial class MlPutTrainedModelRequestDescriptor : RequestDescriptorBase, MlPutTrainedModelRequestParameters> - { - internal MlPutTrainedModelRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlPutTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlPutTrainedModelRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModel; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutTrainedModelRequestDescriptor DeferDefinitionDecompression(bool? deferDefinitionDecompression = true) => Qs("defer_definition_decompression", deferDefinitionDecompression); - public MlPutTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.Definition? DefinitionValue { get; set; } - - private DefinitionDescriptor DefinitionDescriptor { get; set; } - - private Action> DefinitionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer InferenceConfigValue { get; set; } - - private InferenceConfigCreateContainerDescriptor InferenceConfigDescriptor { get; set; } - - private Action> InferenceConfigDescriptorAction { get; set; } - - private string? CompressedDefinitionValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Input InputValue { get; set; } - - private InputDescriptor InputDescriptor { get; set; } - - private Action InputDescriptorAction { get; set; } - - private object? MetadataValue { get; set; } - - private long? ModelSizeBytesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModelType? ModelTypeValue { get; set; } - - private IEnumerable? TagsValue { get; set; } - - public MlPutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Ml.Definition? definition) - { - DefinitionDescriptor = null; - DefinitionDescriptorAction = null; - DefinitionValue = definition; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Definition(DefinitionDescriptor descriptor) - { - DefinitionValue = null; - DefinitionDescriptorAction = null; - DefinitionDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Definition(Action> configure) - { - DefinitionValue = null; - DefinitionDescriptor = null; - DefinitionDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(InferenceConfigCreateContainerDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor CompressedDefinition(string? compressedDefinition) - { - CompressedDefinitionValue = compressedDefinition; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Ml.Input input) - { - InputDescriptor = null; - InputDescriptorAction = null; - InputValue = input; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(InputDescriptor descriptor) - { - InputValue = null; - InputDescriptorAction = null; - InputDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(Action configure) - { - InputValue = null; - InputDescriptor = null; - InputDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Metadata(object? metadata) - { - MetadataValue = metadata; - return Self; - } - - public MlPutTrainedModelRequestDescriptor ModelSizeBytes(long? modelSizeBytes) - { - ModelSizeBytesValue = modelSizeBytes; - return Self; - } - - public MlPutTrainedModelRequestDescriptor ModelType(Elastic.Clients.Elasticsearch.Ml.TrainedModelType? modelType) - { - ModelTypeValue = modelType; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Tags(IEnumerable? tags) - { - TagsValue = tags; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DefinitionDescriptor is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionDescriptor, options); - } - else if (DefinitionDescriptorAction is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, new DefinitionDescriptor(DefinitionDescriptorAction), options); - } - else if (DefinitionValue is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionValue, options); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new InferenceConfigCreateContainerDescriptor(InferenceConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (!string.IsNullOrEmpty(CompressedDefinitionValue)) - { - writer.WritePropertyName("compressed_definition"); - writer.WriteStringValue(CompressedDefinitionValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (InputDescriptor is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputDescriptor, options); - } - else if (InputDescriptorAction is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, new InputDescriptor(InputDescriptorAction), options); - } - else - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputValue, options); - } - - if (ModelSizeBytesValue.HasValue) - { - writer.WritePropertyName("model_size_bytes"); - writer.WriteNumberValue(ModelSizeBytesValue.Value); - } - - if (ModelTypeValue is not null) - { - writer.WritePropertyName("model_type"); - JsonSerializer.Serialize(writer, ModelTypeValue, options); - } - - if (TagsValue is not null) - { - writer.WritePropertyName("tags"); - JsonSerializer.Serialize(writer, TagsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlPutTrainedModelRequestDescriptor : RequestDescriptorBase - { - internal MlPutTrainedModelRequestDescriptor(Action configure) => configure.Invoke(this); - public MlPutTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Id model_id) : base(r => r.Required("model_id", model_id)) - { - } - - internal MlPutTrainedModelRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutTrainedModel; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public MlPutTrainedModelRequestDescriptor DeferDefinitionDecompression(bool? deferDefinitionDecompression = true) => Qs("defer_definition_decompression", deferDefinitionDecompression); - public MlPutTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id model_id) - { - RouteValues.Required("model_id", model_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Ml.Definition? DefinitionValue { get; set; } - - private DefinitionDescriptor DefinitionDescriptor { get; set; } - - private Action DefinitionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer InferenceConfigValue { get; set; } - - private InferenceConfigCreateContainerDescriptor InferenceConfigDescriptor { get; set; } - - private Action InferenceConfigDescriptorAction { get; set; } - - private string? CompressedDefinitionValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Input InputValue { get; set; } - - private InputDescriptor InputDescriptor { get; set; } - - private Action InputDescriptorAction { get; set; } - - private object? MetadataValue { get; set; } - - private long? ModelSizeBytesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModelType? ModelTypeValue { get; set; } - - private IEnumerable? TagsValue { get; set; } - - public MlPutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Ml.Definition? definition) - { - DefinitionDescriptor = null; - DefinitionDescriptorAction = null; - DefinitionValue = definition; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Definition(DefinitionDescriptor descriptor) - { - DefinitionValue = null; - DefinitionDescriptorAction = null; - DefinitionDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Definition(Action configure) - { - DefinitionValue = null; - DefinitionDescriptor = null; - DefinitionDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(InferenceConfigCreateContainerDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor CompressedDefinition(string? compressedDefinition) - { - CompressedDefinitionValue = compressedDefinition; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Ml.Input input) - { - InputDescriptor = null; - InputDescriptorAction = null; - InputValue = input; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(InputDescriptor descriptor) - { - InputValue = null; - InputDescriptorAction = null; - InputDescriptor = descriptor; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Input(Action configure) - { - InputValue = null; - InputDescriptor = null; - InputDescriptorAction = configure; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Metadata(object? metadata) - { - MetadataValue = metadata; - return Self; - } - - public MlPutTrainedModelRequestDescriptor ModelSizeBytes(long? modelSizeBytes) - { - ModelSizeBytesValue = modelSizeBytes; - return Self; - } - - public MlPutTrainedModelRequestDescriptor ModelType(Elastic.Clients.Elasticsearch.Ml.TrainedModelType? modelType) - { - ModelTypeValue = modelType; - return Self; - } - - public MlPutTrainedModelRequestDescriptor Tags(IEnumerable? tags) - { - TagsValue = tags; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DefinitionDescriptor is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionDescriptor, options); - } - else if (DefinitionDescriptorAction is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, new DefinitionDescriptor(DefinitionDescriptorAction), options); - } - else if (DefinitionValue is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionValue, options); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new InferenceConfigCreateContainerDescriptor(InferenceConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (!string.IsNullOrEmpty(CompressedDefinitionValue)) - { - writer.WritePropertyName("compressed_definition"); - writer.WriteStringValue(CompressedDefinitionValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (InputDescriptor is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputDescriptor, options); - } - else if (InputDescriptorAction is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, new InputDescriptor(InputDescriptorAction), options); - } - else - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputValue, options); - } - - if (ModelSizeBytesValue.HasValue) - { - writer.WritePropertyName("model_size_bytes"); - writer.WriteNumberValue(ModelSizeBytesValue.Value); - } - - if (ModelTypeValue is not null) - { - writer.WritePropertyName("model_type"); - JsonSerializer.Serialize(writer, ModelTypeValue, options); - } - - if (TagsValue is not null) - { - writer.WritePropertyName("tags"); - JsonSerializer.Serialize(writer, TagsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelResponse.g.cs deleted file mode 100644 index f174a229082..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlPutTrainedModelResponse.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlPutTrainedModelResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("compressed_definition")] - public string? CompressedDefinition { get; init; } - - [JsonInclude] - [JsonPropertyName("created_by")] - public string? CreatedBy { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public DateTimeOffset? CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("default_field_map")] - public Dictionary? DefaultFieldMap { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("estimated_heap_memory_usage_bytes")] - public int? EstimatedHeapMemoryUsageBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("estimated_operations")] - public int? EstimatedOperations { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Ml.InferenceConfigCreateContainer InferenceConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("input")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelConfigInput Input { get; init; } - - [JsonInclude] - [JsonPropertyName("license_level")] - public string? LicenseLevel { get; init; } - - [JsonInclude] - [JsonPropertyName("location")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelLocation? Location { get; init; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelConfigMetadata? Metadata { get; init; } - - [JsonInclude] - [JsonPropertyName("model_id")] - public string ModelId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize? ModelSizeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("model_type")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelType? ModelType { get; init; } - - [JsonInclude] - [JsonPropertyName("tags")] - public IReadOnlyCollection Tags { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string? Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobRequest.g.cs deleted file mode 100644 index 5f2a5000943..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlResetJobRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class MlResetJobRequest : PlainRequestBase - { - public MlResetJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningResetJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class MlResetJobRequestDescriptor : RequestDescriptorBase - { - internal MlResetJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlResetJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlResetJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningResetJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlResetJobRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public MlResetJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobResponse.g.cs deleted file mode 100644 index 99c35aefe5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlResetJobResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlResetJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotRequest.g.cs deleted file mode 100644 index 5c1df19923f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlRevertModelSnapshotRequestParameters : RequestParameters - { - } - - public sealed partial class MlRevertModelSnapshotRequest : PlainRequestBase - { - public MlRevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningRevertModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("delete_intervening_results")] - public bool? DeleteInterveningResults { get; set; } - } - - public sealed partial class MlRevertModelSnapshotRequestDescriptor : RequestDescriptorBase - { - internal MlRevertModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public MlRevertModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal MlRevertModelSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningRevertModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlRevertModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlRevertModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id snapshot_id) - { - RouteValues.Required("snapshot_id", snapshot_id); - return Self; - } - - private bool? DeleteInterveningResultsValue { get; set; } - - public MlRevertModelSnapshotRequestDescriptor DeleteInterveningResults(bool? deleteInterveningResults = true) - { - DeleteInterveningResultsValue = deleteInterveningResults; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeleteInterveningResultsValue.HasValue) - { - writer.WritePropertyName("delete_intervening_results"); - writer.WriteBooleanValue(DeleteInterveningResultsValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotResponse.g.cs deleted file mode 100644 index 04ed4edc90f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlRevertModelSnapshotResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlRevertModelSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("model")] - public Elastic.Clients.Elasticsearch.Ml.ModelSnapshot Model { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeRequest.g.cs deleted file mode 100644 index 79327ce9686..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlSetUpgradeModeRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Enabled { get => Q("enabled"); set => Q("enabled", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlSetUpgradeModeRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningSetUpgradeMode; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Enabled { get => Q("enabled"); set => Q("enabled", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlSetUpgradeModeRequestDescriptor : RequestDescriptorBase - { - internal MlSetUpgradeModeRequestDescriptor(Action configure) => configure.Invoke(this); - public MlSetUpgradeModeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningSetUpgradeMode; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlSetUpgradeModeRequestDescriptor Enabled(bool? enabled = true) => Qs("enabled", enabled); - public MlSetUpgradeModeRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeResponse.g.cs deleted file mode 100644 index 97bb76267a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlSetUpgradeModeResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlSetUpgradeModeResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 38e46663ef2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlStartDataFrameAnalyticsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlStartDataFrameAnalyticsRequest : PlainRequestBase - { - public MlStartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlStartDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlStartDataFrameAnalyticsRequestParameters> - { - internal MlStartDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlStartDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlStartDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStartDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlStartDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class MlStartDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlStartDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStartDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlStartDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStartDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlStartDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 3a9bd16159f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlStartDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedRequest.g.cs deleted file mode 100644 index 682be341fbe..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlStartDatafeedRequestParameters : RequestParameters - { - } - - public sealed partial class MlStartDatafeedRequest : PlainRequestBase - { - public MlStartDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - } - - public sealed partial class MlStartDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlStartDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStartDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlStartDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlStartDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private DateTimeOffset? EndValue { get; set; } - - private DateTimeOffset? StartValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - public MlStartDatafeedRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public MlStartDatafeedRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - public MlStartDatafeedRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedResponse.g.cs deleted file mode 100644 index 53ddbe78737..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStartDatafeedResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlStartDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.NodeIds Node { get; init; } - - [JsonInclude] - [JsonPropertyName("started")] - public bool Started { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index f47b4380e18..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlStopDataFrameAnalyticsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlStopDataFrameAnalyticsRequest : PlainRequestBase - { - public MlStopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlStopDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlStopDataFrameAnalyticsRequestParameters> - { - internal MlStopDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlStopDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlStopDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStopDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlStopDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlStopDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlStopDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class MlStopDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlStopDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStopDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlStopDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlStopDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public MlStopDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public MlStopDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlStopDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 85d550b5f06..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlStopDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("stopped")] - public bool Stopped { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedRequest.g.cs deleted file mode 100644 index 86874ac6081..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlStopDatafeedRequestParameters : RequestParameters - { - } - - public sealed partial class MlStopDatafeedRequest : PlainRequestBase - { - public MlStopDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - [JsonInclude] - [JsonPropertyName("force")] - public bool? Force { get; set; } - - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - } - - public sealed partial class MlStopDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlStopDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlStopDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlStopDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlStopDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - - private bool? ForceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - public MlStopDatafeedRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - public MlStopDatafeedRequestDescriptor Force(bool? force = true) - { - ForceValue = force; - return Self; - } - - public MlStopDatafeedRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (ForceValue.HasValue) - { - writer.WritePropertyName("force"); - writer.WriteBooleanValue(ForceValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedResponse.g.cs deleted file mode 100644 index 120225faa68..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlStopDatafeedResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlStopDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("stopped")] - public bool Stopped { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 1f11e103533..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,223 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpdateDataFrameAnalyticsRequestParameters : RequestParameters - { - } - - public sealed partial class MlUpdateDataFrameAnalyticsRequest : PlainRequestBase - { - public MlUpdateDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - } - - public sealed partial class MlUpdateDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase, MlUpdateDataFrameAnalyticsRequestParameters> - { - internal MlUpdateDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlUpdateDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlUpdateDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - - private string? DescriptionValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public MlUpdateDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlUpdateDataFrameAnalyticsRequestDescriptor : RequestDescriptorBase - { - internal MlUpdateDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpdateDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal MlUpdateDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDataFrameAnalytics; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - - private string? DescriptionValue { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public MlUpdateDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public MlUpdateDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 88ad22e2ef0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpdateDataFrameAnalyticsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool AllowLazyStart { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer Analysis { get; init; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination Dest { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int MaxNumThreads { get; init; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource Source { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedRequest.g.cs deleted file mode 100644 index 78d83e28a81..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedRequest.g.cs +++ /dev/null @@ -1,939 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpdateDatafeedRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - } - - internal sealed class MlUpdateDatafeedRequestConverter : JsonConverter - { - public override MlUpdateDatafeedRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new MlUpdateDatafeedRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "indexes") - { - variant.Indices = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, MlUpdateDatafeedRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(MlUpdateDatafeedRequestConverter))] - public sealed partial class MlUpdateDatafeedRequest : PlainRequestBase - { - public MlUpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlUpdateDatafeedRequest() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonInclude] - [JsonPropertyName("aggregations")] - public Dictionary? Aggregations { get; set; } - - [JsonInclude] - [JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public IEnumerable? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - - [JsonInclude] - [JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Duration? QueryDelay { get; set; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; set; } - - [JsonInclude] - [JsonPropertyName("script_fields")] - public Dictionary? ScriptFields { get; set; } - - [JsonInclude] - [JsonPropertyName("scroll_size")] - public int? ScrollSize { get; set; } - } - - public sealed partial class MlUpdateDatafeedRequestDescriptor : RequestDescriptorBase, MlUpdateDatafeedRequestParameters> - { - internal MlUpdateDatafeedRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlUpdateDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlUpdateDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MlUpdateDatafeedRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MlUpdateDatafeedRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MlUpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MlUpdateDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private IEnumerable? IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public MlUpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Indices(IEnumerable? indices) - { - IndicesValue = indices; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlUpdateDatafeedRequestDescriptor : RequestDescriptorBase - { - internal MlUpdateDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpdateDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Id datafeed_id) : base(r => r.Required("datafeed_id", datafeed_id)) - { - } - - internal MlUpdateDatafeedRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDatafeed; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MlUpdateDatafeedRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MlUpdateDatafeedRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MlUpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MlUpdateDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - RouteValues.Required("datafeed_id", datafeed_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private IEnumerable? IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public MlUpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor Indices(IEnumerable? indices) - { - IndicesValue = indices; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public MlUpdateDatafeedRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedResponse.g.cs deleted file mode 100644 index fd296acc1fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateDatafeedResponse.g.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpdateDatafeedResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("aggregations")] - public Dictionary Aggregations { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.DatafeedAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig ChunkingConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeed_id")] - public string DatafeedId { get; init; } - - [JsonInclude] - [JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration Frequency { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("max_empty_searches")] - public int MaxEmptySearches { get; init; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; init; } - - [JsonInclude] - [JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Duration QueryDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; init; } - - [JsonInclude] - [JsonPropertyName("script_fields")] - public Dictionary? ScriptFields { get; init; } - - [JsonInclude] - [JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterRequest.g.cs deleted file mode 100644 index 5005438a51f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpdateFilterRequestParameters : RequestParameters - { - } - - public sealed partial class MlUpdateFilterRequest : PlainRequestBase - { - public MlUpdateFilterRequest(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateFilter; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("add_items")] - public IEnumerable? AddItems { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("remove_items")] - public IEnumerable? RemoveItems { get; set; } - } - - public sealed partial class MlUpdateFilterRequestDescriptor : RequestDescriptorBase - { - internal MlUpdateFilterRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpdateFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Id filter_id) : base(r => r.Required("filter_id", filter_id)) - { - } - - internal MlUpdateFilterRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateFilter; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Id filter_id) - { - RouteValues.Required("filter_id", filter_id); - return Self; - } - - private IEnumerable? AddItemsValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? RemoveItemsValue { get; set; } - - public MlUpdateFilterRequestDescriptor AddItems(IEnumerable? addItems) - { - AddItemsValue = addItems; - return Self; - } - - public MlUpdateFilterRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateFilterRequestDescriptor RemoveItems(IEnumerable? removeItems) - { - RemoveItemsValue = removeItems; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AddItemsValue is not null) - { - writer.WritePropertyName("add_items"); - JsonSerializer.Serialize(writer, AddItemsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (RemoveItemsValue is not null) - { - writer.WritePropertyName("remove_items"); - JsonSerializer.Serialize(writer, RemoveItemsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterResponse.g.cs deleted file mode 100644 index 86e56ebd7f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateFilterResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpdateFilterResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; init; } - - [JsonInclude] - [JsonPropertyName("filter_id")] - public string FilterId { get; init; } - - [JsonInclude] - [JsonPropertyName("items")] - public IReadOnlyCollection Items { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobRequest.g.cs deleted file mode 100644 index 43a76213bc1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobRequest.g.cs +++ /dev/null @@ -1,857 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpdateJobRequestParameters : RequestParameters - { - } - - public sealed partial class MlUpdateJobRequest : PlainRequestBase - { - public MlUpdateJobRequest(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool? AllowLazyOpen { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisMemoryLimit? AnalysisLimits { get; set; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; set; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public Dictionary? CustomSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("categorization_filters")] - public IEnumerable? CategorizationFilters { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; set; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; set; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; set; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IEnumerable? Groups { get; set; } - - [JsonInclude] - [JsonPropertyName("detectors")] - public IEnumerable? Detectors { get; set; } - - [JsonInclude] - [JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorization { get; set; } - } - - public sealed partial class MlUpdateJobRequestDescriptor : RequestDescriptorBase, MlUpdateJobRequestParameters> - { - internal MlUpdateJobRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlUpdateJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlUpdateJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private IEnumerable? DetectorsValue { get; set; } - - private DetectorDescriptor DetectorsDescriptor { get; set; } - - private Action> DetectorsDescriptorAction { get; set; } - - private Action>[] DetectorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action> ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisMemoryLimit? AnalysisLimitsValue { get; set; } - - private AnalysisMemoryLimitDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private IEnumerable? CategorizationFiltersValue { get; set; } - - private Dictionary? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - - private PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - - private Action PerPartitionCategorizationDescriptorAction { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public MlUpdateJobRequestDescriptor Detectors(IEnumerable? detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(Action> configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(params Action>[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(Action> configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisMemoryLimit? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(AnalysisMemoryLimitDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public MlUpdateJobRequestDescriptor CategorizationFilters(IEnumerable? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - public MlUpdateJobRequestDescriptor CustomSettings(Func, FluentDictionary> selector) - { - CustomSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public MlUpdateJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateJobRequestDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public MlUpdateJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DetectorsValue is not null) - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisMemoryLimitDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlUpdateJobRequestDescriptor : RequestDescriptorBase - { - internal MlUpdateJobRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpdateJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id) : base(r => r.Required("job_id", job_id)) - { - } - - internal MlUpdateJobRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateJob; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - private IEnumerable? DetectorsValue { get; set; } - - private DetectorDescriptor DetectorsDescriptor { get; set; } - - private Action DetectorsDescriptorAction { get; set; } - - private Action[] DetectorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisMemoryLimit? AnalysisLimitsValue { get; set; } - - private AnalysisMemoryLimitDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private IEnumerable? CategorizationFiltersValue { get; set; } - - private Dictionary? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - - private PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - - private Action PerPartitionCategorizationDescriptorAction { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public MlUpdateJobRequestDescriptor Detectors(IEnumerable? detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(Action configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor Detectors(params Action[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelPlotConfig(Action configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisMemoryLimit? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(AnalysisMemoryLimitDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public MlUpdateJobRequestDescriptor CategorizationFilters(IEnumerable? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - public MlUpdateJobRequestDescriptor CustomSettings(Func, FluentDictionary> selector) - { - CustomSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public MlUpdateJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public MlUpdateJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateJobRequestDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public MlUpdateJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public MlUpdateJobRequestDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - public MlUpdateJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public MlUpdateJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DetectorsValue is not null) - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisMemoryLimitDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobResponse.g.cs deleted file mode 100644 index f51f071cc4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateJobResponse.g.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpdateJobResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfigRead AnalysisConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits AnalysisLimits { get; init; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public Dictionary? CustomSettings { get; init; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long DailyModelSnapshotRetentionAfterDays { get; init; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.Datafeed? DatafeedConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("finished_time")] - public long? FinishedTime { get; init; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("job_type")] - public string JobType { get; init; } - - [JsonInclude] - [JsonPropertyName("job_version")] - public string JobVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotRequest.g.cs deleted file mode 100644 index 71e3a923786..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotRequest.g.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpdateModelSnapshotRequestParameters : RequestParameters - { - } - - public sealed partial class MlUpdateModelSnapshotRequest : PlainRequestBase - { - public MlUpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("retain")] - public bool? Retain { get; set; } - } - - public sealed partial class MlUpdateModelSnapshotRequestDescriptor : RequestDescriptorBase - { - internal MlUpdateModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpdateModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal MlUpdateModelSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateModelSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public MlUpdateModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlUpdateModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id snapshot_id) - { - RouteValues.Required("snapshot_id", snapshot_id); - return Self; - } - - private string? DescriptionValue { get; set; } - - private bool? RetainValue { get; set; } - - public MlUpdateModelSnapshotRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlUpdateModelSnapshotRequestDescriptor Retain(bool? retain = true) - { - RetainValue = retain; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (RetainValue.HasValue) - { - writer.WritePropertyName("retain"); - writer.WriteBooleanValue(RetainValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotResponse.g.cs deleted file mode 100644 index 22967d7764b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpdateModelSnapshotResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpdateModelSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - [JsonInclude] - [JsonPropertyName("model")] - public Elastic.Clients.Elasticsearch.Ml.ModelSnapshot Model { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotRequest.g.cs deleted file mode 100644 index c0ef0cb1520..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotRequest.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlUpgradeJobSnapshotRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlUpgradeJobSnapshotRequest : PlainRequestBase - { - public MlUpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpgradeJobSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class MlUpgradeJobSnapshotRequestDescriptor : RequestDescriptorBase - { - internal MlUpgradeJobSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public MlUpgradeJobSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) : base(r => r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)) - { - } - - internal MlUpgradeJobSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpgradeJobSnapshot; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public MlUpgradeJobSnapshotRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public MlUpgradeJobSnapshotRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public MlUpgradeJobSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id job_id) - { - RouteValues.Required("job_id", job_id); - return Self; - } - - public MlUpgradeJobSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Id snapshot_id) - { - RouteValues.Required("snapshot_id", snapshot_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotResponse.g.cs deleted file mode 100644 index e8b56e5897b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlUpgradeJobSnapshotResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlUpgradeJobSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("completed")] - public bool Completed { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorRequest.g.cs deleted file mode 100644 index 262169e2800..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlValidateDetectorRequestParameters : RequestParameters - { - } - - public sealed partial class MlValidateDetectorRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningValidateDetector; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class MlValidateDetectorRequestDescriptor : RequestDescriptorBase - { - internal MlValidateDetectorRequestDescriptor(Action configure) => configure.Invoke(this); - public MlValidateDetectorRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningValidateDetector; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorResponse.g.cs deleted file mode 100644 index e99aa673db7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateDetectorResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlValidateDetectorResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateRequest.g.cs deleted file mode 100644 index a4aef9e8f0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateRequest.g.cs +++ /dev/null @@ -1,615 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed class MlValidateRequestParameters : RequestParameters - { - } - - public sealed partial class MlValidateRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningValidate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimits { get; set; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription? DataDescription { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("model_plot")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlot { get; set; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_id")] - public Elastic.Clients.Elasticsearch.Id? ModelSnapshotId { get; set; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public Elastic.Clients.Elasticsearch.IndexName? ResultsIndexName { get; set; } - } - - public sealed partial class MlValidateRequestDescriptor : RequestDescriptorBase, MlValidateRequestParameters> - { - internal MlValidateRequestDescriptor(Action> configure) => configure.Invoke(this); - public MlValidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningValidate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action> AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription? DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action> DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotDescriptor { get; set; } - - private Action> ModelPlotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? ModelSnapshotIdValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - public MlValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlValidateRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription? dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(Action> configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlot) - { - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = null; - ModelPlotValue = modelPlot; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(ModelPlotConfigDescriptor descriptor) - { - ModelPlotValue = null; - ModelPlotDescriptorAction = null; - ModelPlotDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(Action> configure) - { - ModelPlotValue = null; - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlValidateRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public MlValidateRequestDescriptor ModelSnapshotId(Elastic.Clients.Elasticsearch.Id? modelSnapshotId) - { - ModelSnapshotIdValue = modelSnapshotId; - return Self; - } - - public MlValidateRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlValidateRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else if (DataDescriptionValue is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (ModelPlotDescriptor is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotDescriptor, options); - } - else if (ModelPlotDescriptorAction is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotDescriptorAction), options); - } - else if (ModelPlotValue is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelSnapshotIdValue is not null) - { - writer.WritePropertyName("model_snapshot_id"); - JsonSerializer.Serialize(writer, ModelSnapshotIdValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class MlValidateRequestDescriptor : RequestDescriptorBase - { - internal MlValidateRequestDescriptor(Action configure) => configure.Invoke(this); - public MlValidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningValidate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription? DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotDescriptor { get; set; } - - private Action ModelPlotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? ModelSnapshotIdValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - public MlValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public MlValidateRequestDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription? dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor DataDescription(Action configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlot) - { - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = null; - ModelPlotValue = modelPlot; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(ModelPlotConfigDescriptor descriptor) - { - ModelPlotValue = null; - ModelPlotDescriptorAction = null; - ModelPlotDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor ModelPlot(Action configure) - { - ModelPlotValue = null; - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public MlValidateRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public MlValidateRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public MlValidateRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public MlValidateRequestDescriptor ModelSnapshotId(Elastic.Clients.Elasticsearch.Id? modelSnapshotId) - { - ModelSnapshotIdValue = modelSnapshotId; - return Self; - } - - public MlValidateRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public MlValidateRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else if (DataDescriptionValue is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (ModelPlotDescriptor is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotDescriptor, options); - } - else if (ModelPlotDescriptorAction is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotDescriptorAction), options); - } - else if (ModelPlotValue is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelSnapshotIdValue is not null) - { - writer.WritePropertyName("model_snapshot_id"); - JsonSerializer.Serialize(writer, ModelSnapshotIdValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateResponse.g.cs deleted file mode 100644 index ac4ac023a80..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ml/MlValidateResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MlValidateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsRequest.g.cs deleted file mode 100644 index 85e2825adf6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsRequest.g.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed class NodesHotThreadsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? IgnoreIdleThreads { get => Q("ignore_idle_threads"); set => Q("ignore_idle_threads", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - - [JsonIgnore] - public long? Snapshots { get => Q("snapshots"); set => Q("snapshots", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public long? Threads { get => Q("threads"); set => Q("threads", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ThreadType? Type { get => Q("type"); set => Q("type", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ThreadType? Sort { get => Q("sort"); set => Q("sort", value); } - } - - public sealed partial class NodesHotThreadsRequest : PlainRequestBase - { - public NodesHotThreadsRequest() - { - } - - public NodesHotThreadsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesHotThreads; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? IgnoreIdleThreads { get => Q("ignore_idle_threads"); set => Q("ignore_idle_threads", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - - [JsonIgnore] - public long? Snapshots { get => Q("snapshots"); set => Q("snapshots", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public long? Threads { get => Q("threads"); set => Q("threads", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ThreadType? Type { get => Q("type"); set => Q("type", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.ThreadType? Sort { get => Q("sort"); set => Q("sort", value); } - } - - public sealed partial class NodesHotThreadsRequestDescriptor : RequestDescriptorBase - { - internal NodesHotThreadsRequestDescriptor(Action configure) => configure.Invoke(this); - public NodesHotThreadsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesHotThreads; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public NodesHotThreadsRequestDescriptor IgnoreIdleThreads(bool? ignoreIdleThreads = true) => Qs("ignore_idle_threads", ignoreIdleThreads); - public NodesHotThreadsRequestDescriptor Interval(Elastic.Clients.Elasticsearch.Duration? interval) => Qs("interval", interval); - public NodesHotThreadsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesHotThreadsRequestDescriptor Snapshots(long? snapshots) => Qs("snapshots", snapshots); - public NodesHotThreadsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.ThreadType? sort) => Qs("sort", sort); - public NodesHotThreadsRequestDescriptor Threads(long? threads) => Qs("threads", threads); - public NodesHotThreadsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesHotThreadsRequestDescriptor Type(Elastic.Clients.Elasticsearch.ThreadType? type) => Qs("type", type); - public NodesHotThreadsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsResponse.g.cs deleted file mode 100644 index e0c1ac2679d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesHotThreadsResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodesHotThreadsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("hot_threads")] - public IReadOnlyCollection HotThreads { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs deleted file mode 100644 index 1e6320a4cda..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed class NodesInfoRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class NodesInfoRequest : PlainRequestBase - { - public NodesInfoRequest() - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class NodesInfoRequestDescriptor : RequestDescriptorBase - { - internal NodesInfoRequestDescriptor(Action configure) => configure.Invoke(this); - public NodesInfoRequestDescriptor() - { - } - - public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public NodesInfoRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public NodesInfoRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesInfoRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesInfoRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - public NodesInfoRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs deleted file mode 100644 index 44fa2d6f50a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodesInfoResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsRequest.g.cs deleted file mode 100644 index 300e2f43bfd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed class NodesReloadSecureSettingsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class NodesReloadSecureSettingsRequest : PlainRequestBase - { - public NodesReloadSecureSettingsRequest() - { - } - - public NodesReloadSecureSettingsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesReloadSecureSettings; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("secure_settings_password")] - public string? SecureSettingsPassword { get; set; } - } - - public sealed partial class NodesReloadSecureSettingsRequestDescriptor : RequestDescriptorBase - { - internal NodesReloadSecureSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - public NodesReloadSecureSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesReloadSecureSettings; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public NodesReloadSecureSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesReloadSecureSettingsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - private string? SecureSettingsPasswordValue { get; set; } - - public NodesReloadSecureSettingsRequestDescriptor SecureSettingsPassword(string? secureSettingsPassword) - { - SecureSettingsPasswordValue = secureSettingsPassword; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SecureSettingsPasswordValue is not null) - { - writer.WritePropertyName("secure_settings_password"); - JsonSerializer.Serialize(writer, SecureSettingsPasswordValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsResponse.g.cs deleted file mode 100644 index 09845ecb165..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesReloadSecureSettingsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodesReloadSecureSettingsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs deleted file mode 100644 index c88abb60a0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed class NodesStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public bool? Groups { get => Q("groups"); set => Q("groups", value); } - - [JsonIgnore] - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public IEnumerable? Types { get => Q?>("types"); set => Q("types", value); } - - [JsonIgnore] - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - } - - public sealed partial class NodesStatsRequest : PlainRequestBase - { - public NodesStatsRequest() - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - [JsonIgnore] - public bool? Groups { get => Q("groups"); set => Q("groups", value); } - - [JsonIgnore] - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public IEnumerable? Types { get => Q?>("types"); set => Q("types", value); } - - [JsonIgnore] - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - } - - public sealed partial class NodesStatsRequestDescriptor : RequestDescriptorBase, NodesStatsRequestParameters> - { - internal NodesStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - public NodesStatsRequestDescriptor() - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public NodesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Fields? completionFields) => Qs("completion_fields", completionFields); - public NodesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public NodesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public NodesStatsRequestDescriptor Groups(bool? groups = true) => Qs("groups", groups); - public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesStatsRequestDescriptor Types(IEnumerable? types) => Qs("types", types); - public NodesStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - public NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Metrics? index_metric) - { - RouteValues.Optional("index_metric", index_metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class NodesStatsRequestDescriptor : RequestDescriptorBase - { - internal NodesStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public NodesStatsRequestDescriptor() - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? index_metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric).Optional("index_metric", index_metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public NodesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Fields? completionFields) => Qs("completion_fields", completionFields); - public NodesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public NodesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public NodesStatsRequestDescriptor Groups(bool? groups = true) => Qs("groups", groups); - public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesStatsRequestDescriptor Types(IEnumerable? types) => Qs("types", types); - public NodesStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - public NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Metrics? index_metric) - { - RouteValues.Optional("index_metric", index_metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs deleted file mode 100644 index fc7948b63b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodesStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string? ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs deleted file mode 100644 index 9f777d7aa33..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed class NodesUsageRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class NodesUsageRequest : PlainRequestBase - { - public NodesUsageRequest() - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesUsage; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class NodesUsageRequestDescriptor : RequestDescriptorBase - { - internal NodesUsageRequestDescriptor(Action configure) => configure.Invoke(this); - public NodesUsageRequestDescriptor() - { - } - - public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.NodeIds? node_id, Elastic.Clients.Elasticsearch.Metrics? metric) : base(r => r.Optional("node_id", node_id).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.NodesUsage; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public NodesUsageRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public NodesUsageRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) - { - RouteValues.Optional("node_id", node_id); - return Self; - } - - public NodesUsageRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs deleted file mode 100644 index eeeff06885d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodesUsageResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountRequest.g.cs deleted file mode 100644 index 80fe1ce5d59..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountRequest.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public sealed class SearchableSnapshotsMountRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonIgnore] - public string? Storage { get => Q("storage"); set => Q("storage", value); } - } - - public sealed partial class SearchableSnapshotsMountRequest : PlainRequestBase - { - public SearchableSnapshotsMountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsMount; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonIgnore] - public string? Storage { get => Q("storage"); set => Q("storage", value); } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("renamed_index")] - public Elastic.Clients.Elasticsearch.IndexName? RenamedIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("index_settings")] - public Dictionary? IndexSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_index_settings")] - public IEnumerable? IgnoreIndexSettings { get; set; } - } - - public sealed partial class SearchableSnapshotsMountRequestDescriptor : RequestDescriptorBase - { - internal SearchableSnapshotsMountRequestDescriptor(Action configure) => configure.Invoke(this); - public SearchableSnapshotsMountRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal SearchableSnapshotsMountRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsMount; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public SearchableSnapshotsMountRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SearchableSnapshotsMountRequestDescriptor Storage(string? storage) => Qs("storage", storage); - public SearchableSnapshotsMountRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public SearchableSnapshotsMountRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public SearchableSnapshotsMountRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private IEnumerable? IgnoreIndexSettingsValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private Dictionary? IndexSettingsValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? RenamedIndexValue { get; set; } - - public SearchableSnapshotsMountRequestDescriptor IgnoreIndexSettings(IEnumerable? ignoreIndexSettings) - { - IgnoreIndexSettingsValue = ignoreIndexSettings; - return Self; - } - - public SearchableSnapshotsMountRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public SearchableSnapshotsMountRequestDescriptor IndexSettings(Func, FluentDictionary> selector) - { - IndexSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SearchableSnapshotsMountRequestDescriptor RenamedIndex(Elastic.Clients.Elasticsearch.IndexName? renamedIndex) - { - RenamedIndexValue = renamedIndex; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IgnoreIndexSettingsValue is not null) - { - writer.WritePropertyName("ignore_index_settings"); - JsonSerializer.Serialize(writer, IgnoreIndexSettingsValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (IndexSettingsValue is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsValue, options); - } - - if (RenamedIndexValue is not null) - { - writer.WritePropertyName("renamed_index"); - JsonSerializer.Serialize(writer, RenamedIndexValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountResponse.g.cs deleted file mode 100644 index b063fdce8d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsMountResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public sealed partial class SearchableSnapshotsMountResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.SearchableSnapshots.MountedSnapshot Snapshot { get; init; } - } -} \ 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 deleted file mode 100644 index 20b9b367300..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public sealed class SearchableSnapshotsStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.SearchableSnapshots.StatsLevel? Level { get => Q("level"); set => Q("level", value); } - } - - public sealed partial class SearchableSnapshotsStatsRequest : PlainRequestBase - { - public SearchableSnapshotsStatsRequest() - { - } - - public SearchableSnapshotsStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.SearchableSnapshots.StatsLevel? Level { get => Q("level"); set => Q("level", value); } - } - - public sealed partial class SearchableSnapshotsStatsRequestDescriptor : RequestDescriptorBase, SearchableSnapshotsStatsRequestParameters> - { - internal SearchableSnapshotsStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - public SearchableSnapshotsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SearchableSnapshotsStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.SearchableSnapshots.StatsLevel? level) => Qs("level", level); - public SearchableSnapshotsStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class SearchableSnapshotsStatsRequestDescriptor : RequestDescriptorBase - { - internal SearchableSnapshotsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public SearchableSnapshotsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SearchableSnapshotsStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SearchableSnapshotsStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.SearchableSnapshots.StatsLevel? level) => Qs("level", level); - public SearchableSnapshotsStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs deleted file mode 100644 index ef9c353a74f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public sealed partial class SearchableSnapshotsStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("stats")] - public object Stats { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public object Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateRequest.g.cs deleted file mode 100644 index 60b8eb4c319..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityAuthenticateRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityAuthenticateRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityAuthenticate; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityAuthenticateRequestDescriptor : RequestDescriptorBase - { - internal SecurityAuthenticateRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityAuthenticateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityAuthenticate; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateResponse.g.cs deleted file mode 100644 index 492f8c4e671..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityAuthenticateResponse.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityAuthenticateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Security.ApiKey? ApiKey { get; init; } - - [JsonInclude] - [JsonPropertyName("authentication_realm")] - public Elastic.Clients.Elasticsearch.Security.RealmInfo AuthenticationRealm { get; init; } - - [JsonInclude] - [JsonPropertyName("authentication_type")] - public string AuthenticationType { get; init; } - - [JsonInclude] - [JsonPropertyName("email")] - public string? Email { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("full_name")] - public string? FullName { get; init; } - - [JsonInclude] - [JsonPropertyName("lookup_realm")] - public Elastic.Clients.Elasticsearch.Security.RealmInfo LookupRealm { get; init; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary Metadata { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Security.Token? Token { get; init; } - - [JsonInclude] - [JsonPropertyName("username")] - public string Username { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordRequest.g.cs deleted file mode 100644 index a828b5dfb0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordRequest.g.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityChangePasswordRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityChangePasswordRequest : PlainRequestBase - { - public SecurityChangePasswordRequest() - { - } - - public SecurityChangePasswordRequest(Elastic.Clients.Elasticsearch.Username? username) : base(r => r.Optional("username", username)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityChangePassword; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - [JsonInclude] - [JsonPropertyName("password")] - public string? Password { get; set; } - - [JsonInclude] - [JsonPropertyName("password_hash")] - public string? PasswordHash { get; set; } - } - - public sealed partial class SecurityChangePasswordRequestDescriptor : RequestDescriptorBase - { - internal SecurityChangePasswordRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityChangePasswordRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityChangePassword; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SecurityChangePasswordRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityChangePasswordRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) - { - RouteValues.Optional("username", username); - return Self; - } - - private string? PasswordValue { get; set; } - - private string? PasswordHashValue { get; set; } - - public SecurityChangePasswordRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public SecurityChangePasswordRequestDescriptor PasswordHash(string? passwordHash) - { - PasswordHashValue = passwordHash; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PasswordValue is not null) - { - writer.WritePropertyName("password"); - JsonSerializer.Serialize(writer, PasswordValue, options); - } - - if (!string.IsNullOrEmpty(PasswordHashValue)) - { - writer.WritePropertyName("password_hash"); - writer.WriteStringValue(PasswordHashValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordResponse.g.cs deleted file mode 100644 index b55754dd1d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityChangePasswordResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityChangePasswordResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheRequest.g.cs deleted file mode 100644 index e4caef1406e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityClearApiKeyCacheRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityClearApiKeyCacheRequest : PlainRequestBase - { - public SecurityClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Ids ids) : base(r => r.Required("ids", ids)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearApiKeyCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityClearApiKeyCacheRequestDescriptor : RequestDescriptorBase - { - internal SecurityClearApiKeyCacheRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityClearApiKeyCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Ids ids) : base(r => r.Required("ids", ids)) - { - } - - internal SecurityClearApiKeyCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearApiKeyCache; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SecurityClearApiKeyCacheRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Ids ids) - { - RouteValues.Required("ids", ids); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheResponse.g.cs deleted file mode 100644 index 85d121ceeb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearApiKeyCacheResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityClearApiKeyCacheResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesRequest.g.cs deleted file mode 100644 index 44269a9e4f6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityClearCachedPrivilegesRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityClearCachedPrivilegesRequest : PlainRequestBase - { - public SecurityClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Name application) : base(r => r.Required("application", application)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityClearCachedPrivilegesRequestDescriptor : RequestDescriptorBase - { - internal SecurityClearCachedPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityClearCachedPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Name application) : base(r => r.Required("application", application)) - { - } - - internal SecurityClearCachedPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SecurityClearCachedPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Name application) - { - RouteValues.Required("application", application); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesResponse.g.cs deleted file mode 100644 index 48db8995513..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedPrivilegesResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityClearCachedPrivilegesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsRequest.g.cs deleted file mode 100644 index 97d57142fb0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityClearCachedRealmsRequestParameters : RequestParameters - { - [JsonIgnore] - public IEnumerable? Usernames { get => Q?>("usernames"); set => Q("usernames", value); } - } - - public sealed partial class SecurityClearCachedRealmsRequest : PlainRequestBase - { - public SecurityClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Names realms) : base(r => r.Required("realms", realms)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedRealms; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public IEnumerable? Usernames { get => Q?>("usernames"); set => Q("usernames", value); } - } - - public sealed partial class SecurityClearCachedRealmsRequestDescriptor : RequestDescriptorBase - { - internal SecurityClearCachedRealmsRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityClearCachedRealmsRequestDescriptor(Elastic.Clients.Elasticsearch.Names realms) : base(r => r.Required("realms", realms)) - { - } - - internal SecurityClearCachedRealmsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedRealms; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SecurityClearCachedRealmsRequestDescriptor Usernames(IEnumerable? usernames) => Qs("usernames", usernames); - public SecurityClearCachedRealmsRequestDescriptor Realms(Elastic.Clients.Elasticsearch.Names realms) - { - RouteValues.Required("realms", realms); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsResponse.g.cs deleted file mode 100644 index 779fac8f25c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRealmsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityClearCachedRealmsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesRequest.g.cs deleted file mode 100644 index bc80af3b4d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityClearCachedRolesRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityClearCachedRolesRequest : PlainRequestBase - { - public SecurityClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedRoles; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityClearCachedRolesRequestDescriptor : RequestDescriptorBase - { - internal SecurityClearCachedRolesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityClearCachedRolesRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) - { - } - - internal SecurityClearCachedRolesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityClearCachedRoles; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SecurityClearCachedRolesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesResponse.g.cs deleted file mode 100644 index 7f2c2e8e997..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityClearCachedRolesResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityClearCachedRolesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.NodeStatistics NodeStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesRequest.g.cs deleted file mode 100644 index 56597211079..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesRequest.g.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityDeletePrivilegesRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeletePrivilegesRequest : PlainRequestBase - { - public SecurityDeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("application", application).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeletePrivileges; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeletePrivilegesRequestDescriptor : RequestDescriptorBase - { - internal SecurityDeletePrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityDeletePrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("application", application).Required("name", name)) - { - } - - internal SecurityDeletePrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeletePrivileges; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SecurityDeletePrivilegesRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityDeletePrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Name application) - { - RouteValues.Required("application", application); - return Self; - } - - public SecurityDeletePrivilegesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesResponse.g.cs deleted file mode 100644 index 7cda3cb79ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeletePrivilegesResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityDeletePrivilegesResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingRequest.g.cs deleted file mode 100644 index b919765345f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityDeleteRoleMappingRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteRoleMappingRequest : PlainRequestBase - { - public SecurityDeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteRoleMapping; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteRoleMappingRequestDescriptor : RequestDescriptorBase - { - internal SecurityDeleteRoleMappingRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityDeleteRoleMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal SecurityDeleteRoleMappingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteRoleMapping; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SecurityDeleteRoleMappingRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityDeleteRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingResponse.g.cs deleted file mode 100644 index 493a2ed26eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleMappingResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityDeleteRoleMappingResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("found")] - public bool Found { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleRequest.g.cs deleted file mode 100644 index df8d1795f2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityDeleteRoleRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteRoleRequest : PlainRequestBase - { - public SecurityDeleteRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteRole; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteRoleRequestDescriptor : RequestDescriptorBase - { - internal SecurityDeleteRoleRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityDeleteRoleRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) - { - } - - internal SecurityDeleteRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteRole; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SecurityDeleteRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityDeleteRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleResponse.g.cs deleted file mode 100644 index 29987e5abad..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteRoleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityDeleteRoleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("found")] - public bool Found { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserRequest.g.cs deleted file mode 100644 index 622223312be..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityDeleteUserRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteUserRequest : PlainRequestBase - { - public SecurityDeleteUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteUser; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDeleteUserRequestDescriptor : RequestDescriptorBase - { - internal SecurityDeleteUserRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityDeleteUserRequestDescriptor(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal SecurityDeleteUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDeleteUser; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SecurityDeleteUserRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityDeleteUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username username) - { - RouteValues.Required("username", username); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserResponse.g.cs deleted file mode 100644 index bc6c2d20fae..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDeleteUserResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityDeleteUserResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("found")] - public bool Found { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserRequest.g.cs deleted file mode 100644 index f4fb21c66d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityDisableUserRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDisableUserRequest : PlainRequestBase - { - public SecurityDisableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDisableUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityDisableUserRequestDescriptor : RequestDescriptorBase - { - internal SecurityDisableUserRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityDisableUserRequestDescriptor(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal SecurityDisableUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityDisableUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public SecurityDisableUserRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityDisableUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username username) - { - RouteValues.Required("username", username); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserResponse.g.cs deleted file mode 100644 index 82755c9fe78..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityDisableUserResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityDisableUserResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserRequest.g.cs deleted file mode 100644 index 2914dfbdf7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityEnableUserRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityEnableUserRequest : PlainRequestBase - { - public SecurityEnableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityEnableUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityEnableUserRequestDescriptor : RequestDescriptorBase - { - internal SecurityEnableUserRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityEnableUserRequestDescriptor(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal SecurityEnableUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityEnableUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public SecurityEnableUserRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityEnableUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username username) - { - RouteValues.Required("username", username); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserResponse.g.cs deleted file mode 100644 index eebe38e0040..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityEnableUserResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityEnableUserResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyRequest.g.cs deleted file mode 100644 index 048b20575f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetApiKeyRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? Id { get => Q("id"); set => Q("id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? Name { get => Q("name"); set => Q("name", value); } - - [JsonIgnore] - public bool? Owner { get => Q("owner"); set => Q("owner", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? RealmName { get => Q("realm_name"); set => Q("realm_name", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Username? Username { get => Q("username"); set => Q("username", value); } - } - - public sealed partial class SecurityGetApiKeyRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetApiKey; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Id? Id { get => Q("id"); set => Q("id", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? Name { get => Q("name"); set => Q("name", value); } - - [JsonIgnore] - public bool? Owner { get => Q("owner"); set => Q("owner", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? RealmName { get => Q("realm_name"); set => Q("realm_name", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Username? Username { get => Q("username"); set => Q("username", value); } - } - - public sealed partial class SecurityGetApiKeyRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetApiKey; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SecurityGetApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) => Qs("id", id); - public SecurityGetApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) => Qs("name", name); - public SecurityGetApiKeyRequestDescriptor Owner(bool? owner = true) => Qs("owner", owner); - public SecurityGetApiKeyRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Name? realmName) => Qs("realm_name", realmName); - public SecurityGetApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) => Qs("username", username); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyResponse.g.cs deleted file mode 100644 index d55b4670c77..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetApiKeyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetApiKeyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("api_keys")] - public IReadOnlyCollection ApiKeys { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesRequest.g.cs deleted file mode 100644 index fdc9b125218..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetBuiltinPrivilegesRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGetBuiltinPrivilegesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetBuiltinPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityGetBuiltinPrivilegesRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetBuiltinPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetBuiltinPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetBuiltinPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesResponse.g.cs deleted file mode 100644 index 0bef8da0452..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetBuiltinPrivilegesResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetBuiltinPrivilegesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public IReadOnlyCollection Index { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesRequest.g.cs deleted file mode 100644 index e857c8827e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesRequest.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetPrivilegesRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGetPrivilegesRequest : PlainRequestBase - { - public SecurityGetPrivilegesRequest() - { - } - - public SecurityGetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application) : base(r => r.Optional("application", application)) - { - } - - public SecurityGetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("application", application).Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityGetPrivilegesRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetPrivilegesRequestDescriptor() - { - } - - public SecurityGetPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("application", application).Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SecurityGetPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Name? application) - { - RouteValues.Optional("application", application); - return Self; - } - - public SecurityGetPrivilegesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesResponse.g.cs deleted file mode 100644 index d00f0388a0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetPrivilegesResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetPrivilegesResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingRequest.g.cs deleted file mode 100644 index 41fdb5f0ff6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetRoleMappingRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGetRoleMappingRequest : PlainRequestBase - { - public SecurityGetRoleMappingRequest() - { - } - - public SecurityGetRoleMappingRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetRoleMapping; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityGetRoleMappingRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetRoleMappingRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetRoleMappingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetRoleMapping; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SecurityGetRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingResponse.g.cs deleted file mode 100644 index 6af82ed39aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleMappingResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetRoleMappingResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleRequest.g.cs deleted file mode 100644 index f209d42ebb6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetRoleRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGetRoleRequest : PlainRequestBase - { - public SecurityGetRoleRequest() - { - } - - public SecurityGetRoleRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetRole; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecurityGetRoleRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetRoleRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetRole; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SecurityGetRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleResponse.g.cs deleted file mode 100644 index c3e09ab5264..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetRoleResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetRoleResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenRequest.g.cs deleted file mode 100644 index 0c202ef8e05..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenRequest.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGetTokenRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGetTokenRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetToken; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("grant_type")] - public Elastic.Clients.Elasticsearch.Security.AccessTokenGrantType? GrantType { get; set; } - - [JsonInclude] - [JsonPropertyName("scope")] - public string? Scope { get; set; } - - [JsonInclude] - [JsonPropertyName("password")] - public string? Password { get; set; } - - [JsonInclude] - [JsonPropertyName("kerberos_ticket")] - public string? KerberosTicket { get; set; } - - [JsonInclude] - [JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - - [JsonInclude] - [JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Username? Username { get; set; } - } - - public sealed partial class SecurityGetTokenRequestDescriptor : RequestDescriptorBase - { - internal SecurityGetTokenRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGetTokenRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGetToken; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Security.AccessTokenGrantType? GrantTypeValue { get; set; } - - private string? KerberosTicketValue { get; set; } - - private string? PasswordValue { get; set; } - - private string? RefreshTokenValue { get; set; } - - private string? ScopeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } - - public SecurityGetTokenRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Security.AccessTokenGrantType? grantType) - { - GrantTypeValue = grantType; - return Self; - } - - public SecurityGetTokenRequestDescriptor KerberosTicket(string? kerberosTicket) - { - KerberosTicketValue = kerberosTicket; - return Self; - } - - public SecurityGetTokenRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public SecurityGetTokenRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - public SecurityGetTokenRequestDescriptor Scope(string? scope) - { - ScopeValue = scope; - return Self; - } - - public SecurityGetTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GrantTypeValue is not null) - { - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - } - - if (!string.IsNullOrEmpty(KerberosTicketValue)) - { - writer.WritePropertyName("kerberos_ticket"); - writer.WriteStringValue(KerberosTicketValue); - } - - if (PasswordValue is not null) - { - writer.WritePropertyName("password"); - JsonSerializer.Serialize(writer, PasswordValue, options); - } - - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - if (!string.IsNullOrEmpty(ScopeValue)) - { - writer.WritePropertyName("scope"); - writer.WriteStringValue(ScopeValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenResponse.g.cs deleted file mode 100644 index 1e8aac95edd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGetTokenResponse.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGetTokenResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("access_token")] - public string AccessToken { get; init; } - - [JsonInclude] - [JsonPropertyName("authentication")] - public Elastic.Clients.Elasticsearch.Security.AuthenticatedUser Authentication { get; init; } - - [JsonInclude] - [JsonPropertyName("expires_in")] - public long ExpiresIn { get; init; } - - [JsonInclude] - [JsonPropertyName("kerberos_authentication_response_token")] - public string? KerberosAuthenticationResponseToken { get; init; } - - [JsonInclude] - [JsonPropertyName("refresh_token")] - public string? RefreshToken { get; init; } - - [JsonInclude] - [JsonPropertyName("scope")] - public string? Scope { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyRequest.g.cs deleted file mode 100644 index 5ad81946d18..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyRequest.g.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityGrantApiKeyRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityGrantApiKeyRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGrantApiKey; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Security.GrantApiKey ApiKey { get; set; } - - [JsonInclude] - [JsonPropertyName("grant_type")] - public Elastic.Clients.Elasticsearch.Security.ApiKeyGrantType GrantType { get; set; } - - [JsonInclude] - [JsonPropertyName("access_token")] - public string? AccessToken { get; set; } - - [JsonInclude] - [JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Username? Username { get; set; } - - [JsonInclude] - [JsonPropertyName("password")] - public string? Password { get; set; } - } - - public sealed partial class SecurityGrantApiKeyRequestDescriptor : RequestDescriptorBase - { - internal SecurityGrantApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityGrantApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityGrantApiKey; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string? AccessTokenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Security.GrantApiKey ApiKeyValue { get; set; } - - private GrantApiKeyDescriptor ApiKeyDescriptor { get; set; } - - private Action ApiKeyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Security.ApiKeyGrantType GrantTypeValue { get; set; } - - private string? PasswordValue { get; set; } - - private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } - - public SecurityGrantApiKeyRequestDescriptor AccessToken(string? accessToken) - { - AccessTokenValue = accessToken; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Security.GrantApiKey apiKey) - { - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = null; - ApiKeyValue = apiKey; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor ApiKey(GrantApiKeyDescriptor descriptor) - { - ApiKeyValue = null; - ApiKeyDescriptorAction = null; - ApiKeyDescriptor = descriptor; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor ApiKey(Action configure) - { - ApiKeyValue = null; - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = configure; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Security.ApiKeyGrantType grantType) - { - GrantTypeValue = grantType; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public SecurityGrantApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AccessTokenValue)) - { - writer.WritePropertyName("access_token"); - writer.WriteStringValue(AccessTokenValue); - } - - if (ApiKeyDescriptor is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyDescriptor, options); - } - else if (ApiKeyDescriptorAction is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, new GrantApiKeyDescriptor(ApiKeyDescriptorAction), options); - } - else - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyValue, options); - } - - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - if (PasswordValue is not null) - { - writer.WritePropertyName("password"); - JsonSerializer.Serialize(writer, PasswordValue, options); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyResponse.g.cs deleted file mode 100644 index 2afbc3cf66b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityGrantApiKeyResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityGrantApiKeyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("api_key")] - public string ApiKey { get; init; } - - [JsonInclude] - [JsonPropertyName("expiration")] - public long? Expiration { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesRequest.g.cs deleted file mode 100644 index f8a7cd462b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesRequest.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityHasPrivilegesRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityHasPrivilegesRequest : PlainRequestBase - { - public SecurityHasPrivilegesRequest() - { - } - - public SecurityHasPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? user) : base(r => r.Optional("user", user)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityHasPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("application")] - public IEnumerable? Application { get; set; } - - [JsonInclude] - [JsonPropertyName("cluster")] - public IEnumerable? Cluster { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public IEnumerable? Index { get; set; } - } - - public sealed partial class SecurityHasPrivilegesRequestDescriptor : RequestDescriptorBase - { - internal SecurityHasPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityHasPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityHasPrivileges; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public SecurityHasPrivilegesRequestDescriptor User(Elastic.Clients.Elasticsearch.Name? user) - { - RouteValues.Optional("user", user); - return Self; - } - - private IEnumerable? ApplicationValue { get; set; } - - private ApplicationPrivilegesCheckDescriptor ApplicationDescriptor { get; set; } - - private Action ApplicationDescriptorAction { get; set; } - - private Action[] ApplicationDescriptorActions { get; set; } - - private IEnumerable? ClusterValue { get; set; } - - private IEnumerable? IndexValue { get; set; } - - private IndexPrivilegesCheckDescriptor IndexDescriptor { get; set; } - - private Action IndexDescriptorAction { get; set; } - - private Action[] IndexDescriptorActions { get; set; } - - public SecurityHasPrivilegesRequestDescriptor Application(IEnumerable? application) - { - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationValue = application; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Application(ApplicationPrivilegesCheckDescriptor descriptor) - { - ApplicationValue = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationDescriptor = descriptor; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Application(Action configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorActions = null; - ApplicationDescriptorAction = configure; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Application(params Action[] configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = configure; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Cluster(IEnumerable? cluster) - { - ClusterValue = cluster; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Index(IEnumerable? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexValue = index; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Index(IndexPrivilegesCheckDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexDescriptor = descriptor; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Index(Action configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorActions = null; - IndexDescriptorAction = configure; - return Self; - } - - public SecurityHasPrivilegesRequestDescriptor Index(params Action[] configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationDescriptor is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorAction is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ApplicationPrivilegesCheckDescriptor(ApplicationDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorActions is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - foreach (var action in ApplicationDescriptorActions) - { - JsonSerializer.Serialize(writer, new ApplicationPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationValue is not null) - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, ApplicationValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - writer.WriteEndArray(); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new IndexPrivilegesCheckDescriptor(IndexDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndexDescriptorActions is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - foreach (var action in IndexDescriptorActions) - { - JsonSerializer.Serialize(writer, new IndexPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesResponse.g.cs deleted file mode 100644 index 45f2d5b44a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityHasPrivilegesResponse.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityHasPrivilegesResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("application")] - public Dictionary>> Application { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster")] - public Dictionary Cluster { get; init; } - - [JsonInclude] - [JsonPropertyName("has_all_requested")] - public bool HasAllRequested { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public Dictionary> Index { get; init; } - - [JsonInclude] - [JsonPropertyName("username")] - public string Username { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyRequest.g.cs deleted file mode 100644 index 4fdf7a8902d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyRequest.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityInvalidateApiKeyRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityInvalidateApiKeyRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityInvalidateApiKey; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Id? Id { get; set; } - - [JsonInclude] - [JsonPropertyName("ids")] - public IEnumerable? Ids { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name? Name { get; set; } - - [JsonInclude] - [JsonPropertyName("owner")] - public bool? Owner { get; set; } - - [JsonInclude] - [JsonPropertyName("realm_name")] - public string? RealmName { get; set; } - - [JsonInclude] - [JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Username? Username { get; set; } - } - - public sealed partial class SecurityInvalidateApiKeyRequestDescriptor : RequestDescriptorBase - { - internal SecurityInvalidateApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityInvalidateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityInvalidateApiKey; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } - - private IEnumerable? IdsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } - - private bool? OwnerValue { get; set; } - - private string? RealmNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } - - public SecurityInvalidateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - IdValue = id; - return Self; - } - - public SecurityInvalidateApiKeyRequestDescriptor Ids(IEnumerable? ids) - { - IdsValue = ids; - return Self; - } - - public SecurityInvalidateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - NameValue = name; - return Self; - } - - public SecurityInvalidateApiKeyRequestDescriptor Owner(bool? owner = true) - { - OwnerValue = owner; - return Self; - } - - public SecurityInvalidateApiKeyRequestDescriptor RealmName(string? realmName) - { - RealmNameValue = realmName; - return Self; - } - - public SecurityInvalidateApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (OwnerValue.HasValue) - { - writer.WritePropertyName("owner"); - writer.WriteBooleanValue(OwnerValue.Value); - } - - if (!string.IsNullOrEmpty(RealmNameValue)) - { - writer.WritePropertyName("realm_name"); - writer.WriteStringValue(RealmNameValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyResponse.g.cs deleted file mode 100644 index a57ad118b7e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateApiKeyResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityInvalidateApiKeyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("error_count")] - public int ErrorCount { get; init; } - - [JsonInclude] - [JsonPropertyName("error_details")] - public IReadOnlyCollection? ErrorDetails { get; init; } - - [JsonInclude] - [JsonPropertyName("invalidated_api_keys")] - public IReadOnlyCollection InvalidatedApiKeys { get; init; } - - [JsonInclude] - [JsonPropertyName("previously_invalidated_api_keys")] - public IReadOnlyCollection PreviouslyInvalidatedApiKeys { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenRequest.g.cs deleted file mode 100644 index 22b71e29123..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenRequest.g.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityInvalidateTokenRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityInvalidateTokenRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityInvalidateToken; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("token")] - public string? Token { get; set; } - - [JsonInclude] - [JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - - [JsonInclude] - [JsonPropertyName("realm_name")] - public Elastic.Clients.Elasticsearch.Name? RealmName { get; set; } - - [JsonInclude] - [JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Username? Username { get; set; } - } - - public sealed partial class SecurityInvalidateTokenRequestDescriptor : RequestDescriptorBase - { - internal SecurityInvalidateTokenRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityInvalidateTokenRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityInvalidateToken; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.Name? RealmNameValue { get; set; } - - private string? RefreshTokenValue { get; set; } - - private string? TokenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } - - public SecurityInvalidateTokenRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Name? realmName) - { - RealmNameValue = realmName; - return Self; - } - - public SecurityInvalidateTokenRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - public SecurityInvalidateTokenRequestDescriptor Token(string? token) - { - TokenValue = token; - return Self; - } - - public SecurityInvalidateTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RealmNameValue is not null) - { - writer.WritePropertyName("realm_name"); - JsonSerializer.Serialize(writer, RealmNameValue, options); - } - - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - if (!string.IsNullOrEmpty(TokenValue)) - { - writer.WritePropertyName("token"); - writer.WriteStringValue(TokenValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenResponse.g.cs deleted file mode 100644 index 5f976466892..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityInvalidateTokenResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityInvalidateTokenResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("error_count")] - public long ErrorCount { get; init; } - - [JsonInclude] - [JsonPropertyName("error_details")] - public IReadOnlyCollection? ErrorDetails { get; init; } - - [JsonInclude] - [JsonPropertyName("invalidated_tokens")] - public long InvalidatedTokens { get; init; } - - [JsonInclude] - [JsonPropertyName("previously_invalidated_tokens")] - public long PreviouslyInvalidatedTokens { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserRequest.g.cs deleted file mode 100644 index dc1bdc07e3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserRequest.g.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityPutUserRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - } - - public sealed partial class SecurityPutUserRequest : PlainRequestBase - { - public SecurityPutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityPutUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - [JsonInclude] - [JsonPropertyName("email")] - public string? Email { get; set; } - - [JsonInclude] - [JsonPropertyName("full_name")] - public string? FullName { get; set; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; set; } - - [JsonInclude] - [JsonPropertyName("password")] - public string? Password { get; set; } - - [JsonInclude] - [JsonPropertyName("password_hash")] - public string? PasswordHash { get; set; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IEnumerable? Roles { get; set; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - } - - public sealed partial class SecurityPutUserRequestDescriptor : RequestDescriptorBase - { - internal SecurityPutUserRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityPutUserRequestDescriptor(Elastic.Clients.Elasticsearch.Username username) : base(r => r.Required("username", username)) - { - } - - internal SecurityPutUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityPutUser; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SecurityPutUserRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); - public SecurityPutUserRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username username) - { - RouteValues.Required("username", username); - return Self; - } - - private string? EmailValue { get; set; } - - private bool? EnabledValue { get; set; } - - private string? FullNameValue { get; set; } - - private Dictionary? MetadataValue { get; set; } - - private string? PasswordValue { get; set; } - - private string? PasswordHashValue { get; set; } - - private IEnumerable? RolesValue { get; set; } - - public SecurityPutUserRequestDescriptor Email(string? email) - { - EmailValue = email; - return Self; - } - - public SecurityPutUserRequestDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public SecurityPutUserRequestDescriptor FullName(string? fullName) - { - FullNameValue = fullName; - return Self; - } - - public SecurityPutUserRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SecurityPutUserRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public SecurityPutUserRequestDescriptor PasswordHash(string? passwordHash) - { - PasswordHashValue = passwordHash; - return Self; - } - - public SecurityPutUserRequestDescriptor Roles(IEnumerable? roles) - { - RolesValue = roles; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(EmailValue)) - { - writer.WritePropertyName("email"); - writer.WriteStringValue(EmailValue); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (!string.IsNullOrEmpty(FullNameValue)) - { - writer.WritePropertyName("full_name"); - writer.WriteStringValue(FullNameValue); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (PasswordValue is not null) - { - writer.WritePropertyName("password"); - JsonSerializer.Serialize(writer, PasswordValue, options); - } - - if (!string.IsNullOrEmpty(PasswordHashValue)) - { - writer.WritePropertyName("password_hash"); - writer.WriteStringValue(PasswordHashValue); - } - - if (RolesValue is not null) - { - writer.WritePropertyName("roles"); - JsonSerializer.Serialize(writer, RolesValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserResponse.g.cs deleted file mode 100644 index 5e04c6d78fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityPutUserResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityPutUserResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("created")] - public bool Created { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysRequest.g.cs deleted file mode 100644 index 77d99ed88c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysRequest.g.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityQueryApiKeysRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityQueryApiKeysRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityQueryApiKeys; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("from")] - public int? From { get; set; } - - [JsonInclude] - [JsonPropertyName("sort")] - [JsonConverter(typeof(SortConverter))] - public IEnumerable? Sort { get; set; } - - [JsonInclude] - [JsonPropertyName("size")] - public int? Size { get; set; } - - [JsonInclude] - [JsonPropertyName("search_after")] - public IEnumerable? SearchAfter { get; set; } - } - - public sealed partial class SecurityQueryApiKeysRequestDescriptor : RequestDescriptorBase, SecurityQueryApiKeysRequestParameters> - { - internal SecurityQueryApiKeysRequestDescriptor(Action> configure) => configure.Invoke(this); - public SecurityQueryApiKeysRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityQueryApiKeys; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private int? FromValue { get; set; } - - private IEnumerable? SearchAfterValue { get; set; } - - private int? SizeValue { get; set; } - - private IEnumerable? SortValue { get; set; } - - public SecurityQueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor SearchAfter(IEnumerable? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Sort(IEnumerable? sort) - { - SortValue = sort; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SecurityQueryApiKeysRequestDescriptor : RequestDescriptorBase - { - internal SecurityQueryApiKeysRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityQueryApiKeysRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityQueryApiKeys; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private int? FromValue { get; set; } - - private IEnumerable? SearchAfterValue { get; set; } - - private int? SizeValue { get; set; } - - private IEnumerable? SortValue { get; set; } - - public SecurityQueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor SearchAfter(IEnumerable? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public SecurityQueryApiKeysRequestDescriptor Sort(IEnumerable? sort) - { - SortValue = sort; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysResponse.g.cs deleted file mode 100644 index 9a756907a6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityQueryApiKeysResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityQueryApiKeysResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("api_keys")] - public IReadOnlyCollection ApiKeys { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public int Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateRequest.g.cs deleted file mode 100644 index 7002f6abf07..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateRequest.g.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlAuthenticateRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlAuthenticateRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlAuthenticate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("content")] - public string Content { get; set; } - - [JsonInclude] - [JsonPropertyName("ids")] - public Elastic.Clients.Elasticsearch.Ids Ids { get; set; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string? Realm { get; set; } - } - - public sealed partial class SecuritySamlAuthenticateRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlAuthenticateRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlAuthenticateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlAuthenticate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string ContentValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ids IdsValue { get; set; } - - private string? RealmValue { get; set; } - - public SecuritySamlAuthenticateRequestDescriptor Content(string content) - { - ContentValue = content; - return Self; - } - - public SecuritySamlAuthenticateRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Ids ids) - { - IdsValue = ids; - return Self; - } - - public SecuritySamlAuthenticateRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("content"); - writer.WriteStringValue(ContentValue); - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateResponse.g.cs deleted file mode 100644 index a20ba075f64..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlAuthenticateResponse.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlAuthenticateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("access_token")] - public string AccessToken { get; init; } - - [JsonInclude] - [JsonPropertyName("expires_in")] - public int ExpiresIn { get; init; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string Realm { get; init; } - - [JsonInclude] - [JsonPropertyName("refresh_token")] - public string RefreshToken { get; init; } - - [JsonInclude] - [JsonPropertyName("username")] - public string Username { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutRequest.g.cs deleted file mode 100644 index 3a82fbaca97..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutRequest.g.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlCompleteLogoutRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlCompleteLogoutRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlCompleteLogout; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("realm")] - public string Realm { get; set; } - - [JsonInclude] - [JsonPropertyName("ids")] - public Elastic.Clients.Elasticsearch.Ids Ids { get; set; } - - [JsonInclude] - [JsonPropertyName("query_string")] - public string? QueryString { get; set; } - - [JsonInclude] - [JsonPropertyName("content")] - public string? Content { get; set; } - } - - public sealed partial class SecuritySamlCompleteLogoutRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlCompleteLogoutRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlCompleteLogoutRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlCompleteLogout; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string? ContentValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ids IdsValue { get; set; } - - private string? QueryStringValue { get; set; } - - private string RealmValue { get; set; } - - public SecuritySamlCompleteLogoutRequestDescriptor Content(string? content) - { - ContentValue = content; - return Self; - } - - public SecuritySamlCompleteLogoutRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Ids ids) - { - IdsValue = ids; - return Self; - } - - public SecuritySamlCompleteLogoutRequestDescriptor QueryString(string? queryString) - { - QueryStringValue = queryString; - return Self; - } - - public SecuritySamlCompleteLogoutRequestDescriptor Realm(string realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContentValue)) - { - writer.WritePropertyName("content"); - writer.WriteStringValue(ContentValue); - } - - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - if (!string.IsNullOrEmpty(QueryStringValue)) - { - writer.WritePropertyName("query_string"); - writer.WriteStringValue(QueryStringValue); - } - - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutResponse.g.cs deleted file mode 100644 index d40bf50f7e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlCompleteLogoutResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlCompleteLogoutResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateRequest.g.cs deleted file mode 100644 index bf25ed1dd21..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateRequest.g.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlInvalidateRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlInvalidateRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlInvalidate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("acs")] - public string? Acs { get; set; } - - [JsonInclude] - [JsonPropertyName("query_string")] - public string QueryString { get; set; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string? Realm { get; set; } - } - - public sealed partial class SecuritySamlInvalidateRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlInvalidateRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlInvalidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlInvalidate; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string? AcsValue { get; set; } - - private string QueryStringValue { get; set; } - - private string? RealmValue { get; set; } - - public SecuritySamlInvalidateRequestDescriptor Acs(string? acs) - { - AcsValue = acs; - return Self; - } - - public SecuritySamlInvalidateRequestDescriptor QueryString(string queryString) - { - QueryStringValue = queryString; - return Self; - } - - public SecuritySamlInvalidateRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AcsValue)) - { - writer.WritePropertyName("acs"); - writer.WriteStringValue(AcsValue); - } - - writer.WritePropertyName("query_string"); - writer.WriteStringValue(QueryStringValue); - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateResponse.g.cs deleted file mode 100644 index 17baaaf7c74..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlInvalidateResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlInvalidateResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("invalidated")] - public int Invalidated { get; init; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string Realm { get; init; } - - [JsonInclude] - [JsonPropertyName("redirect")] - public string Redirect { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutRequest.g.cs deleted file mode 100644 index 4824d0f60eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlLogoutRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlLogoutRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlLogout; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("token")] - public string Token { get; set; } - - [JsonInclude] - [JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - } - - public sealed partial class SecuritySamlLogoutRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlLogoutRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlLogoutRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlLogout; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string? RefreshTokenValue { get; set; } - - private string TokenValue { get; set; } - - public SecuritySamlLogoutRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - public SecuritySamlLogoutRequestDescriptor Token(string token) - { - TokenValue = token; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - writer.WritePropertyName("token"); - writer.WriteStringValue(TokenValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutResponse.g.cs deleted file mode 100644 index 74c4910aa90..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlLogoutResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlLogoutResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("redirect")] - public string Redirect { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationRequest.g.cs deleted file mode 100644 index 19493baff32..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationRequest.g.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlPrepareAuthenticationRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlPrepareAuthenticationRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlPrepareAuthentication; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("acs")] - public string? Acs { get; set; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string? Realm { get; set; } - - [JsonInclude] - [JsonPropertyName("relay_state")] - public string? RelayState { get; set; } - } - - public sealed partial class SecuritySamlPrepareAuthenticationRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlPrepareAuthenticationRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlPrepareAuthenticationRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlPrepareAuthentication; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - private string? AcsValue { get; set; } - - private string? RealmValue { get; set; } - - private string? RelayStateValue { get; set; } - - public SecuritySamlPrepareAuthenticationRequestDescriptor Acs(string? acs) - { - AcsValue = acs; - return Self; - } - - public SecuritySamlPrepareAuthenticationRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - public SecuritySamlPrepareAuthenticationRequestDescriptor RelayState(string? relayState) - { - RelayStateValue = relayState; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AcsValue)) - { - writer.WritePropertyName("acs"); - writer.WriteStringValue(AcsValue); - } - - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - if (!string.IsNullOrEmpty(RelayStateValue)) - { - writer.WritePropertyName("relay_state"); - writer.WriteStringValue(RelayStateValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationResponse.g.cs deleted file mode 100644 index 47e71a6b5c7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlPrepareAuthenticationResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlPrepareAuthenticationResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string Realm { get; init; } - - [JsonInclude] - [JsonPropertyName("redirect")] - public string Redirect { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataRequest.g.cs deleted file mode 100644 index 32ddf22636c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecuritySamlServiceProviderMetadataRequestParameters : RequestParameters - { - } - - public sealed partial class SecuritySamlServiceProviderMetadataRequest : PlainRequestBase - { - public SecuritySamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Name realm_name) : base(r => r.Required("realm_name", realm_name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlServiceProviderMetadata; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SecuritySamlServiceProviderMetadataRequestDescriptor : RequestDescriptorBase - { - internal SecuritySamlServiceProviderMetadataRequestDescriptor(Action configure) => configure.Invoke(this); - public SecuritySamlServiceProviderMetadataRequestDescriptor(Elastic.Clients.Elasticsearch.Name realm_name) : base(r => r.Required("realm_name", realm_name)) - { - } - - internal SecuritySamlServiceProviderMetadataRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecuritySamlServiceProviderMetadata; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SecuritySamlServiceProviderMetadataRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Name realm_name) - { - RouteValues.Required("realm_name", realm_name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataResponse.g.cs deleted file mode 100644 index 159f2278685..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecuritySamlServiceProviderMetadataResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecuritySamlServiceProviderMetadataResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("metadata")] - public string Metadata { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyRequest.g.cs deleted file mode 100644 index 979470a0829..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyRequest.g.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed class SecurityUpdateApiKeyRequestParameters : RequestParameters - { - } - - public sealed partial class SecurityUpdateApiKeyRequest : PlainRequestBase - { - public SecurityUpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityUpdateApiKey; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonInclude] - [JsonPropertyName("role_descriptors")] - public Dictionary? RoleDescriptors { get; set; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; set; } - } - - public sealed partial class SecurityUpdateApiKeyRequestDescriptor : RequestDescriptorBase, SecurityUpdateApiKeyRequestParameters> - { - internal SecurityUpdateApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); - public SecurityUpdateApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal SecurityUpdateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityUpdateApiKey; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SecurityUpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Dictionary? MetadataValue { get; set; } - - private Dictionary? RoleDescriptorsValue { get; set; } - - public SecurityUpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SecurityUpdateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDictionary> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SecurityUpdateApiKeyRequestDescriptor : RequestDescriptorBase - { - internal SecurityUpdateApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - public SecurityUpdateApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal SecurityUpdateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityUpdateApiKey; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SecurityUpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Dictionary? MetadataValue { get; set; } - - private Dictionary? RoleDescriptorsValue { get; set; } - - public SecurityUpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SecurityUpdateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDictionary> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyResponse.g.cs deleted file mode 100644 index 94a3f903969..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SecurityUpdateApiKeyResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class SecurityUpdateApiKeyResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("updated")] - public bool Updated { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleRequest.g.cs deleted file mode 100644 index f9e99f7fe34..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmDeleteLifecycleRequestParameters : RequestParameters - { - } - - public sealed partial class SlmDeleteLifecycleRequest : PlainRequestBase - { - public SlmDeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementDeleteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmDeleteLifecycleRequestDescriptor : RequestDescriptorBase - { - internal SlmDeleteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmDeleteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal SlmDeleteLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementDeleteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SlmDeleteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Name policy_id) - { - RouteValues.Required("policy_id", policy_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleResponse.g.cs deleted file mode 100644 index cace979c92b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmDeleteLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmDeleteLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleRequest.g.cs deleted file mode 100644 index 7025ec9e548..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmExecuteLifecycleRequestParameters : RequestParameters - { - } - - public sealed partial class SlmExecuteLifecycleRequest : PlainRequestBase - { - public SlmExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementExecuteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmExecuteLifecycleRequestDescriptor : RequestDescriptorBase - { - internal SlmExecuteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmExecuteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal SlmExecuteLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementExecuteLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public SlmExecuteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Name policy_id) - { - RouteValues.Required("policy_id", policy_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleResponse.g.cs deleted file mode 100644 index d47d2f6a4db..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmExecuteLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("snapshot_name")] - public string SnapshotName { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionRequest.g.cs deleted file mode 100644 index f2f163b6051..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmExecuteRetentionRequestParameters : RequestParameters - { - } - - public sealed partial class SlmExecuteRetentionRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementExecuteRetention; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmExecuteRetentionRequestDescriptor : RequestDescriptorBase - { - internal SlmExecuteRetentionRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmExecuteRetentionRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementExecuteRetention; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionResponse.g.cs deleted file mode 100644 index 8ad20f13efe..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmExecuteRetentionResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmExecuteRetentionResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleRequest.g.cs deleted file mode 100644 index 889510a3e25..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleRequest.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmGetLifecycleRequestParameters : RequestParameters - { - } - - public sealed partial class SlmGetLifecycleRequest : PlainRequestBase - { - public SlmGetLifecycleRequest() - { - } - - public SlmGetLifecycleRequest(Elastic.Clients.Elasticsearch.Names? policy_id) : base(r => r.Optional("policy_id", policy_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmGetLifecycleRequestDescriptor : RequestDescriptorBase - { - internal SlmGetLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmGetLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SlmGetLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Names? policy_id) - { - RouteValues.Optional("policy_id", policy_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleResponse.g.cs deleted file mode 100644 index 915a2b8ac94..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetLifecycleResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmGetLifecycleResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsRequest.g.cs deleted file mode 100644 index 5cef115521c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmGetStatsRequestParameters : RequestParameters - { - } - - public sealed partial class SlmGetStatsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmGetStatsRequestDescriptor : RequestDescriptorBase - { - internal SlmGetStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmGetStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsResponse.g.cs deleted file mode 100644 index 8226871b65d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatsResponse.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmGetStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("policy_stats")] - public IReadOnlyCollection PolicyStats { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_deletion_time")] - public Elastic.Clients.Elasticsearch.Duration RetentionDeletionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_deletion_time_millis")] - public long RetentionDeletionTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_failed")] - public long RetentionFailed { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_runs")] - public long RetentionRuns { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_timed_out")] - public long RetentionTimedOut { get; init; } - - [JsonInclude] - [JsonPropertyName("total_snapshot_deletion_failures")] - public long TotalSnapshotDeletionFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("total_snapshots_deleted")] - public long TotalSnapshotsDeleted { get; init; } - - [JsonInclude] - [JsonPropertyName("total_snapshots_failed")] - public long TotalSnapshotsFailed { get; init; } - - [JsonInclude] - [JsonPropertyName("total_snapshots_taken")] - public long TotalSnapshotsTaken { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusRequest.g.cs deleted file mode 100644 index 2d8d135d80a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmGetStatusRequestParameters : RequestParameters - { - } - - public sealed partial class SlmGetStatusRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmGetStatusRequestDescriptor : RequestDescriptorBase - { - internal SlmGetStatusRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmGetStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusResponse.g.cs deleted file mode 100644 index 9ed55e7fe68..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmGetStatusResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmGetStatusResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("operation_mode")] - public Elastic.Clients.Elasticsearch.LifecycleOperationMode OperationMode { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleRequest.g.cs deleted file mode 100644 index 0ba29ed1b3e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleRequest.g.cs +++ /dev/null @@ -1,235 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmPutLifecycleRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SlmPutLifecycleRequest : PlainRequestBase - { - public SlmPutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementPutLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Slm.Configuration? Config { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name? Name { get; set; } - - [JsonInclude] - [JsonPropertyName("repository")] - public string? Repository { get; set; } - - [JsonInclude] - [JsonPropertyName("retention")] - public Elastic.Clients.Elasticsearch.Slm.Retention? Retention { get; set; } - - [JsonInclude] - [JsonPropertyName("schedule")] - public string? Schedule { get; set; } - } - - public sealed partial class SlmPutLifecycleRequestDescriptor : RequestDescriptorBase - { - internal SlmPutLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmPutLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name policy_id) : base(r => r.Required("policy_id", policy_id)) - { - } - - internal SlmPutLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementPutLifecycle; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SlmPutLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SlmPutLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SlmPutLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Name policy_id) - { - RouteValues.Required("policy_id", policy_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Slm.Configuration? ConfigValue { get; set; } - - private ConfigurationDescriptor ConfigDescriptor { get; set; } - - private Action ConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } - - private string? RepositoryValue { get; set; } - - private Elastic.Clients.Elasticsearch.Slm.Retention? RetentionValue { get; set; } - - private RetentionDescriptor RetentionDescriptor { get; set; } - - private Action RetentionDescriptorAction { get; set; } - - private string? ScheduleValue { get; set; } - - public SlmPutLifecycleRequestDescriptor Config(Elastic.Clients.Elasticsearch.Slm.Configuration? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Config(ConfigurationDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Config(Action configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - NameValue = name; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Repository(string? repository) - { - RepositoryValue = repository; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Retention(Elastic.Clients.Elasticsearch.Slm.Retention? retention) - { - RetentionDescriptor = null; - RetentionDescriptorAction = null; - RetentionValue = retention; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Retention(RetentionDescriptor descriptor) - { - RetentionValue = null; - RetentionDescriptorAction = null; - RetentionDescriptor = descriptor; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Retention(Action configure) - { - RetentionValue = null; - RetentionDescriptor = null; - RetentionDescriptorAction = configure; - return Self; - } - - public SlmPutLifecycleRequestDescriptor Schedule(string? schedule) - { - ScheduleValue = schedule; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new ConfigurationDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(RepositoryValue)) - { - writer.WritePropertyName("repository"); - writer.WriteStringValue(RepositoryValue); - } - - if (RetentionDescriptor is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionDescriptor, options); - } - else if (RetentionDescriptorAction is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, new RetentionDescriptor(RetentionDescriptorAction), options); - } - else if (RetentionValue is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionValue, options); - } - - if (ScheduleValue is not null) - { - writer.WritePropertyName("schedule"); - JsonSerializer.Serialize(writer, ScheduleValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleResponse.g.cs deleted file mode 100644 index ed306cc99a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmPutLifecycleResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmPutLifecycleResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartRequest.g.cs deleted file mode 100644 index 6633e16542e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmStartRequestParameters : RequestParameters - { - } - - public sealed partial class SlmStartRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStart; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmStartRequestDescriptor : RequestDescriptorBase - { - internal SlmStartRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmStartRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStart; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartResponse.g.cs deleted file mode 100644 index 4342ede9227..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStartResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmStartResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopRequest.g.cs deleted file mode 100644 index 158cf777baa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed class SlmStopRequestParameters : RequestParameters - { - } - - public sealed partial class SlmStopRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStop; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - } - - public sealed partial class SlmStopRequestDescriptor : RequestDescriptorBase - { - internal SlmStopRequestDescriptor(Action configure) => configure.Invoke(this); - public SlmStopRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStop; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopResponse.g.cs deleted file mode 100644 index 2dd24b04b9a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Slm/SlmStopResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class SlmStopResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ 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 deleted file mode 100644 index 6e80a21a9da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class CreateSnapshotRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class CreateSnapshotRequest : PlainRequestBase - { - public CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCreate; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonInclude] - [JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - - [JsonInclude] - [JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_states")] - public IEnumerable? FeatureStates { get; set; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; set; } - - [JsonInclude] - [JsonPropertyName("partial")] - public bool? Partial { get; set; } - } - - public sealed partial class CreateSnapshotRequestDescriptor : RequestDescriptorBase - { - internal CreateSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public CreateSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal CreateSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCreate; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public CreateSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateSnapshotRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public CreateSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public CreateSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private IEnumerable? FeatureStatesValue { get; set; } - - private bool? IgnoreUnavailableValue { get; set; } - - private bool? IncludeGlobalStateValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private Dictionary? MetadataValue { get; set; } - - private bool? PartialValue { get; set; } - - public CreateSnapshotRequestDescriptor FeatureStates(IEnumerable? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - public CreateSnapshotRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public CreateSnapshotRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public CreateSnapshotRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public CreateSnapshotRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public CreateSnapshotRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs deleted file mode 100644 index fd94abedf31..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class CreateSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("accepted")] - public bool? Accepted { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotInfo? Snapshot { get; init; } - } -} \ 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 deleted file mode 100644 index 71d4e777409..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class DeleteSnapshotRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class DeleteSnapshotRequest : PlainRequestBase - { - public DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotDelete; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class DeleteSnapshotRequestDescriptor : RequestDescriptorBase - { - internal DeleteSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public DeleteSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal DeleteSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotDelete; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public DeleteSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public DeleteSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs deleted file mode 100644 index 797d605c1ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class DeleteSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ 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 deleted file mode 100644 index 354099398d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ /dev/null @@ -1,162 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class GetSnapshotRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - - [JsonIgnore] - public bool? IndexDetails { get => Q("index_details"); set => Q("index_details", value); } - - [JsonIgnore] - public bool? IndexNames { get => Q("index_names"); set => Q("index_names", value); } - - [JsonIgnore] - public bool? IncludeRepository { get => Q("include_repository"); set => Q("include_repository", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.SortOrder? Order { get => Q("order"); set => Q("order", value); } - - [JsonIgnore] - public string? After { get => Q("after"); set => Q("after", value); } - - [JsonIgnore] - public int? Offset { get => Q("offset"); set => Q("offset", value); } - - [JsonIgnore] - public string? FromSortValue { get => Q("from_sort_value"); set => Q("from_sort_value", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? SlmPolicyFilter { get => Q("slm_policy_filter"); set => Q("slm_policy_filter", value); } - } - - public sealed partial class GetSnapshotRequest : PlainRequestBase - { - public GetSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - - [JsonIgnore] - public bool? IndexDetails { get => Q("index_details"); set => Q("index_details", value); } - - [JsonIgnore] - public bool? IndexNames { get => Q("index_names"); set => Q("index_names", value); } - - [JsonIgnore] - public bool? IncludeRepository { get => Q("include_repository"); set => Q("include_repository", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.SortOrder? Order { get => Q("order"); set => Q("order", value); } - - [JsonIgnore] - public string? After { get => Q("after"); set => Q("after", value); } - - [JsonIgnore] - public int? Offset { get => Q("offset"); set => Q("offset", value); } - - [JsonIgnore] - public string? FromSortValue { get => Q("from_sort_value"); set => Q("from_sort_value", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Name? SlmPolicyFilter { get => Q("slm_policy_filter"); set => Q("slm_policy_filter", value); } - } - - public sealed partial class GetSnapshotRequestDescriptor : RequestDescriptorBase - { - internal GetSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - public GetSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal GetSnapshotRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotGet; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public GetSnapshotRequestDescriptor After(string? after) => Qs("after", after); - public GetSnapshotRequestDescriptor FromSortValue(string? fromSortValue) => Qs("from_sort_value", fromSortValue); - public GetSnapshotRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetSnapshotRequestDescriptor IncludeRepository(bool? includeRepository = true) => Qs("include_repository", includeRepository); - public GetSnapshotRequestDescriptor IndexDetails(bool? indexDetails = true) => Qs("index_details", indexDetails); - public GetSnapshotRequestDescriptor IndexNames(bool? indexNames = true) => Qs("index_names", indexNames); - public GetSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetSnapshotRequestDescriptor Offset(int? offset) => Qs("offset", offset); - public GetSnapshotRequestDescriptor Order(Elastic.Clients.Elasticsearch.SortOrder? order) => Qs("order", order); - public GetSnapshotRequestDescriptor Size(int? size) => Qs("size", size); - public GetSnapshotRequestDescriptor SlmPolicyFilter(Elastic.Clients.Elasticsearch.Name? slmPolicyFilter) => Qs("slm_policy_filter", slmPolicyFilter); - public GetSnapshotRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Snapshot.SnapshotSort? sort) => Qs("sort", sort); - public GetSnapshotRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - public GetSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public GetSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Names snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs deleted file mode 100644 index 302bbe0354c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class GetSnapshotResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("remaining")] - public int Remaining { get; init; } - - [JsonInclude] - [JsonPropertyName("responses")] - public IReadOnlyCollection? Responses { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshots")] - public IReadOnlyCollection? Snapshots { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public int Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryRequest.g.cs deleted file mode 100644 index e0f3dcaf607..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotCleanupRepositoryRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotCleanupRepositoryRequest : PlainRequestBase - { - public SnapshotCleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCleanupRepository; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotCleanupRepositoryRequestDescriptor : RequestDescriptorBase - { - internal SnapshotCleanupRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotCleanupRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal SnapshotCleanupRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCleanupRepository; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SnapshotCleanupRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotCleanupRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SnapshotCleanupRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryResponse.g.cs deleted file mode 100644 index 8e179c70617..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCleanupRepositoryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotCleanupRepositoryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("results")] - public Elastic.Clients.Elasticsearch.Snapshot.CleanupRepositoryResults Results { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneRequest.g.cs deleted file mode 100644 index b70df129b54..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneRequest.g.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotCloneRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotCloneRequest : PlainRequestBase - { - public SnapshotCloneRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot).Required("target_snapshot", target_snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotClone; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("indices")] - public string Indices { get; set; } - } - - public sealed partial class SnapshotCloneRequestDescriptor : RequestDescriptorBase - { - internal SnapshotCloneRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotCloneRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot).Required("target_snapshot", target_snapshot)) - { - } - - internal SnapshotCloneRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotClone; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SnapshotCloneRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotCloneRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SnapshotCloneRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public SnapshotCloneRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - public SnapshotCloneRequestDescriptor TargetSnapshot(Elastic.Clients.Elasticsearch.Name target_snapshot) - { - RouteValues.Required("target_snapshot", target_snapshot); - return Self; - } - - private string IndicesValue { get; set; } - - public SnapshotCloneRequestDescriptor Indices(string indices) - { - IndicesValue = indices; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("indices"); - writer.WriteStringValue(IndicesValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneResponse.g.cs deleted file mode 100644 index 6358a7cd564..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCloneResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotCloneResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryRequest.g.cs deleted file mode 100644 index 9ac4806678a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryRequest.g.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotCreateRepositoryRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? Verify { get => Q("verify"); set => Q("verify", value); } - } - - public sealed partial class SnapshotCreateRepositoryRequest : PlainRequestBase - { - public SnapshotCreateRepositoryRequest(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCreateRepository; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? Verify { get => Q("verify"); set => Q("verify", value); } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Snapshot.RepositorySettings Settings { get; set; } - } - - public sealed partial class SnapshotCreateRepositoryRequestDescriptor : RequestDescriptorBase - { - internal SnapshotCreateRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotCreateRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal SnapshotCreateRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotCreateRepository; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public SnapshotCreateRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotCreateRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SnapshotCreateRepositoryRequestDescriptor Verify(bool? verify = true) => Qs("verify", verify); - public SnapshotCreateRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - private Elastic.Clients.Elasticsearch.Snapshot.RepositorySettings SettingsValue { get; set; } - - private RepositorySettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - private string TypeValue { get; set; } - - public SnapshotCreateRepositoryRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Snapshot.RepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public SnapshotCreateRepositoryRequestDescriptor Settings(RepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public SnapshotCreateRepositoryRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public SnapshotCreateRepositoryRequestDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new RepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryResponse.g.cs deleted file mode 100644 index 20a1be66143..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotCreateRepositoryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotCreateRepositoryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryRequest.g.cs deleted file mode 100644 index 8723891b100..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotDeleteRepositoryRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotDeleteRepositoryRequest : PlainRequestBase - { - public SnapshotDeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Names repository) : base(r => r.Required("repository", repository)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotDeleteRepository; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotDeleteRepositoryRequestDescriptor : RequestDescriptorBase - { - internal SnapshotDeleteRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotDeleteRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Names repository) : base(r => r.Required("repository", repository)) - { - } - - internal SnapshotDeleteRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotDeleteRepository; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public SnapshotDeleteRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotDeleteRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SnapshotDeleteRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Names repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryResponse.g.cs deleted file mode 100644 index 1c557385376..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotDeleteRepositoryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotDeleteRepositoryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryRequest.g.cs deleted file mode 100644 index 73e397288c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotGetRepositoryRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class SnapshotGetRepositoryRequest : PlainRequestBase - { - public SnapshotGetRepositoryRequest() - { - } - - public SnapshotGetRepositoryRequest(Elastic.Clients.Elasticsearch.Names? repository) : base(r => r.Optional("repository", repository)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotGetRepository; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class SnapshotGetRepositoryRequestDescriptor : RequestDescriptorBase - { - internal SnapshotGetRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotGetRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotGetRepository; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SnapshotGetRepositoryRequestDescriptor Local(bool? local = true) => Qs("local", local); - public SnapshotGetRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotGetRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Names? repository) - { - RouteValues.Optional("repository", repository); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryResponse.g.cs deleted file mode 100644 index fcfcd8f6483..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotGetRepositoryResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotGetRepositoryResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreRequest.g.cs deleted file mode 100644 index 4e0c01c6006..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreRequest.g.cs +++ /dev/null @@ -1,474 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotRestoreRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class SnapshotRestoreRequest : PlainRequestBase - { - public SnapshotRestoreRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotRestore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - [JsonInclude] - [JsonPropertyName("ignore_index_settings")] - public IEnumerable? IgnoreIndexSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - - [JsonInclude] - [JsonPropertyName("include_aliases")] - public bool? IncludeAliases { get; set; } - - [JsonInclude] - [JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - - [JsonInclude] - [JsonPropertyName("index_settings")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? IndexSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("partial")] - public bool? Partial { get; set; } - - [JsonInclude] - [JsonPropertyName("rename_pattern")] - public string? RenamePattern { get; set; } - - [JsonInclude] - [JsonPropertyName("rename_replacement")] - public string? RenameReplacement { get; set; } - } - - public sealed partial class SnapshotRestoreRequestDescriptor : RequestDescriptorBase, SnapshotRestoreRequestParameters> - { - internal SnapshotRestoreRequestDescriptor(Action> configure) => configure.Invoke(this); - public SnapshotRestoreRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal SnapshotRestoreRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotRestore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public SnapshotRestoreRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotRestoreRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public SnapshotRestoreRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public SnapshotRestoreRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? IndexSettingsValue { get; set; } - - private IndexManagement.IndexSettingsDescriptor IndexSettingsDescriptor { get; set; } - - private Action> IndexSettingsDescriptorAction { get; set; } - - private IEnumerable? IgnoreIndexSettingsValue { get; set; } - - private bool? IgnoreUnavailableValue { get; set; } - - private bool? IncludeAliasesValue { get; set; } - - private bool? IncludeGlobalStateValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? PartialValue { get; set; } - - private string? RenamePatternValue { get; set; } - - private string? RenameReplacementValue { get; set; } - - public SnapshotRestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? indexSettings) - { - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = null; - IndexSettingsValue = indexSettings; - return Self; - } - - public SnapshotRestoreRequestDescriptor IndexSettings(IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexSettingsValue = null; - IndexSettingsDescriptorAction = null; - IndexSettingsDescriptor = descriptor; - return Self; - } - - public SnapshotRestoreRequestDescriptor IndexSettings(Action> configure) - { - IndexSettingsValue = null; - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = configure; - return Self; - } - - public SnapshotRestoreRequestDescriptor IgnoreIndexSettings(IEnumerable? ignoreIndexSettings) - { - IgnoreIndexSettingsValue = ignoreIndexSettings; - return Self; - } - - public SnapshotRestoreRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public SnapshotRestoreRequestDescriptor IncludeAliases(bool? includeAliases = true) - { - IncludeAliasesValue = includeAliases; - return Self; - } - - public SnapshotRestoreRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public SnapshotRestoreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public SnapshotRestoreRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - public SnapshotRestoreRequestDescriptor RenamePattern(string? renamePattern) - { - RenamePatternValue = renamePattern; - return Self; - } - - public SnapshotRestoreRequestDescriptor RenameReplacement(string? renameReplacement) - { - RenameReplacementValue = renameReplacement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexSettingsDescriptor is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsDescriptor, options); - } - else if (IndexSettingsDescriptorAction is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexSettingsDescriptor(IndexSettingsDescriptorAction), options); - } - else if (IndexSettingsValue is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsValue, options); - } - - if (IgnoreIndexSettingsValue is not null) - { - writer.WritePropertyName("ignore_index_settings"); - JsonSerializer.Serialize(writer, IgnoreIndexSettingsValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeAliasesValue.HasValue) - { - writer.WritePropertyName("include_aliases"); - writer.WriteBooleanValue(IncludeAliasesValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - if (!string.IsNullOrEmpty(RenamePatternValue)) - { - writer.WritePropertyName("rename_pattern"); - writer.WriteStringValue(RenamePatternValue); - } - - if (!string.IsNullOrEmpty(RenameReplacementValue)) - { - writer.WritePropertyName("rename_replacement"); - writer.WriteStringValue(RenameReplacementValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SnapshotRestoreRequestDescriptor : RequestDescriptorBase - { - internal SnapshotRestoreRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotRestoreRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal SnapshotRestoreRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotRestore; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public SnapshotRestoreRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotRestoreRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public SnapshotRestoreRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public SnapshotRestoreRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? IndexSettingsValue { get; set; } - - private IndexManagement.IndexSettingsDescriptor IndexSettingsDescriptor { get; set; } - - private Action IndexSettingsDescriptorAction { get; set; } - - private IEnumerable? IgnoreIndexSettingsValue { get; set; } - - private bool? IgnoreUnavailableValue { get; set; } - - private bool? IncludeAliasesValue { get; set; } - - private bool? IncludeGlobalStateValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices? IndicesValue { get; set; } - - private bool? PartialValue { get; set; } - - private string? RenamePatternValue { get; set; } - - private string? RenameReplacementValue { get; set; } - - public SnapshotRestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? indexSettings) - { - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = null; - IndexSettingsValue = indexSettings; - return Self; - } - - public SnapshotRestoreRequestDescriptor IndexSettings(IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexSettingsValue = null; - IndexSettingsDescriptorAction = null; - IndexSettingsDescriptor = descriptor; - return Self; - } - - public SnapshotRestoreRequestDescriptor IndexSettings(Action configure) - { - IndexSettingsValue = null; - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = configure; - return Self; - } - - public SnapshotRestoreRequestDescriptor IgnoreIndexSettings(IEnumerable? ignoreIndexSettings) - { - IgnoreIndexSettingsValue = ignoreIndexSettings; - return Self; - } - - public SnapshotRestoreRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public SnapshotRestoreRequestDescriptor IncludeAliases(bool? includeAliases = true) - { - IncludeAliasesValue = includeAliases; - return Self; - } - - public SnapshotRestoreRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public SnapshotRestoreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public SnapshotRestoreRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - public SnapshotRestoreRequestDescriptor RenamePattern(string? renamePattern) - { - RenamePatternValue = renamePattern; - return Self; - } - - public SnapshotRestoreRequestDescriptor RenameReplacement(string? renameReplacement) - { - RenameReplacementValue = renameReplacement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexSettingsDescriptor is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsDescriptor, options); - } - else if (IndexSettingsDescriptorAction is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, new IndexManagement.IndexSettingsDescriptor(IndexSettingsDescriptorAction), options); - } - else if (IndexSettingsValue is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsValue, options); - } - - if (IgnoreIndexSettingsValue is not null) - { - writer.WritePropertyName("ignore_index_settings"); - JsonSerializer.Serialize(writer, IgnoreIndexSettingsValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeAliasesValue.HasValue) - { - writer.WritePropertyName("include_aliases"); - writer.WriteBooleanValue(IncludeAliasesValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - if (!string.IsNullOrEmpty(RenamePatternValue)) - { - writer.WritePropertyName("rename_pattern"); - writer.WriteStringValue(RenamePatternValue); - } - - if (!string.IsNullOrEmpty(RenameReplacementValue)) - { - writer.WritePropertyName("rename_replacement"); - writer.WriteStringValue(RenameReplacementValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreResponse.g.cs deleted file mode 100644 index e32921c29f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotRestoreResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotRestoreResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotRestore Snapshot { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs deleted file mode 100644 index 154a5d31a9f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotStatusRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class SnapshotStatusRequest : PlainRequestBase - { - public SnapshotStatusRequest() - { - } - - public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Name? repository) : base(r => r.Optional("repository", repository)) - { - } - - public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot) : base(r => r.Optional("repository", repository).Optional("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class SnapshotStatusRequestDescriptor : RequestDescriptorBase - { - internal SnapshotStatusRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotStatusRequestDescriptor() - { - } - - public SnapshotStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot) : base(r => r.Optional("repository", repository).Optional("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotStatus; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public SnapshotStatusRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SnapshotStatusRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotStatusRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name? repository) - { - RouteValues.Optional("repository", repository); - return Self; - } - - public SnapshotStatusRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Names? snapshot) - { - RouteValues.Optional("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs deleted file mode 100644 index cc13a313c77..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotStatusResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("snapshots")] - public IReadOnlyCollection Snapshots { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryRequest.g.cs deleted file mode 100644 index 95a177430fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed class SnapshotVerifyRepositoryRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotVerifyRepositoryRequest : PlainRequestBase - { - public SnapshotVerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotVerifyRepository; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class SnapshotVerifyRepositoryRequestDescriptor : RequestDescriptorBase - { - internal SnapshotVerifyRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public SnapshotVerifyRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Name repository) : base(r => r.Required("repository", repository)) - { - } - - internal SnapshotVerifyRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotVerifyRepository; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public SnapshotVerifyRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public SnapshotVerifyRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public SnapshotVerifyRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryResponse.g.cs deleted file mode 100644 index 538b4c82988..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotVerifyRepositoryResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotVerifyRepositoryResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs deleted file mode 100644 index aeb082a16cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ssl -{ - public sealed class SslCertificatesRequestParameters : RequestParameters - { - } - - public sealed partial class SslCertificatesRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityCertificates; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - } - - public sealed partial class SslCertificatesRequestDescriptor : RequestDescriptorBase - { - internal SslCertificatesRequestDescriptor(Action configure) => configure.Invoke(this); - public SslCertificatesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.SecurityCertificates; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.g.cs deleted file mode 100644 index 66ccd36a3fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ssl/SslCertificatesResponse.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ssl -{ - public sealed partial class SslCertificatesResponse : ElasticsearchResponseBase - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformRequest.g.cs deleted file mode 100644 index 67989431f5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformDeleteTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformDeleteTransformRequest : PlainRequestBase - { - public TransformDeleteTransformRequest(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementDeleteTransform; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformDeleteTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformDeleteTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformDeleteTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformDeleteTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementDeleteTransform; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public TransformDeleteTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public TransformDeleteTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformDeleteTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformResponse.g.cs deleted file mode 100644 index 0557977d465..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformDeleteTransformResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformDeleteTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformRequest.g.cs deleted file mode 100644 index eda52ba9ce4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformRequest.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformGetTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - } - - public sealed partial class TransformGetTransformRequest : PlainRequestBase - { - public TransformGetTransformRequest() - { - } - - public TransformGetTransformRequest(Elastic.Clients.Elasticsearch.Names? transform_id) : base(r => r.Optional("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementGetTransform; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - } - - public sealed partial class TransformGetTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformGetTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformGetTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementGetTransform; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public TransformGetTransformRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public TransformGetTransformRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public TransformGetTransformRequestDescriptor From(int? from) => Qs("from", from); - public TransformGetTransformRequestDescriptor Size(int? size) => Qs("size", size); - public TransformGetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Names? transform_id) - { - RouteValues.Optional("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformResponse.g.cs deleted file mode 100644 index 23e430c579f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformGetTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("transforms")] - public IReadOnlyCollection Transforms { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsRequest.g.cs deleted file mode 100644 index 8e8b868d179..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsRequest.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformGetTransformStatsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public long? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public long? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class TransformGetTransformStatsRequest : PlainRequestBase - { - public TransformGetTransformStatsRequest(Elastic.Clients.Elasticsearch.Names transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementGetTransformStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public long? From { get => Q("from"); set => Q("from", value); } - - [JsonIgnore] - public long? Size { get => Q("size"); set => Q("size", value); } - } - - public sealed partial class TransformGetTransformStatsRequestDescriptor : RequestDescriptorBase - { - internal TransformGetTransformStatsRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformGetTransformStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Names transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformGetTransformStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementGetTransformStats; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public TransformGetTransformStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public TransformGetTransformStatsRequestDescriptor From(long? from) => Qs("from", from); - public TransformGetTransformStatsRequestDescriptor Size(long? size) => Qs("size", size); - public TransformGetTransformStatsRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Names transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsResponse.g.cs deleted file mode 100644 index 1c9acd5d68e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformGetTransformStatsResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformGetTransformStatsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("transforms")] - public IReadOnlyCollection Transforms { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformRequest.g.cs deleted file mode 100644 index 32165f27972..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformRequest.g.cs +++ /dev/null @@ -1,834 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformPreviewTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformPreviewTransformRequest : PlainRequestBase - { - public TransformPreviewTransformRequest() - { - } - - public TransformPreviewTransformRequest(Elastic.Clients.Elasticsearch.Id? transform_id) : base(r => r.Optional("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPreviewTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Destination? Dest { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - [JsonInclude] - [JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.TransformManagement.Pivot? Pivot { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.TransformManagement.Source? Source { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.TransformManagement.Settings? Settings { get; set; } - - [JsonInclude] - [JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? Sync { get; set; } - - [JsonInclude] - [JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicy { get; set; } - - [JsonInclude] - [JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; set; } - } - - public sealed partial class TransformPreviewTransformRequestDescriptor : RequestDescriptorBase, TransformPreviewTransformRequestParameters> - { - internal TransformPreviewTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - public TransformPreviewTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPreviewTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public TransformPreviewTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformPreviewTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id? transform_id) - { - RouteValues.Optional("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.Latest? LatestValue { get; set; } - - private LatestDescriptor LatestDescriptor { get; set; } - - private Action> LatestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action> RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source? SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action> SyncDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination? DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Pivot? PivotValue { get; set; } - - private PivotDescriptor PivotDescriptor { get; set; } - - private Action PivotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformPreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Latest(LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Latest(Action> configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class TransformPreviewTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformPreviewTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformPreviewTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPreviewTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public TransformPreviewTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformPreviewTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id? transform_id) - { - RouteValues.Optional("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.Latest? LatestValue { get; set; } - - private LatestDescriptor LatestDescriptor { get; set; } - - private Action LatestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source? SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action SyncDescriptorAction { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination? DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Pivot? PivotValue { get; set; } - - private PivotDescriptor PivotDescriptor { get; set; } - - private Action PivotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformPreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Latest(LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Latest(Action configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformPreviewTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformResponse.g.cs deleted file mode 100644 index d562af3720b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPreviewTransformResponse.g.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformPreviewTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("generated_dest_index")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexState GeneratedDestIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("preview")] - public IReadOnlyCollection Preview { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformRequest.g.cs deleted file mode 100644 index 340c39c0687..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformRequest.g.cs +++ /dev/null @@ -1,878 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformPutTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformPutTransformRequest : PlainRequestBase - { - public TransformPutTransformRequest(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPutTransform; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Destination Dest { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - [JsonInclude] - [JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; set; } - - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; set; } - - [JsonInclude] - [JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.TransformManagement.Pivot? Pivot { get; set; } - - [JsonInclude] - [JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicy { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.TransformManagement.Settings? Settings { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; set; } - - [JsonInclude] - [JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? Sync { get; set; } - } - - public sealed partial class TransformPutTransformRequestDescriptor : RequestDescriptorBase, TransformPutTransformRequestParameters> - { - internal TransformPutTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - public TransformPutTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformPutTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPutTransform; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public TransformPutTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public TransformPutTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformPutTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.Latest? LatestValue { get; set; } - - private LatestDescriptor LatestDescriptor { get; set; } - - private Action> LatestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action> RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action> SyncDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Pivot? PivotValue { get; set; } - - private PivotDescriptor PivotDescriptor { get; set; } - - private Action PivotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformPutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public TransformPutTransformRequestDescriptor Latest(LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Latest(Action> configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TransformPutTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class TransformPutTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformPutTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformPutTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformPutTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementPutTransform; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => true; - public TransformPutTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public TransformPutTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformPutTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.Latest? LatestValue { get; set; } - - private LatestDescriptor LatestDescriptor { get; set; } - - private Action LatestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action SyncDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Pivot? PivotValue { get; set; } - - private PivotDescriptor PivotDescriptor { get; set; } - - private Action PivotDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformPutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public TransformPutTransformRequestDescriptor Latest(LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Latest(Action configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TransformPutTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformPutTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformResponse.g.cs deleted file mode 100644 index d9c21fe8a68..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformPutTransformResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformPutTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformRequest.g.cs deleted file mode 100644 index ee4ab32f667..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformRequest.g.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformResetTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class TransformResetTransformRequest : PlainRequestBase - { - public TransformResetTransformRequest(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementResetTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - } - - public sealed partial class TransformResetTransformRequestDescriptor : RequestDescriptorBase, TransformResetTransformRequestParameters> - { - internal TransformResetTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - public TransformResetTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformResetTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementResetTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TransformResetTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public TransformResetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class TransformResetTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformResetTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformResetTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformResetTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementResetTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TransformResetTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public TransformResetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformResponse.g.cs deleted file mode 100644 index 7a87e183cdf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformResetTransformResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformResetTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformRequest.g.cs deleted file mode 100644 index b5f7d7e2ef9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformRequest.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformStartTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformStartTransformRequest : PlainRequestBase - { - public TransformStartTransformRequest(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementStartTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformStartTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformStartTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformStartTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformStartTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementStartTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TransformStartTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformStartTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformResponse.g.cs deleted file mode 100644 index 01185adf1d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStartTransformResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformStartTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformRequest.g.cs deleted file mode 100644 index 809a671a1fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformRequest.g.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformStopTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCheckpoint { get => Q("wait_for_checkpoint"); set => Q("wait_for_checkpoint", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class TransformStopTransformRequest : PlainRequestBase - { - public TransformStopTransformRequest(Elastic.Clients.Elasticsearch.Name transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementStopTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonIgnore] - public bool? WaitForCheckpoint { get => Q("wait_for_checkpoint"); set => Q("wait_for_checkpoint", value); } - - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - } - - public sealed partial class TransformStopTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformStopTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformStopTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Name transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformStopTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementStopTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TransformStopTransformRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public TransformStopTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public TransformStopTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformStopTransformRequestDescriptor WaitForCheckpoint(bool? waitForCheckpoint = true) => Qs("wait_for_checkpoint", waitForCheckpoint); - public TransformStopTransformRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public TransformStopTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Name transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformResponse.g.cs deleted file mode 100644 index 8b8d2166e3e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformStopTransformResponse.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformStopTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformRequest.g.cs deleted file mode 100644 index 4174cca50e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformRequest.g.cs +++ /dev/null @@ -1,686 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformUpdateTransformRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformUpdateTransformRequest : PlainRequestBase - { - public TransformUpdateTransformRequest(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementUpdateTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Destination? Dest { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.TransformManagement.Source? Source { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.TransformManagement.Settings? Settings { get; set; } - - [JsonInclude] - [JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? Sync { get; set; } - - [JsonInclude] - [JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicy { get; set; } - } - - public sealed partial class TransformUpdateTransformRequestDescriptor : RequestDescriptorBase, TransformUpdateTransformRequestParameters> - { - internal TransformUpdateTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - public TransformUpdateTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformUpdateTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementUpdateTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public TransformUpdateTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public TransformUpdateTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformUpdateTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action> RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source? SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action> SyncDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination? DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TransformUpdateTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class TransformUpdateTransformRequestDescriptor : RequestDescriptorBase - { - internal TransformUpdateTransformRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformUpdateTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transform_id) : base(r => r.Required("transform_id", transform_id)) - { - } - - internal TransformUpdateTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementUpdateTransform; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => true; - public TransformUpdateTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public TransformUpdateTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public TransformUpdateTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transform_id) - { - RouteValues.Required("transform_id", transform_id); - return Self; - } - - private Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicyValue { get; set; } - - private RetentionPolicyContainerDescriptor RetentionPolicyDescriptor { get; set; } - - private Action RetentionPolicyDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Source? SourceValue { get; set; } - - private SourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? SyncValue { get; set; } - - private SyncContainerDescriptor SyncDescriptor { get; set; } - - private Action SyncDescriptorAction { get; set; } - - private Dictionary? MetaValue { get; set; } - - private string? DescriptionValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Destination? DestValue { get; set; } - - private DestinationDescriptor DestDescriptor { get; set; } - - private Action DestDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.TransformManagement.Settings? SettingsValue { get; set; } - - private SettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(RetentionPolicyContainerDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(SyncContainerDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TransformUpdateTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public TransformUpdateTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new RetentionPolicyContainerDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new SyncContainerDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformResponse.g.cs deleted file mode 100644 index 9435142337f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpdateTransformResponse.g.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformUpdateTransformResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.TransformAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; init; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Destination Dest { get; init; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; init; } - - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; init; } - - [JsonInclude] - [JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.TransformManagement.Pivot? Pivot { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicy { get; init; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.TransformManagement.Settings Settings { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Source Source { get; init; } - - [JsonInclude] - [JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? Sync { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsRequest.g.cs deleted file mode 100644 index 05ca1bc4f7e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed class TransformUpgradeTransformsRequestParameters : RequestParameters - { - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformUpgradeTransformsRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementUpgradeTransforms; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - } - - public sealed partial class TransformUpgradeTransformsRequestDescriptor : RequestDescriptorBase - { - internal TransformUpgradeTransformsRequestDescriptor(Action configure) => configure.Invoke(this); - public TransformUpgradeTransformsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.TransformManagementUpgradeTransforms; - protected override HttpMethod HttpMethod => HttpMethod.POST; - protected override bool SupportsBody => false; - public TransformUpgradeTransformsRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public TransformUpgradeTransformsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsResponse.g.cs deleted file mode 100644 index ad0aae14224..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/TransformUpgradeTransformsResponse.g.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformUpgradeTransformsResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("needs_update")] - public int NeedsUpdate { get; init; } - - [JsonInclude] - [JsonPropertyName("no_action")] - public int NoAction { get; init; } - - [JsonInclude] - [JsonPropertyName("updated")] - public int Updated { get; init; } - } -} \ 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 deleted file mode 100644 index c93502237d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed class XpackInfoRequestParameters : RequestParameters - { - [JsonIgnore] - public IEnumerable? Categories { get => Q?>("categories"); set => Q("categories", value); } - - [JsonIgnore] - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - } - - public sealed partial class XpackInfoRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public IEnumerable? Categories { get => Q?>("categories"); set => Q("categories", value); } - - [JsonIgnore] - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - } - - public sealed partial class XpackInfoRequestDescriptor : RequestDescriptorBase - { - internal XpackInfoRequestDescriptor(Action configure) => configure.Invoke(this); - public XpackInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackInfo; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise); - public XpackInfoRequestDescriptor Categories(IEnumerable? categories) => Qs("categories", categories); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs deleted file mode 100644 index e68d5102b80..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoResponse.g.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class XpackInfoResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("build")] - public Elastic.Clients.Elasticsearch.Xpack.BuildInformation Build { get; init; } - - [JsonInclude] - [JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Xpack.Features Features { get; init; } - - [JsonInclude] - [JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.Xpack.MinimalLicenseInformation License { get; init; } - - [JsonInclude] - [JsonPropertyName("tagline")] - public string Tagline { get; init; } - } -} \ 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 deleted file mode 100644 index 5153eef3eff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed class XpackUsageRequestParameters : RequestParameters - { - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class XpackUsageRequest : PlainRequestBase - { - internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackUsage; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - } - - public sealed partial class XpackUsageRequestDescriptor : RequestDescriptorBase - { - internal XpackUsageRequestDescriptor(Action configure) => configure.Invoke(this); - public XpackUsageRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.XpackUsage; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override bool SupportsBody => false; - public XpackUsageRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs deleted file mode 100644 index f62f7aa1804..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageResponse.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class XpackUsageResponse : ElasticsearchResponseBase - { - [JsonInclude] - [JsonPropertyName("aggregate_metric")] - public Elastic.Clients.Elasticsearch.Xpack.Base AggregateMetric { get; init; } - - [JsonInclude] - [JsonPropertyName("analytics")] - public Elastic.Clients.Elasticsearch.Xpack.Analytics Analytics { get; init; } - - [JsonInclude] - [JsonPropertyName("archive")] - public Elastic.Clients.Elasticsearch.Xpack.Archive Archive { get; init; } - - [JsonInclude] - [JsonPropertyName("ccr")] - public Elastic.Clients.Elasticsearch.Xpack.Ccr Ccr { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame")] - public Elastic.Clients.Elasticsearch.Xpack.Base? DataFrame { get; init; } - - [JsonInclude] - [JsonPropertyName("data_science")] - public Elastic.Clients.Elasticsearch.Xpack.Base? DataScience { get; init; } - - [JsonInclude] - [JsonPropertyName("data_streams")] - public Elastic.Clients.Elasticsearch.Xpack.DataStreams? DataStreams { get; init; } - - [JsonInclude] - [JsonPropertyName("data_tiers")] - public Elastic.Clients.Elasticsearch.Xpack.DataTiers DataTiers { get; init; } - - [JsonInclude] - [JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Xpack.Base? Enrich { get; init; } - - [JsonInclude] - [JsonPropertyName("eql")] - public Elastic.Clients.Elasticsearch.Xpack.Eql Eql { get; init; } - - [JsonInclude] - [JsonPropertyName("flattened")] - public Elastic.Clients.Elasticsearch.Xpack.Flattened? Flattened { get; init; } - - [JsonInclude] - [JsonPropertyName("frozen_indices")] - public Elastic.Clients.Elasticsearch.Xpack.FrozenIndices FrozenIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("graph")] - public Elastic.Clients.Elasticsearch.Xpack.Base Graph { get; init; } - - [JsonInclude] - [JsonPropertyName("ilm")] - public Elastic.Clients.Elasticsearch.Xpack.Ilm Ilm { get; init; } - - [JsonInclude] - [JsonPropertyName("logstash")] - public Elastic.Clients.Elasticsearch.Xpack.Base Logstash { get; init; } - - [JsonInclude] - [JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Xpack.MachineLearning Ml { get; init; } - - [JsonInclude] - [JsonPropertyName("monitoring")] - public Elastic.Clients.Elasticsearch.Xpack.Monitoring Monitoring { get; init; } - - [JsonInclude] - [JsonPropertyName("rollup")] - public Elastic.Clients.Elasticsearch.Xpack.Base Rollup { get; init; } - - [JsonInclude] - [JsonPropertyName("runtime_fields")] - public Elastic.Clients.Elasticsearch.Xpack.RuntimeFieldTypes? RuntimeFields { get; init; } - - [JsonInclude] - [JsonPropertyName("searchable_snapshots")] - public Elastic.Clients.Elasticsearch.Xpack.SearchableSnapshots SearchableSnapshots { get; init; } - - [JsonInclude] - [JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Xpack.Security Security { get; init; } - - [JsonInclude] - [JsonPropertyName("slm")] - public Elastic.Clients.Elasticsearch.Xpack.Slm Slm { get; init; } - - [JsonInclude] - [JsonPropertyName("spatial")] - public Elastic.Clients.Elasticsearch.Xpack.Base Spatial { get; init; } - - [JsonInclude] - [JsonPropertyName("sql")] - public Elastic.Clients.Elasticsearch.Xpack.Sql Sql { get; init; } - - [JsonInclude] - [JsonPropertyName("transform")] - public Elastic.Clients.Elasticsearch.Xpack.Base Transform { get; init; } - - [JsonInclude] - [JsonPropertyName("vectors")] - public Elastic.Clients.Elasticsearch.Xpack.Vector? Vectors { get; init; } - - [JsonInclude] - [JsonPropertyName("voting_only")] - public Elastic.Clients.Elasticsearch.Xpack.Base VotingOnly { get; init; } - - [JsonInclude] - [JsonPropertyName("watcher")] - public Elastic.Clients.Elasticsearch.Xpack.Watcher Watcher { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Autoscaling.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Autoscaling.g.cs deleted file mode 100644 index 45fde8a02f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Autoscaling.g.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public class AutoscalingNamespace : NamespacedClientProxy - { - internal AutoscalingNamespace(ElasticsearchClient client) : base(client) - { - } - - public AutoscalingDeleteAutoscalingPolicyResponse DeleteAutoscalingPolicy(AutoscalingDeleteAutoscalingPolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteAutoscalingPolicyAsync(AutoscalingDeleteAutoscalingPolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public AutoscalingDeleteAutoscalingPolicyResponse DeleteAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new AutoscalingDeleteAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AutoscalingDeleteAutoscalingPolicyResponse DeleteAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new AutoscalingDeleteAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingDeleteAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingDeleteAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public AutoscalingGetAutoscalingCapacityResponse GetAutoscalingCapacity(AutoscalingGetAutoscalingCapacityRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAutoscalingCapacityAsync(AutoscalingGetAutoscalingCapacityRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public AutoscalingGetAutoscalingCapacityResponse GetAutoscalingCapacity() - { - var descriptor = new AutoscalingGetAutoscalingCapacityRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AutoscalingGetAutoscalingCapacityResponse GetAutoscalingCapacity(Action configureRequest) - { - var descriptor = new AutoscalingGetAutoscalingCapacityRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAutoscalingCapacityAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingGetAutoscalingCapacityRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetAutoscalingCapacityAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingGetAutoscalingCapacityRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public AutoscalingGetAutoscalingPolicyResponse GetAutoscalingPolicy(AutoscalingGetAutoscalingPolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAutoscalingPolicyAsync(AutoscalingGetAutoscalingPolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public AutoscalingGetAutoscalingPolicyResponse GetAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new AutoscalingGetAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AutoscalingGetAutoscalingPolicyResponse GetAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new AutoscalingGetAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingGetAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingGetAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public AutoscalingPutAutoscalingPolicyResponse PutAutoscalingPolicy(AutoscalingPutAutoscalingPolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutAutoscalingPolicyAsync(AutoscalingPutAutoscalingPolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public AutoscalingPutAutoscalingPolicyResponse PutAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new AutoscalingPutAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public AutoscalingPutAutoscalingPolicyResponse PutAutoscalingPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new AutoscalingPutAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingPutAutoscalingPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutAutoscalingPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AutoscalingPutAutoscalingPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs deleted file mode 100644 index 12d43be14d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ /dev/null @@ -1,839 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public class CcrNamespace : NamespacedClientProxy - { - internal CcrNamespace(ElasticsearchClient client) : base(client) - { - } - - public CcrDeleteAutoFollowPatternResponse DeleteAutoFollowPattern(CcrDeleteAutoFollowPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteAutoFollowPatternAsync(CcrDeleteAutoFollowPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrDeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new CcrDeleteAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrDeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new CcrDeleteAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CcrDeleteAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrDeleteAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrFollowInfoResponse FollowInfo(CcrFollowInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task FollowInfoAsync(CcrFollowInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrFollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrFollowInfoResponse>(descriptor); - } - - public Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowInfoRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrFollowInfoResponse>(descriptor); - } - - public CcrFollowResponse Follow(CcrFollowRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task FollowAsync(CcrFollowRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrFollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CcrFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new CcrFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowResponse Follow() - { - var descriptor = new CcrFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, CcrFollowResponse>(descriptor); - } - - public CcrFollowResponse Follow(Action> configureRequest) - { - var descriptor = new CcrFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrFollowResponse>(descriptor); - } - - public CcrFollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new CcrFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrFollowResponse>(descriptor); - } - - public Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrFollowResponse>(descriptor); - } - - public Task FollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrFollowResponse>(descriptor); - } - - public Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrFollowResponse>(descriptor); - } - - public CcrFollowStatsResponse FollowStats(CcrFollowStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task FollowStatsAsync(CcrFollowStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrFollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrFollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrFollowStatsResponse>(descriptor); - } - - public Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrFollowStatsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrFollowStatsResponse>(descriptor); - } - - public CcrForgetFollowerResponse ForgetFollower(CcrForgetFollowerRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ForgetFollowerAsync(CcrForgetFollowerRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrForgetFollowerResponse ForgetFollower() - { - var descriptor = new CcrForgetFollowerRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, CcrForgetFollowerResponse>(descriptor); - } - - public CcrForgetFollowerResponse ForgetFollower(Action> configureRequest) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrForgetFollowerResponse>(descriptor); - } - - public CcrForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrForgetFollowerResponse>(descriptor); - } - - public Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ForgetFollowerAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrForgetFollowerResponse>(descriptor); - } - - public Task ForgetFollowerAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrForgetFollowerResponse>(descriptor); - } - - public Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrForgetFollowerRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrForgetFollowerResponse>(descriptor); - } - - public CcrGetAutoFollowPatternResponse GetAutoFollowPattern(CcrGetAutoFollowPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAutoFollowPatternAsync(CcrGetAutoFollowPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrGetAutoFollowPatternResponse GetAutoFollowPattern() - { - var descriptor = new CcrGetAutoFollowPatternRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrGetAutoFollowPatternResponse GetAutoFollowPattern(Action configureRequest) - { - var descriptor = new CcrGetAutoFollowPatternRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAutoFollowPatternAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrGetAutoFollowPatternRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetAutoFollowPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrGetAutoFollowPatternRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrPauseAutoFollowPatternResponse PauseAutoFollowPattern(CcrPauseAutoFollowPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PauseAutoFollowPatternAsync(CcrPauseAutoFollowPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrPauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrPauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrPauseFollowResponse PauseFollow(CcrPauseFollowRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PauseFollowAsync(CcrPauseFollowRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrPauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrPauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrPauseFollowResponse PauseFollow() - { - var descriptor = new CcrPauseFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, CcrPauseFollowResponse>(descriptor); - } - - public CcrPauseFollowResponse PauseFollow(Action> configureRequest) - { - var descriptor = new CcrPauseFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrPauseFollowResponse>(descriptor); - } - - public CcrPauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrPauseFollowResponse>(descriptor); - } - - public Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PauseFollowAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrPauseFollowResponse>(descriptor); - } - - public Task PauseFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrPauseFollowResponse>(descriptor); - } - - public Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPauseFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrPauseFollowResponse>(descriptor); - } - - public CcrPutAutoFollowPatternResponse PutAutoFollowPattern(CcrPutAutoFollowPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutAutoFollowPatternAsync(CcrPutAutoFollowPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrPutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new CcrPutAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrPutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new CcrPutAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPutAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrPutAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrResumeAutoFollowPatternResponse ResumeAutoFollowPattern(CcrResumeAutoFollowPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ResumeAutoFollowPatternAsync(CcrResumeAutoFollowPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new CcrResumeAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new CcrResumeAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeAutoFollowPatternRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeAutoFollowPatternRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrResumeFollowResponse ResumeFollow(CcrResumeFollowRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ResumeFollowAsync(CcrResumeFollowRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrResumeFollowResponse ResumeFollow() - { - var descriptor = new CcrResumeFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, CcrResumeFollowResponse>(descriptor); - } - - public CcrResumeFollowResponse ResumeFollow(Action> configureRequest) - { - var descriptor = new CcrResumeFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrResumeFollowResponse>(descriptor); - } - - public CcrResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrResumeFollowResponse>(descriptor); - } - - public Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ResumeFollowAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeFollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrResumeFollowResponse>(descriptor); - } - - public Task ResumeFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeFollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrResumeFollowResponse>(descriptor); - } - - public Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrResumeFollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrResumeFollowResponse>(descriptor); - } - - public CcrStatsResponse Stats(CcrStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatsAsync(CcrStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrStatsResponse Stats() - { - var descriptor = new CcrStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrStatsResponse Stats(Action configureRequest) - { - var descriptor = new CcrStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public CcrUnfollowResponse Unfollow(CcrUnfollowRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UnfollowAsync(CcrUnfollowRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CcrUnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrUnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CcrUnfollowResponse Unfollow() - { - var descriptor = new CcrUnfollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, CcrUnfollowResponse>(descriptor); - } - - public CcrUnfollowResponse Unfollow(Action> configureRequest) - { - var descriptor = new CcrUnfollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrUnfollowResponse>(descriptor); - } - - public CcrUnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CcrUnfollowResponse>(descriptor); - } - - public Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UnfollowAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CcrUnfollowRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrUnfollowResponse>(descriptor); - } - - public Task UnfollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrUnfollowRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrUnfollowResponse>(descriptor); - } - - public Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CcrUnfollowRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CcrUnfollowResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 0daca87bf7e..52168d54ae0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -28,258 +28,6 @@ internal ClusterNamespace(ElasticsearchClient client) : base(client) { } - public ClusterAllocationExplainResponse AllocationExplain(ClusterAllocationExplainRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task AllocationExplainAsync(ClusterAllocationExplainRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterAllocationExplainResponse AllocationExplain() - { - var descriptor = new ClusterAllocationExplainRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterAllocationExplainResponse AllocationExplain(Action configureRequest) - { - var descriptor = new ClusterAllocationExplainRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task AllocationExplainAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterAllocationExplainRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterAllocationExplainRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterDeleteComponentTemplateResponse DeleteComponentTemplate(ClusterDeleteComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteComponentTemplateAsync(ClusterDeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterDeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new ClusterDeleteComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterDeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) - { - var descriptor = new ClusterDeleteComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterDeleteComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterDeleteComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterDeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(ClusterDeleteVotingConfigExclusionsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteVotingConfigExclusionsAsync(ClusterDeleteVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterDeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions() - { - var descriptor = new ClusterDeleteVotingConfigExclusionsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterDeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(Action configureRequest) - { - var descriptor = new ClusterDeleteVotingConfigExclusionsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterDeleteVotingConfigExclusionsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterDeleteVotingConfigExclusionsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterExistsComponentTemplateResponse ExistsComponentTemplate(ClusterExistsComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExistsComponentTemplateAsync(ClusterExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) - { - var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterGetComponentTemplateResponse GetComponentTemplate(ClusterGetComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetComponentTemplateAsync(ClusterGetComponentTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterGetComponentTemplateResponse GetComponentTemplate() - { - var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterGetComponentTemplateResponse GetComponentTemplate(Action configureRequest) - { - var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterGetComponentTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterGetSettingsResponse GetSettings(ClusterGetSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetSettingsAsync(ClusterGetSettingsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterGetSettingsResponse GetSettings() - { - var descriptor = new ClusterGetSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterGetSettingsResponse GetSettings(Action configureRequest) - { - var descriptor = new ClusterGetSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetSettingsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterGetSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterGetSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - public ClusterHealthResponse Health(ClusterHealthRequest request) { request.BeforeRequest(); @@ -337,373 +85,5 @@ public Task HealthAsync(Action, ClusterHealthResponse>(descriptor); } - - public ClusterPendingTasksResponse PendingTasks(ClusterPendingTasksRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PendingTasksAsync(ClusterPendingTasksRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterPendingTasksResponse PendingTasks() - { - var descriptor = new ClusterPendingTasksRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterPendingTasksResponse PendingTasks(Action configureRequest) - { - var descriptor = new ClusterPendingTasksRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PendingTasksAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPendingTasksRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPendingTasksRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterPostVotingConfigExclusionsResponse PostVotingConfigExclusions(ClusterPostVotingConfigExclusionsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PostVotingConfigExclusionsAsync(ClusterPostVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterPostVotingConfigExclusionsResponse PostVotingConfigExclusions() - { - var descriptor = new ClusterPostVotingConfigExclusionsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterPostVotingConfigExclusionsResponse PostVotingConfigExclusions(Action configureRequest) - { - var descriptor = new ClusterPostVotingConfigExclusionsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PostVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPostVotingConfigExclusionsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PostVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPostVotingConfigExclusionsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterPutComponentTemplateResponse PutComponentTemplate(ClusterPutComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutComponentTemplateAsync(ClusterPutComponentTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterPutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterPutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterPutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ClusterPutComponentTemplateResponse>(descriptor); - } - - public Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ClusterPutComponentTemplateResponse>(descriptor); - } - - public ClusterPutSettingsResponse PutSettings(ClusterPutSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutSettingsAsync(ClusterPutSettingsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterPutSettingsResponse PutSettings() - { - var descriptor = new ClusterPutSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterPutSettingsResponse PutSettings(Action configureRequest) - { - var descriptor = new ClusterPutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutSettingsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPutSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterPutSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterRemoteInfoResponse RemoteInfo(ClusterRemoteInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RemoteInfoAsync(ClusterRemoteInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterRemoteInfoResponse RemoteInfo() - { - var descriptor = new ClusterRemoteInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterRemoteInfoResponse RemoteInfo(Action configureRequest) - { - var descriptor = new ClusterRemoteInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task RemoteInfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterRemoteInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RemoteInfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterRemoteInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterRerouteResponse Reroute(ClusterRerouteRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RerouteAsync(ClusterRerouteRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterRerouteResponse Reroute() - { - var descriptor = new ClusterRerouteRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterRerouteResponse Reroute(Action configureRequest) - { - var descriptor = new ClusterRerouteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task RerouteAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterRerouteRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RerouteAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterRerouteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public ClusterStateResponse State(ClusterStateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StateAsync(ClusterStateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterStateResponse State() - { - var descriptor = new ClusterStateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterStateResponse State(Action configureRequest) - { - var descriptor = new ClusterStateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterStateResponse State(Action> configureRequest) - { - var descriptor = new ClusterStateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ClusterStateResponse>(descriptor); - } - - public Task StateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ClusterStateResponse>(descriptor); - } - - public ClusterStatsResponse Stats(ClusterStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public ClusterStatsResponse Stats() - { - var descriptor = new ClusterStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public ClusterStatsResponse Stats(Action configureRequest) - { - var descriptor = new ClusterStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs deleted file mode 100644 index 243bedd6936..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.DanglingIndices -{ - public class DanglingIndicesNamespace : NamespacedClientProxy - { - internal DanglingIndicesNamespace(ElasticsearchClient client) : base(client) - { - } - - public DanglingIndicesListDanglingIndicesResponse ListDanglingIndices(DanglingIndicesListDanglingIndicesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ListDanglingIndicesAsync(DanglingIndicesListDanglingIndicesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public DanglingIndicesListDanglingIndicesResponse ListDanglingIndices() - { - var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public DanglingIndicesListDanglingIndicesResponse ListDanglingIndices(Action configureRequest) - { - var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ListDanglingIndicesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ListDanglingIndicesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DanglingIndicesListDanglingIndicesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs deleted file mode 100644 index 57e4e7c5ab5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public class EnrichNamespace : NamespacedClientProxy - { - internal EnrichNamespace(ElasticsearchClient client) : base(client) - { - } - - public EnrichDeletePolicyResponse DeletePolicy(EnrichDeletePolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeletePolicyAsync(EnrichDeletePolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public EnrichDeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new EnrichDeletePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichDeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new EnrichDeletePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichDeletePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichDeletePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public EnrichExecutePolicyResponse ExecutePolicy(EnrichExecutePolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExecutePolicyAsync(EnrichExecutePolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public EnrichExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new EnrichExecutePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new EnrichExecutePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichExecutePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichExecutePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public EnrichGetPolicyResponse GetPolicy(EnrichGetPolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetPolicyAsync(EnrichGetPolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public EnrichGetPolicyResponse GetPolicy() - { - var descriptor = new EnrichGetPolicyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichGetPolicyResponse GetPolicy(Action configureRequest) - { - var descriptor = new EnrichGetPolicyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetPolicyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EnrichGetPolicyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetPolicyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichGetPolicyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public EnrichPutPolicyResponse PutPolicy(EnrichPutPolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutPolicyAsync(EnrichPutPolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public EnrichPutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichPutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichPutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, EnrichPutPolicyResponse>(descriptor); - } - - public Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichPutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EnrichPutPolicyResponse>(descriptor); - } - - public EnrichStatsResponse Stats(EnrichStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatsAsync(EnrichStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public EnrichStatsResponse Stats() - { - var descriptor = new EnrichStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public EnrichStatsResponse Stats(Action configureRequest) - { - var descriptor = new EnrichStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EnrichStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnrichStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs deleted file mode 100644 index e4b057eac4b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public class FeaturesNamespace : NamespacedClientProxy - { - internal FeaturesNamespace(ElasticsearchClient client) : base(client) - { - } - - public FeaturesGetFeaturesResponse GetFeatures(FeaturesGetFeaturesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetFeaturesAsync(FeaturesGetFeaturesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public FeaturesGetFeaturesResponse GetFeatures() - { - var descriptor = new FeaturesGetFeaturesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public FeaturesGetFeaturesResponse GetFeatures(Action configureRequest) - { - var descriptor = new FeaturesGetFeaturesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetFeaturesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FeaturesGetFeaturesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetFeaturesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FeaturesGetFeaturesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs deleted file mode 100644 index 3700a427935..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public class GraphNamespace : NamespacedClientProxy - { - internal GraphNamespace(ElasticsearchClient client) : base(client) - { - } - - public GraphExploreResponse Explore(GraphExploreRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExploreAsync(GraphExploreRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public GraphExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public GraphExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public GraphExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GraphExploreResponse>(descriptor); - } - - public Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GraphExploreRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GraphExploreResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs deleted file mode 100644 index 4d9b76e3294..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs +++ /dev/null @@ -1,677 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public class IlmNamespace : NamespacedClientProxy - { - internal IlmNamespace(ElasticsearchClient client) : base(client) - { - } - - public IlmDeleteLifecycleResponse DeleteLifecycle(IlmDeleteLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteLifecycleAsync(IlmDeleteLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy) - { - var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest) - { - var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, CancellationToken cancellationToken = default) - { - var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmDeleteLifecycleRequestDescriptor(policy); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmExplainLifecycleResponse ExplainLifecycle(IlmExplainLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExplainLifecycleAsync(IlmExplainLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmExplainLifecycleResponse ExplainLifecycle(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmExplainLifecycleResponse ExplainLifecycle(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmExplainLifecycleResponse ExplainLifecycle() - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, IlmExplainLifecycleResponse>(descriptor); - } - - public IlmExplainLifecycleResponse ExplainLifecycle(Action> configureRequest) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmExplainLifecycleResponse>(descriptor); - } - - public IlmExplainLifecycleResponse ExplainLifecycle(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmExplainLifecycleResponse>(descriptor); - } - - public Task ExplainLifecycleAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExplainLifecycleAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExplainLifecycleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmExplainLifecycleResponse>(descriptor); - } - - public Task ExplainLifecycleAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmExplainLifecycleResponse>(descriptor); - } - - public Task ExplainLifecycleAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmExplainLifecycleRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmExplainLifecycleResponse>(descriptor); - } - - public IlmGetLifecycleResponse GetLifecycle(IlmGetLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetLifecycleAsync(IlmGetLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmGetLifecycleResponse GetLifecycle() - { - var descriptor = new IlmGetLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmGetLifecycleResponse GetLifecycle(Action configureRequest) - { - var descriptor = new IlmGetLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetLifecycleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmGetLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmGetLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmGetStatusResponse GetStatus(IlmGetStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetStatusAsync(IlmGetStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmGetStatusResponse GetStatus() - { - var descriptor = new IlmGetStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmGetStatusResponse GetStatus(Action configureRequest) - { - var descriptor = new IlmGetStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetStatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmGetStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmGetStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmMigrateToDataTiersResponse MigrateToDataTiers(IlmMigrateToDataTiersRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task MigrateToDataTiersAsync(IlmMigrateToDataTiersRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmMigrateToDataTiersResponse MigrateToDataTiers() - { - var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmMigrateToDataTiersResponse MigrateToDataTiers(Action configureRequest) - { - var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task MigrateToDataTiersAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task MigrateToDataTiersAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmMigrateToDataTiersRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmMoveToStepResponse MoveToStep(IlmMoveToStepRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task MoveToStepAsync(IlmMoveToStepRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmMoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmMoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmMoveToStepResponse MoveToStep() - { - var descriptor = new IlmMoveToStepRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, IlmMoveToStepResponse>(descriptor); - } - - public IlmMoveToStepResponse MoveToStep(Action> configureRequest) - { - var descriptor = new IlmMoveToStepRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmMoveToStepResponse>(descriptor); - } - - public IlmMoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmMoveToStepResponse>(descriptor); - } - - public Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task MoveToStepAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmMoveToStepRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmMoveToStepResponse>(descriptor); - } - - public Task MoveToStepAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmMoveToStepRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmMoveToStepResponse>(descriptor); - } - - public Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmMoveToStepRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmMoveToStepResponse>(descriptor); - } - - public IlmPutLifecycleResponse PutLifecycle(IlmPutLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutLifecycleAsync(IlmPutLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmPutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policy) - { - var descriptor = new IlmPutLifecycleRequestDescriptor(policy); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmPutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest) - { - var descriptor = new IlmPutLifecycleRequestDescriptor(policy); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, CancellationToken cancellationToken = default) - { - var descriptor = new IlmPutLifecycleRequestDescriptor(policy); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmPutLifecycleRequestDescriptor(policy); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmRemovePolicyResponse RemovePolicy(IlmRemovePolicyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RemovePolicyAsync(IlmRemovePolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmRemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmRemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmRemovePolicyResponse RemovePolicy() - { - var descriptor = new IlmRemovePolicyRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, IlmRemovePolicyResponse>(descriptor); - } - - public IlmRemovePolicyResponse RemovePolicy(Action> configureRequest) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmRemovePolicyResponse>(descriptor); - } - - public IlmRemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmRemovePolicyResponse>(descriptor); - } - - public Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RemovePolicyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRemovePolicyResponse>(descriptor); - } - - public Task RemovePolicyAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRemovePolicyResponse>(descriptor); - } - - public Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRemovePolicyRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRemovePolicyResponse>(descriptor); - } - - public IlmRetryResponse Retry(IlmRetryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RetryAsync(IlmRetryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmRetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new IlmRetryRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmRetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new IlmRetryRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmRetryResponse Retry() - { - var descriptor = new IlmRetryRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequest, IlmRetryResponse>(descriptor); - } - - public IlmRetryResponse Retry(Action> configureRequest) - { - var descriptor = new IlmRetryRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmRetryResponse>(descriptor); - } - - public IlmRetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new IlmRetryRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IlmRetryResponse>(descriptor); - } - - public Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRetryRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRetryRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RetryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmRetryRequestDescriptor(typeof(TDocument)); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRetryResponse>(descriptor); - } - - public Task RetryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRetryRequestDescriptor(typeof(TDocument)); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRetryResponse>(descriptor); - } - - public Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmRetryRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IlmRetryResponse>(descriptor); - } - - public IlmStartResponse Start(IlmStartRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StartAsync(IlmStartRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmStartResponse Start() - { - var descriptor = new IlmStartRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmStartResponse Start(Action configureRequest) - { - var descriptor = new IlmStartRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StartAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmStartRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmStartRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IlmStopResponse Stop(IlmStopRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StopAsync(IlmStopRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IlmStopResponse Stop() - { - var descriptor = new IlmStopRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IlmStopResponse Stop(Action configureRequest) - { - var descriptor = new IlmStopRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StopAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IlmStopRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IlmStopRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs deleted file mode 100644 index f4215a16688..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ /dev/null @@ -1,347 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public class IngestNamespace : NamespacedClientProxy - { - internal IngestNamespace(ElasticsearchClient client) : base(client) - { - } - - public IngestDeletePipelineResponse DeletePipeline(IngestDeletePipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeletePipelineAsync(IngestDeletePipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IngestDeletePipelineResponse>(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IngestDeletePipelineResponse>(descriptor); - } - - public IngestGeoIpStatsResponse GeoIpStats(IngestGeoIpStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GeoIpStatsAsync(IngestGeoIpStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestGeoIpStatsResponse GeoIpStats() - { - var descriptor = new IngestGeoIpStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestGeoIpStatsResponse GeoIpStats(Action configureRequest) - { - var descriptor = new IngestGeoIpStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GeoIpStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IngestGeoIpStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestGeoIpStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IngestGetPipelineResponse GetPipeline(IngestGetPipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetPipelineAsync(IngestGetPipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestGetPipelineResponse GetPipeline() - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestGetPipelineResponse GetPipeline(Action configureRequest) - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestGetPipelineResponse GetPipeline(Action> configureRequest) - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IngestGetPipelineResponse>(descriptor); - } - - public Task GetPipelineAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestGetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IngestGetPipelineResponse>(descriptor); - } - - public IngestProcessorGrokResponse ProcessorGrok(IngestProcessorGrokRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ProcessorGrokAsync(IngestProcessorGrokRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestProcessorGrokResponse ProcessorGrok() - { - var descriptor = new IngestProcessorGrokRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestProcessorGrokResponse ProcessorGrok(Action configureRequest) - { - var descriptor = new IngestProcessorGrokRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ProcessorGrokAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IngestProcessorGrokRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestProcessorGrokRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public IngestPutPipelineResponse PutPipeline(IngestPutPipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutPipelineAsync(IngestPutPipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IngestPutPipelineResponse>(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IngestPutPipelineResponse>(descriptor); - } - - public IngestSimulateResponse Simulate(IngestSimulateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SimulateAsync(IngestSimulateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public IngestSimulateResponse Simulate() - { - var descriptor = new IngestSimulateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestSimulateResponse Simulate(Action configureRequest) - { - var descriptor = new IngestSimulateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public IngestSimulateResponse Simulate(Action> configureRequest) - { - var descriptor = new IngestSimulateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IngestSimulateResponse>(descriptor); - } - - public Task SimulateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IngestSimulateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SimulateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestSimulateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SimulateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IngestSimulateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IngestSimulateResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs deleted file mode 100644 index 3729b62aec2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs +++ /dev/null @@ -1,325 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public class LicenseNamespace : NamespacedClientProxy - { - internal LicenseNamespace(ElasticsearchClient client) : base(client) - { - } - - public DeleteLicenseResponse Delete(DeleteLicenseRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteAsync(DeleteLicenseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public DeleteLicenseResponse Delete() - { - var descriptor = new DeleteLicenseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public DeleteLicenseResponse Delete(Action configureRequest) - { - var descriptor = new DeleteLicenseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DeleteLicenseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteLicenseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public GetLicenseResponse Get(GetLicenseRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAsync(GetLicenseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public GetLicenseResponse Get() - { - var descriptor = new GetLicenseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public GetLicenseResponse Get(Action configureRequest) - { - var descriptor = new GetLicenseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetLicenseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetLicenseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public LicenseGetBasicStatusResponse GetBasicStatus(LicenseGetBasicStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetBasicStatusAsync(LicenseGetBasicStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LicenseGetBasicStatusResponse GetBasicStatus() - { - var descriptor = new LicenseGetBasicStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LicenseGetBasicStatusResponse GetBasicStatus(Action configureRequest) - { - var descriptor = new LicenseGetBasicStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetBasicStatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new LicenseGetBasicStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetBasicStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LicenseGetBasicStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public LicenseGetTrialStatusResponse GetTrialStatus(LicenseGetTrialStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetTrialStatusAsync(LicenseGetTrialStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LicenseGetTrialStatusResponse GetTrialStatus() - { - var descriptor = new LicenseGetTrialStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LicenseGetTrialStatusResponse GetTrialStatus(Action configureRequest) - { - var descriptor = new LicenseGetTrialStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetTrialStatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new LicenseGetTrialStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetTrialStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LicenseGetTrialStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public LicensePostResponse Post(LicensePostRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PostAsync(LicensePostRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LicensePostResponse Post() - { - var descriptor = new LicensePostRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LicensePostResponse Post(Action configureRequest) - { - var descriptor = new LicensePostRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PostAsync(CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PostAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public LicensePostStartBasicResponse PostStartBasic(LicensePostStartBasicRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PostStartBasicAsync(LicensePostStartBasicRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LicensePostStartBasicResponse PostStartBasic() - { - var descriptor = new LicensePostStartBasicRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LicensePostStartBasicResponse PostStartBasic(Action configureRequest) - { - var descriptor = new LicensePostStartBasicRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PostStartBasicAsync(CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostStartBasicRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PostStartBasicAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostStartBasicRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public LicensePostStartTrialResponse PostStartTrial(LicensePostStartTrialRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PostStartTrialAsync(LicensePostStartTrialRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LicensePostStartTrialResponse PostStartTrial() - { - var descriptor = new LicensePostStartTrialRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LicensePostStartTrialResponse PostStartTrial(Action configureRequest) - { - var descriptor = new LicensePostStartTrialRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PostStartTrialAsync(CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostStartTrialRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PostStartTrialAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LicensePostStartTrialRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs deleted file mode 100644 index 552aae3eb2c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ /dev/null @@ -1,2719 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public class MlNamespace : NamespacedClientProxy - { - internal MlNamespace(ElasticsearchClient client) : base(client) - { - } - - public MlCloseJobResponse CloseJob(MlCloseJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CloseJobAsync(MlCloseJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlCloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlCloseJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlCloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlCloseJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlCloseJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlCloseJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteCalendarEventResponse DeleteCalendarEvent(MlDeleteCalendarEventRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteCalendarEventAsync(MlDeleteCalendarEventRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id) - { - var descriptor = new MlDeleteCalendarEventRequestDescriptor(calendar_id, event_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id, Action configureRequest) - { - var descriptor = new MlDeleteCalendarEventRequestDescriptor(calendar_id, event_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteCalendarEventRequestDescriptor(calendar_id, event_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id event_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteCalendarEventRequestDescriptor(calendar_id, event_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteCalendarResponse DeleteCalendar(MlDeleteCalendarRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteCalendarAsync(MlDeleteCalendarRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendar_id) - { - var descriptor = new MlDeleteCalendarRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest) - { - var descriptor = new MlDeleteCalendarRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendar_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteCalendarRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteCalendarRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteDatafeedResponse DeleteDatafeed(MlDeleteDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteDatafeedAsync(MlDeleteDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - var descriptor = new MlDeleteDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest) - { - var descriptor = new MlDeleteDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(MlDeleteDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteDataFrameAnalyticsAsync(MlDeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlDeleteDataFrameAnalyticsResponse>(descriptor); - } - - public Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlDeleteDataFrameAnalyticsResponse>(descriptor); - } - - public MlDeleteExpiredDataResponse DeleteExpiredData(MlDeleteExpiredDataRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteExpiredDataAsync(MlDeleteExpiredDataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteExpiredDataResponse DeleteExpiredData() - { - var descriptor = new MlDeleteExpiredDataRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteExpiredDataResponse DeleteExpiredData(Action configureRequest) - { - var descriptor = new MlDeleteExpiredDataRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteExpiredDataAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteExpiredDataRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteExpiredDataAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteExpiredDataRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteFilterResponse DeleteFilter(MlDeleteFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteFilterAsync(MlDeleteFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.Id filter_id) - { - var descriptor = new MlDeleteFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest) - { - var descriptor = new MlDeleteFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteForecastResponse DeleteForecast(MlDeleteForecastRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteForecastAsync(MlDeleteForecastRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlDeleteForecastRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlDeleteForecastRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteForecastRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteForecastRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteJobResponse DeleteJob(MlDeleteJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteJobAsync(MlDeleteJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlDeleteJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlDeleteJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteModelSnapshotResponse DeleteModelSnapshot(MlDeleteModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteModelSnapshotAsync(MlDeleteModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) - { - var descriptor = new MlDeleteModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest) - { - var descriptor = new MlDeleteModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteTrainedModelAliasResponse DeleteTrainedModelAlias(MlDeleteTrainedModelAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteTrainedModelAliasAsync(MlDeleteTrainedModelAliasRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) - { - var descriptor = new MlDeleteTrainedModelAliasRequestDescriptor(model_id, model_alias); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, Action configureRequest) - { - var descriptor = new MlDeleteTrainedModelAliasRequestDescriptor(model_id, model_alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteTrainedModelAliasRequestDescriptor(model_id, model_alias); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteTrainedModelAliasRequestDescriptor(model_id, model_alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlDeleteTrainedModelResponse DeleteTrainedModel(MlDeleteTrainedModelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteTrainedModelAsync(MlDeleteTrainedModelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlDeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Elasticsearch.Id model_id) - { - var descriptor = new MlDeleteTrainedModelRequestDescriptor(model_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlDeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest) - { - var descriptor = new MlDeleteTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Id model_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteTrainedModelRequestDescriptor(model_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlDeleteTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlEstimateModelMemoryResponse EstimateModelMemory(MlEstimateModelMemoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task EstimateModelMemoryAsync(MlEstimateModelMemoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlEstimateModelMemoryResponse EstimateModelMemory() - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlEstimateModelMemoryResponse EstimateModelMemory(Action configureRequest) - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlEstimateModelMemoryResponse EstimateModelMemory(Action> configureRequest) - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlEstimateModelMemoryResponse>(descriptor); - } - - public Task EstimateModelMemoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task EstimateModelMemoryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task EstimateModelMemoryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlEstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlEstimateModelMemoryResponse>(descriptor); - } - - public MlEvaluateDataFrameResponse EvaluateDataFrame(MlEvaluateDataFrameRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task EvaluateDataFrameAsync(MlEvaluateDataFrameRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlEvaluateDataFrameResponse EvaluateDataFrame() - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlEvaluateDataFrameResponse EvaluateDataFrame(Action configureRequest) - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlEvaluateDataFrameResponse EvaluateDataFrame(Action> configureRequest) - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlEvaluateDataFrameResponse>(descriptor); - } - - public Task EvaluateDataFrameAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task EvaluateDataFrameAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task EvaluateDataFrameAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlEvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlEvaluateDataFrameResponse>(descriptor); - } - - public MlExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(MlExplainDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExplainDataFrameAnalyticsAsync(MlExplainDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics() - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Action configureRequest) - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Action> configureRequest) - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlExplainDataFrameAnalyticsResponse>(descriptor); - } - - public Task ExplainDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExplainDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExplainDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlExplainDataFrameAnalyticsResponse>(descriptor); - } - - public MlFlushJobResponse FlushJob(MlFlushJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task FlushJobAsync(MlFlushJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlFlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlFlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlFlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlFlushJobResponse>(descriptor); - } - - public Task FlushJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FlushJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task FlushJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlFlushJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlFlushJobResponse>(descriptor); - } - - public MlForecastResponse Forecast(MlForecastRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ForecastAsync(MlForecastRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlForecastRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlForecastRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ForecastAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlForecastRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ForecastAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlForecastRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetCalendarEventsResponse GetCalendarEvents(MlGetCalendarEventsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetCalendarEventsAsync(MlGetCalendarEventsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elasticsearch.Id calendar_id) - { - var descriptor = new MlGetCalendarEventsRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest) - { - var descriptor = new MlGetCalendarEventsRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendar_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetCalendarEventsRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetCalendarEventsRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetCalendarsResponse GetCalendars(MlGetCalendarsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetCalendarsAsync(MlGetCalendarsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetCalendarsResponse GetCalendars() - { - var descriptor = new MlGetCalendarsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetCalendarsResponse GetCalendars(Action configureRequest) - { - var descriptor = new MlGetCalendarsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetCalendarsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetCalendarsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetCalendarsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetCalendarsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetDataFrameAnalyticsResponse GetDataFrameAnalytics(MlGetDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetDataFrameAnalyticsAsync(MlGetDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetDataFrameAnalyticsResponse GetDataFrameAnalytics() - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action configureRequest) - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action> configureRequest) - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlGetDataFrameAnalyticsResponse>(descriptor); - } - - public Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlGetDataFrameAnalyticsResponse>(descriptor); - } - - public MlGetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(MlGetDataFrameAnalyticsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetDataFrameAnalyticsStatsAsync(MlGetDataFrameAnalyticsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats() - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action configureRequest) - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action> configureRequest) - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlGetDataFrameAnalyticsStatsResponse>(descriptor); - } - - public Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetDataFrameAnalyticsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetDataFrameAnalyticsStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlGetDataFrameAnalyticsStatsResponse>(descriptor); - } - - public MlGetInfluencersResponse GetInfluencers(MlGetInfluencersRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetInfluencersAsync(MlGetInfluencersRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlGetInfluencersResponse>(descriptor); - } - - public Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetInfluencersRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlGetInfluencersResponse>(descriptor); - } - - public MlGetJobStatsResponse GetJobStats(MlGetJobStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetJobStatsAsync(MlGetJobStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetJobStatsResponse GetJobStats() - { - var descriptor = new MlGetJobStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetJobStatsResponse GetJobStats(Action configureRequest) - { - var descriptor = new MlGetJobStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetJobStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetJobStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetJobStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetJobStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetMemoryStatsResponse GetMemoryStats(MlGetMemoryStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetMemoryStatsAsync(MlGetMemoryStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetMemoryStatsResponse GetMemoryStats() - { - var descriptor = new MlGetMemoryStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetMemoryStatsResponse GetMemoryStats(Action configureRequest) - { - var descriptor = new MlGetMemoryStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetMemoryStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetMemoryStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetMemoryStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetMemoryStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetModelSnapshotsResponse GetModelSnapshots(MlGetModelSnapshotsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetModelSnapshotsAsync(MlGetModelSnapshotsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlGetModelSnapshotsResponse>(descriptor); - } - - public Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetModelSnapshotsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlGetModelSnapshotsResponse>(descriptor); - } - - public MlGetOverallBucketsResponse GetOverallBuckets(MlGetOverallBucketsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetOverallBucketsAsync(MlGetOverallBucketsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlGetOverallBucketsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlGetOverallBucketsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetOverallBucketsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetOverallBucketsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlGetRecordsResponse GetRecords(MlGetRecordsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetRecordsAsync(MlGetRecordsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlGetRecordsResponse>(descriptor); - } - - public Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetRecordsRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlGetRecordsResponse>(descriptor); - } - - public MlGetTrainedModelsStatsResponse GetTrainedModelsStats(MlGetTrainedModelsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetTrainedModelsStatsAsync(MlGetTrainedModelsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlGetTrainedModelsStatsResponse GetTrainedModelsStats() - { - var descriptor = new MlGetTrainedModelsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlGetTrainedModelsStatsResponse GetTrainedModelsStats(Action configureRequest) - { - var descriptor = new MlGetTrainedModelsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetTrainedModelsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlGetTrainedModelsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetTrainedModelsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlGetTrainedModelsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlInfoResponse Info(MlInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InfoAsync(MlInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlInfoResponse Info() - { - var descriptor = new MlInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlInfoResponse Info(Action configureRequest) - { - var descriptor = new MlInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlOpenJobResponse OpenJob(MlOpenJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task OpenJobAsync(MlOpenJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlOpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlOpenJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlOpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlOpenJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task OpenJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlOpenJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task OpenJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlOpenJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPostCalendarEventsResponse PostCalendarEvents(MlPostCalendarEventsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PostCalendarEventsAsync(MlPostCalendarEventsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Elasticsearch.Id calendar_id) - { - var descriptor = new MlPostCalendarEventsRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest) - { - var descriptor = new MlPostCalendarEventsRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendar_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPostCalendarEventsRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPostCalendarEventsRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPreviewDatafeedResponse PreviewDatafeed(MlPreviewDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest>(request); - } - - public Task> PreviewDatafeedAsync(MlPreviewDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync>(request, cancellationToken); - } - - public MlPreviewDatafeedResponse PreviewDatafeed() - { - var descriptor = new MlPreviewDatafeedRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, MlPreviewDatafeedResponse>(descriptor); - } - - public MlPreviewDatafeedResponse PreviewDatafeed(Action> configureRequest) - { - var descriptor = new MlPreviewDatafeedRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPreviewDatafeedResponse>(descriptor); - } - - public Task> PreviewDatafeedAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlPreviewDatafeedRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPreviewDatafeedResponse>(descriptor); - } - - public Task> PreviewDatafeedAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPreviewDatafeedRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPreviewDatafeedResponse>(descriptor); - } - - public MlPreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(MlPreviewDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PreviewDataFrameAnalyticsAsync(MlPreviewDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics() - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Action configureRequest) - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Action> configureRequest) - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPreviewDataFrameAnalyticsResponse>(descriptor); - } - - public Task PreviewDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PreviewDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PreviewDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPreviewDataFrameAnalyticsResponse>(descriptor); - } - - public MlPutCalendarJobResponse PutCalendarJob(MlPutCalendarJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutCalendarJobAsync(MlPutCalendarJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlPutCalendarJobRequestDescriptor(calendar_id, job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlPutCalendarJobRequestDescriptor(calendar_id, job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutCalendarJobRequestDescriptor(calendar_id, job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutCalendarJobRequestDescriptor(calendar_id, job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPutCalendarResponse PutCalendar(MlPutCalendarRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutCalendarAsync(MlPutCalendarRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id calendar_id) - { - var descriptor = new MlPutCalendarRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest) - { - var descriptor = new MlPutCalendarRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Id calendar_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutCalendarRequestDescriptor(calendar_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Id calendar_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutCalendarRequestDescriptor(calendar_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPutDatafeedResponse PutDatafeed(MlPutDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutDatafeedAsync(MlPutDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action> configureRequest) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPutDatafeedResponse>(descriptor); - } - - public Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPutDatafeedResponse>(descriptor); - } - - public MlPutDataFrameAnalyticsResponse PutDataFrameAnalytics(MlPutDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutDataFrameAnalyticsAsync(MlPutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPutDataFrameAnalyticsResponse>(descriptor); - } - - public Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPutDataFrameAnalyticsResponse>(descriptor); - } - - public MlPutFilterResponse PutFilter(MlPutFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutFilterAsync(MlPutFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filter_id) - { - var descriptor = new MlPutFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest) - { - var descriptor = new MlPutFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPutJobResponse PutJob(MlPutJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutJobAsync(MlPutJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPutJobResponse>(descriptor); - } - - public Task PutJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPutJobResponse>(descriptor); - } - - public MlPutTrainedModelAliasResponse PutTrainedModelAlias(MlPutTrainedModelAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutTrainedModelAliasAsync(MlPutTrainedModelAliasRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias) - { - var descriptor = new MlPutTrainedModelAliasRequestDescriptor(model_id, model_alias); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, Action configureRequest) - { - var descriptor = new MlPutTrainedModelAliasRequestDescriptor(model_id, model_alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelAliasRequestDescriptor(model_id, model_alias); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id model_id, Elastic.Clients.Elasticsearch.Name model_alias, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelAliasRequestDescriptor(model_id, model_alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlPutTrainedModelResponse PutTrainedModel(MlPutTrainedModelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutTrainedModelAsync(MlPutTrainedModelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlPutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id model_id) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlPutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id model_id, Action> configureRequest) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlPutTrainedModelResponse>(descriptor); - } - - public Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id model_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id model_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id model_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlPutTrainedModelRequestDescriptor(model_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlPutTrainedModelResponse>(descriptor); - } - - public MlResetJobResponse ResetJob(MlResetJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ResetJobAsync(MlResetJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlResetJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlResetJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ResetJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlResetJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ResetJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlResetJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlRevertModelSnapshotResponse RevertModelSnapshot(MlRevertModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RevertModelSnapshotAsync(MlRevertModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlRevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) - { - var descriptor = new MlRevertModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlRevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest) - { - var descriptor = new MlRevertModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlRevertModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlRevertModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlSetUpgradeModeResponse SetUpgradeMode(MlSetUpgradeModeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SetUpgradeModeAsync(MlSetUpgradeModeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlSetUpgradeModeResponse SetUpgradeMode() - { - var descriptor = new MlSetUpgradeModeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlSetUpgradeModeResponse SetUpgradeMode(Action configureRequest) - { - var descriptor = new MlSetUpgradeModeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SetUpgradeModeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlSetUpgradeModeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SetUpgradeModeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlSetUpgradeModeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlStartDatafeedResponse StartDatafeed(MlStartDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StartDatafeedAsync(MlStartDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - var descriptor = new MlStartDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest) - { - var descriptor = new MlStartDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlStartDataFrameAnalyticsResponse StartDataFrameAnalytics(MlStartDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StartDataFrameAnalyticsAsync(MlStartDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlStartDataFrameAnalyticsResponse>(descriptor); - } - - public Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlStartDataFrameAnalyticsResponse>(descriptor); - } - - public MlStopDatafeedResponse StopDatafeed(MlStopDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StopDatafeedAsync(MlStopDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - var descriptor = new MlStopDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest) - { - var descriptor = new MlStopDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlStopDataFrameAnalyticsResponse StopDataFrameAnalytics(MlStopDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StopDataFrameAnalyticsAsync(MlStopDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlStopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlStopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlStopDataFrameAnalyticsResponse>(descriptor); - } - - public Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlStopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlStopDataFrameAnalyticsResponse>(descriptor); - } - - public MlUpdateDatafeedResponse UpdateDatafeed(MlUpdateDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateDatafeedAsync(MlUpdateDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeed_id, Action> configureRequest) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlUpdateDatafeedResponse>(descriptor); - } - - public Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeed_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDatafeedRequestDescriptor(datafeed_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlUpdateDatafeedResponse>(descriptor); - } - - public MlUpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(MlUpdateDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateDataFrameAnalyticsAsync(MlUpdateDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlUpdateDataFrameAnalyticsResponse>(descriptor); - } - - public Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlUpdateDataFrameAnalyticsResponse>(descriptor); - } - - public MlUpdateFilterResponse UpdateFilter(MlUpdateFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateFilterAsync(MlUpdateFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.Id filter_id) - { - var descriptor = new MlUpdateFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest) - { - var descriptor = new MlUpdateFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateFilterRequestDescriptor(filter_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Id filter_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateFilterRequestDescriptor(filter_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlUpdateJobResponse UpdateJob(MlUpdateJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateJobAsync(MlUpdateJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id job_id) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlUpdateJobResponse>(descriptor); - } - - public Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id job_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id job_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateJobRequestDescriptor(job_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlUpdateJobResponse>(descriptor); - } - - public MlUpdateModelSnapshotResponse UpdateModelSnapshot(MlUpdateModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateModelSnapshotAsync(MlUpdateModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) - { - var descriptor = new MlUpdateModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest) - { - var descriptor = new MlUpdateModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateModelSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpdateModelSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlUpgradeJobSnapshotResponse UpgradeJobSnapshot(MlUpgradeJobSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpgradeJobSnapshotAsync(MlUpgradeJobSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlUpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id) - { - var descriptor = new MlUpgradeJobSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlUpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest) - { - var descriptor = new MlUpgradeJobSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpgradeJobSnapshotRequestDescriptor(job_id, snapshot_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Id job_id, Elastic.Clients.Elasticsearch.Id snapshot_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlUpgradeJobSnapshotRequestDescriptor(job_id, snapshot_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlValidateDetectorResponse ValidateDetector(MlValidateDetectorRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ValidateDetectorAsync(MlValidateDetectorRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlValidateDetectorResponse ValidateDetector() - { - var descriptor = new MlValidateDetectorRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlValidateDetectorResponse ValidateDetector(Action configureRequest) - { - var descriptor = new MlValidateDetectorRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ValidateDetectorAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlValidateDetectorRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ValidateDetectorAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlValidateDetectorRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public MlValidateResponse Validate(MlValidateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ValidateAsync(MlValidateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public MlValidateResponse Validate() - { - var descriptor = new MlValidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlValidateResponse Validate(Action configureRequest) - { - var descriptor = new MlValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public MlValidateResponse Validate(Action> configureRequest) - { - var descriptor = new MlValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MlValidateResponse>(descriptor); - } - - public Task ValidateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlValidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ValidateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ValidateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MlValidateResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs deleted file mode 100644 index 8bac7f38f02..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public class NodesNamespace : NamespacedClientProxy - { - internal NodesNamespace(ElasticsearchClient client) : base(client) - { - } - - public NodesHotThreadsResponse HotThreads(NodesHotThreadsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task HotThreadsAsync(NodesHotThreadsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public NodesHotThreadsResponse HotThreads() - { - var descriptor = new NodesHotThreadsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesHotThreadsResponse HotThreads(Action configureRequest) - { - var descriptor = new NodesHotThreadsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task HotThreadsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesHotThreadsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesHotThreadsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public NodesInfoResponse Info(NodesInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public NodesInfoResponse Info() - { - var descriptor = new NodesInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesInfoResponse Info(Action configureRequest) - { - var descriptor = new NodesInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public NodesReloadSecureSettingsResponse ReloadSecureSettings(NodesReloadSecureSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ReloadSecureSettingsAsync(NodesReloadSecureSettingsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public NodesReloadSecureSettingsResponse ReloadSecureSettings() - { - var descriptor = new NodesReloadSecureSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesReloadSecureSettingsResponse ReloadSecureSettings(Action configureRequest) - { - var descriptor = new NodesReloadSecureSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ReloadSecureSettingsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesReloadSecureSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ReloadSecureSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesReloadSecureSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public NodesStatsResponse Stats(NodesStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public NodesStatsResponse Stats() - { - var descriptor = new NodesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesStatsResponse Stats(Action configureRequest) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesStatsResponse Stats(Action> configureRequest) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, NodesStatsResponse>(descriptor); - } - - public Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse>(descriptor); - } - - public NodesUsageResponse Usage(NodesUsageRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public NodesUsageResponse Usage() - { - var descriptor = new NodesUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public NodesUsageResponse Usage(Action configureRequest) - { - var descriptor = new NodesUsageRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UsageAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs deleted file mode 100644 index a3d32495248..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public class SearchableSnapshotsNamespace : NamespacedClientProxy - { - internal SearchableSnapshotsNamespace(ElasticsearchClient client) : base(client) - { - } - - public SearchableSnapshotsMountResponse Mount(SearchableSnapshotsMountRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task MountAsync(SearchableSnapshotsMountRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SearchableSnapshotsMountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) - { - var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SearchableSnapshotsMountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) - { - var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsMountRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatsAsync(SearchableSnapshotsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SearchableSnapshotsStatsResponse Stats() - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SearchableSnapshotsStatsResponse Stats(Action configureRequest) - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SearchableSnapshotsStatsResponse Stats(Action> configureRequest) - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchableSnapshotsStatsResponse>(descriptor); - } - - public Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchableSnapshotsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchableSnapshotsStatsResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs deleted file mode 100644 index fc9871eca61..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ /dev/null @@ -1,1365 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public class SecurityNamespace : NamespacedClientProxy - { - internal SecurityNamespace(ElasticsearchClient client) : base(client) - { - } - - public SecurityAuthenticateResponse Authenticate(SecurityAuthenticateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task AuthenticateAsync(SecurityAuthenticateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityAuthenticateResponse Authenticate() - { - var descriptor = new SecurityAuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityAuthenticateResponse Authenticate(Action configureRequest) - { - var descriptor = new SecurityAuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task AuthenticateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityAuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task AuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityAuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityChangePasswordResponse ChangePassword(SecurityChangePasswordRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ChangePasswordAsync(SecurityChangePasswordRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityChangePasswordResponse ChangePassword() - { - var descriptor = new SecurityChangePasswordRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityChangePasswordResponse ChangePassword(Action configureRequest) - { - var descriptor = new SecurityChangePasswordRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ChangePasswordAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityChangePasswordRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ChangePasswordAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityChangePasswordRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityClearApiKeyCacheResponse ClearApiKeyCache(SecurityClearApiKeyCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearApiKeyCacheAsync(SecurityClearApiKeyCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids) - { - var descriptor = new SecurityClearApiKeyCacheRequestDescriptor(ids); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest) - { - var descriptor = new SecurityClearApiKeyCacheRequestDescriptor(ids); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearApiKeyCacheRequestDescriptor(ids); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearApiKeyCacheRequestDescriptor(ids); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityClearCachedPrivilegesResponse ClearCachedPrivileges(SecurityClearCachedPrivilegesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearCachedPrivilegesAsync(SecurityClearCachedPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application) - { - var descriptor = new SecurityClearCachedPrivilegesRequestDescriptor(application); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application, Action configureRequest) - { - var descriptor = new SecurityClearCachedPrivilegesRequestDescriptor(application); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedPrivilegesRequestDescriptor(application); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedPrivilegesRequestDescriptor(application); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityClearCachedRealmsResponse ClearCachedRealms(SecurityClearCachedRealmsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearCachedRealmsAsync(SecurityClearCachedRealmsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms) - { - var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest) - { - var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityClearCachedRolesResponse ClearCachedRoles(SecurityClearCachedRolesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ClearCachedRolesAsync(SecurityClearCachedRolesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new SecurityClearCachedRolesRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) - { - var descriptor = new SecurityClearCachedRolesRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedRolesRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityClearCachedRolesRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityDeletePrivilegesResponse DeletePrivileges(SecurityDeletePrivilegesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeletePrivilegesAsync(SecurityDeletePrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityDeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new SecurityDeletePrivilegesRequestDescriptor(application, name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityDeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) - { - var descriptor = new SecurityDeletePrivilegesRequestDescriptor(application, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeletePrivilegesRequestDescriptor(application, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeletePrivilegesRequestDescriptor(application, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityDeleteRoleMappingResponse DeleteRoleMapping(SecurityDeleteRoleMappingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteRoleMappingAsync(SecurityDeleteRoleMappingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityDeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new SecurityDeleteRoleMappingRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityDeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new SecurityDeleteRoleMappingRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteRoleMappingRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteRoleMappingRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityDeleteRoleResponse DeleteRole(SecurityDeleteRoleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteRoleAsync(SecurityDeleteRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityDeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new SecurityDeleteRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityDeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) - { - var descriptor = new SecurityDeleteRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityDeleteUserResponse DeleteUser(SecurityDeleteUserRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteUserAsync(SecurityDeleteUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityDeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username) - { - var descriptor = new SecurityDeleteUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityDeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) - { - var descriptor = new SecurityDeleteUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDeleteUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityDisableUserResponse DisableUser(SecurityDisableUserRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DisableUserAsync(SecurityDisableUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityDisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username) - { - var descriptor = new SecurityDisableUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityDisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) - { - var descriptor = new SecurityDisableUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDisableUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityDisableUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityEnableUserResponse EnableUser(SecurityEnableUserRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task EnableUserAsync(SecurityEnableUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityEnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username) - { - var descriptor = new SecurityEnableUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityEnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) - { - var descriptor = new SecurityEnableUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityEnableUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityEnableUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetApiKeyResponse GetApiKey(SecurityGetApiKeyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetApiKeyAsync(SecurityGetApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetApiKeyResponse GetApiKey() - { - var descriptor = new SecurityGetApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetApiKeyResponse GetApiKey(Action configureRequest) - { - var descriptor = new SecurityGetApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetBuiltinPrivilegesResponse GetBuiltinPrivileges(SecurityGetBuiltinPrivilegesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetBuiltinPrivilegesAsync(SecurityGetBuiltinPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetBuiltinPrivilegesResponse GetBuiltinPrivileges() - { - var descriptor = new SecurityGetBuiltinPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action configureRequest) - { - var descriptor = new SecurityGetBuiltinPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetBuiltinPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetBuiltinPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetBuiltinPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetBuiltinPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetPrivilegesResponse GetPrivileges(SecurityGetPrivilegesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetPrivilegesAsync(SecurityGetPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetPrivilegesResponse GetPrivileges() - { - var descriptor = new SecurityGetPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetPrivilegesResponse GetPrivileges(Action configureRequest) - { - var descriptor = new SecurityGetPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetRoleMappingResponse GetRoleMapping(SecurityGetRoleMappingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetRoleMappingAsync(SecurityGetRoleMappingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetRoleMappingResponse GetRoleMapping() - { - var descriptor = new SecurityGetRoleMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetRoleMappingResponse GetRoleMapping(Action configureRequest) - { - var descriptor = new SecurityGetRoleMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetRoleMappingAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetRoleMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetRoleMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetRoleMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetRoleResponse GetRole(SecurityGetRoleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetRoleAsync(SecurityGetRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetRoleResponse GetRole() - { - var descriptor = new SecurityGetRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetRoleResponse GetRole(Action configureRequest) - { - var descriptor = new SecurityGetRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGetTokenResponse GetToken(SecurityGetTokenRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetTokenAsync(SecurityGetTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGetTokenResponse GetToken() - { - var descriptor = new SecurityGetTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGetTokenResponse GetToken(Action configureRequest) - { - var descriptor = new SecurityGetTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetTokenAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGetTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityGrantApiKeyResponse GrantApiKey(SecurityGrantApiKeyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GrantApiKeyAsync(SecurityGrantApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityGrantApiKeyResponse GrantApiKey() - { - var descriptor = new SecurityGrantApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityGrantApiKeyResponse GrantApiKey(Action configureRequest) - { - var descriptor = new SecurityGrantApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GrantApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGrantApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GrantApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityGrantApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityHasPrivilegesResponse HasPrivileges(SecurityHasPrivilegesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task HasPrivilegesAsync(SecurityHasPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityHasPrivilegesResponse HasPrivileges() - { - var descriptor = new SecurityHasPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityHasPrivilegesResponse HasPrivileges(Action configureRequest) - { - var descriptor = new SecurityHasPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task HasPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityHasPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task HasPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityHasPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityInvalidateApiKeyResponse InvalidateApiKey(SecurityInvalidateApiKeyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InvalidateApiKeyAsync(SecurityInvalidateApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityInvalidateApiKeyResponse InvalidateApiKey() - { - var descriptor = new SecurityInvalidateApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityInvalidateApiKeyResponse InvalidateApiKey(Action configureRequest) - { - var descriptor = new SecurityInvalidateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InvalidateApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityInvalidateApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task InvalidateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityInvalidateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityInvalidateTokenResponse InvalidateToken(SecurityInvalidateTokenRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InvalidateTokenAsync(SecurityInvalidateTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityInvalidateTokenResponse InvalidateToken() - { - var descriptor = new SecurityInvalidateTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityInvalidateTokenResponse InvalidateToken(Action configureRequest) - { - var descriptor = new SecurityInvalidateTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InvalidateTokenAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityInvalidateTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task InvalidateTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityInvalidateTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityPutUserResponse PutUser(SecurityPutUserRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutUserAsync(SecurityPutUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityPutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username) - { - var descriptor = new SecurityPutUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityPutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) - { - var descriptor = new SecurityPutUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityPutUserRequestDescriptor(username); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityPutUserRequestDescriptor(username); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityQueryApiKeysResponse QueryApiKeys(SecurityQueryApiKeysRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task QueryApiKeysAsync(SecurityQueryApiKeysRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityQueryApiKeysResponse QueryApiKeys() - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityQueryApiKeysResponse QueryApiKeys(Action configureRequest) - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityQueryApiKeysResponse QueryApiKeys(Action> configureRequest) - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SecurityQueryApiKeysResponse>(descriptor); - } - - public Task QueryApiKeysAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task QueryApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task QueryApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityQueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SecurityQueryApiKeysResponse>(descriptor); - } - - public SecuritySamlAuthenticateResponse SamlAuthenticate(SecuritySamlAuthenticateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlAuthenticateAsync(SecuritySamlAuthenticateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlAuthenticateResponse SamlAuthenticate() - { - var descriptor = new SecuritySamlAuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlAuthenticateResponse SamlAuthenticate(Action configureRequest) - { - var descriptor = new SecuritySamlAuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlAuthenticateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlAuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlAuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecuritySamlCompleteLogoutResponse SamlCompleteLogout(SecuritySamlCompleteLogoutRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlCompleteLogoutAsync(SecuritySamlCompleteLogoutRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlCompleteLogoutResponse SamlCompleteLogout() - { - var descriptor = new SecuritySamlCompleteLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlCompleteLogoutResponse SamlCompleteLogout(Action configureRequest) - { - var descriptor = new SecuritySamlCompleteLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlCompleteLogoutAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlCompleteLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlCompleteLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlCompleteLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecuritySamlInvalidateResponse SamlInvalidate(SecuritySamlInvalidateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlInvalidateAsync(SecuritySamlInvalidateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlInvalidateResponse SamlInvalidate() - { - var descriptor = new SecuritySamlInvalidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlInvalidateResponse SamlInvalidate(Action configureRequest) - { - var descriptor = new SecuritySamlInvalidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlInvalidateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlInvalidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlInvalidateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlInvalidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecuritySamlLogoutResponse SamlLogout(SecuritySamlLogoutRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlLogoutAsync(SecuritySamlLogoutRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlLogoutResponse SamlLogout() - { - var descriptor = new SecuritySamlLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlLogoutResponse SamlLogout(Action configureRequest) - { - var descriptor = new SecuritySamlLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlLogoutAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecuritySamlPrepareAuthenticationResponse SamlPrepareAuthentication(SecuritySamlPrepareAuthenticationRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlPrepareAuthenticationAsync(SecuritySamlPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlPrepareAuthenticationResponse SamlPrepareAuthentication() - { - var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action configureRequest) - { - var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlPrepareAuthenticationAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecuritySamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SecuritySamlServiceProviderMetadataRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task SamlServiceProviderMetadataAsync(SecuritySamlServiceProviderMetadataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecuritySamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realm_name) - { - var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecuritySamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realm_name, Action configureRequest) - { - var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realm_name, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realm_name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecuritySamlServiceProviderMetadataRequestDescriptor(realm_name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SecurityUpdateApiKeyResponse UpdateApiKey(SecurityUpdateApiKeyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UpdateApiKeyAsync(SecurityUpdateApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SecurityUpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityUpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SecurityUpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SecurityUpdateApiKeyResponse>(descriptor); - } - - public Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SecurityUpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SecurityUpdateApiKeyResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs deleted file mode 100644 index 4f36a55b519..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ /dev/null @@ -1,409 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public class SlmNamespace : NamespacedClientProxy - { - internal SlmNamespace(ElasticsearchClient client) : base(client) - { - } - - public SlmDeleteLifecycleResponse DeleteLifecycle(SlmDeleteLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteLifecycleAsync(SlmDeleteLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id) - { - var descriptor = new SlmDeleteLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmDeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest) - { - var descriptor = new SlmDeleteLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, CancellationToken cancellationToken = default) - { - var descriptor = new SlmDeleteLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmDeleteLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmExecuteLifecycleResponse ExecuteLifecycle(SlmExecuteLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExecuteLifecycleAsync(SlmExecuteLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id) - { - var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest) - { - var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, CancellationToken cancellationToken = default) - { - var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmExecuteRetentionResponse ExecuteRetention(SlmExecuteRetentionRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task ExecuteRetentionAsync(SlmExecuteRetentionRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmExecuteRetentionResponse ExecuteRetention() - { - var descriptor = new SlmExecuteRetentionRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmExecuteRetentionResponse ExecuteRetention(Action configureRequest) - { - var descriptor = new SlmExecuteRetentionRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task ExecuteRetentionAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmExecuteRetentionRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task ExecuteRetentionAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmExecuteRetentionRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmGetLifecycleResponse GetLifecycle(SlmGetLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetLifecycleAsync(SlmGetLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmGetLifecycleResponse GetLifecycle() - { - var descriptor = new SlmGetLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmGetLifecycleResponse GetLifecycle(Action configureRequest) - { - var descriptor = new SlmGetLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetLifecycleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmGetStatsResponse GetStats(SlmGetStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetStatsAsync(SlmGetStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmGetStatsResponse GetStats() - { - var descriptor = new SlmGetStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmGetStatsResponse GetStats(Action configureRequest) - { - var descriptor = new SlmGetStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmGetStatusResponse GetStatus(SlmGetStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetStatusAsync(SlmGetStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmGetStatusResponse GetStatus() - { - var descriptor = new SlmGetStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmGetStatusResponse GetStatus(Action configureRequest) - { - var descriptor = new SlmGetStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetStatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmGetStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmPutLifecycleResponse PutLifecycle(SlmPutLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutLifecycleAsync(SlmPutLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmPutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policy_id) - { - var descriptor = new SlmPutLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmPutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest) - { - var descriptor = new SlmPutLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, CancellationToken cancellationToken = default) - { - var descriptor = new SlmPutLifecycleRequestDescriptor(policy_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmPutLifecycleRequestDescriptor(policy_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmStartResponse Start(SlmStartRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StartAsync(SlmStartRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmStartResponse Start() - { - var descriptor = new SlmStartRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmStartResponse Start(Action configureRequest) - { - var descriptor = new SlmStartRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StartAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmStartRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmStartRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SlmStopResponse Stop(SlmStopRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StopAsync(SlmStopRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SlmStopResponse Stop() - { - var descriptor = new SlmStopRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SlmStopResponse Stop(Action configureRequest) - { - var descriptor = new SlmStopRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StopAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SlmStopRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SlmStopRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs deleted file mode 100644 index 99c95b6eee9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ /dev/null @@ -1,509 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public class SnapshotNamespace : NamespacedClientProxy - { - internal SnapshotNamespace(ElasticsearchClient client) : base(client) - { - } - - public CreateSnapshotResponse Create(CreateSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CreateAsync(CreateSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public GetSnapshotResponse Get(GetSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetAsync(GetSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotCleanupRepositoryResponse CleanupRepository(SnapshotCleanupRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CleanupRepositoryAsync(SnapshotCleanupRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotCleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name repository) - { - var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotCleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest) - { - var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCleanupRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotCloneResponse Clone(SnapshotCloneRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CloneAsync(SnapshotCloneRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotCloneResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot) - { - var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotCloneResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, Action configureRequest) - { - var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotCreateRepositoryResponse CreateRepository(SnapshotCreateRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CreateRepositoryAsync(SnapshotCreateRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotCreateRepositoryResponse CreateRepository(Elastic.Clients.Elasticsearch.Name repository) - { - var descriptor = new SnapshotCreateRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotCreateRepositoryResponse CreateRepository(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest) - { - var descriptor = new SnapshotCreateRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CreateRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCreateRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CreateRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotCreateRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotDeleteRepositoryResponse DeleteRepository(SnapshotDeleteRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeleteRepositoryAsync(SnapshotDeleteRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotDeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names repository) - { - var descriptor = new SnapshotDeleteRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotDeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names repository, Action configureRequest) - { - var descriptor = new SnapshotDeleteRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names repository, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotDeleteRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names repository, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotDeleteRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotGetRepositoryResponse GetRepository(SnapshotGetRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task GetRepositoryAsync(SnapshotGetRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotGetRepositoryResponse GetRepository() - { - var descriptor = new SnapshotGetRepositoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotGetRepositoryResponse GetRepository(Action configureRequest) - { - var descriptor = new SnapshotGetRepositoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task GetRepositoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotGetRepositoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task GetRepositoryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotGetRepositoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotRestoreResponse Restore(SnapshotRestoreRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task RestoreAsync(SnapshotRestoreRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotRestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotRestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotRestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SnapshotRestoreResponse>(descriptor); - } - - public Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotRestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SnapshotRestoreResponse>(descriptor); - } - - public SnapshotStatusResponse Status(SnapshotStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task StatusAsync(SnapshotStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotStatusResponse Status() - { - var descriptor = new SnapshotStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotStatusResponse Status(Action configureRequest) - { - var descriptor = new SnapshotStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task StatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task StatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public SnapshotVerifyRepositoryResponse VerifyRepository(SnapshotVerifyRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task VerifyRepositoryAsync(SnapshotVerifyRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SnapshotVerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name repository) - { - var descriptor = new SnapshotVerifyRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SnapshotVerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest) - { - var descriptor = new SnapshotVerifyRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotVerifyRepositoryRequestDescriptor(repository); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name repository, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotVerifyRepositoryRequestDescriptor(repository); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs deleted file mode 100644 index e62f562343f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ssl.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ssl -{ - public class SslNamespace : NamespacedClientProxy - { - internal SslNamespace(ElasticsearchClient client) : base(client) - { - } - - public SslCertificatesResponse Certificates(SslCertificatesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task CertificatesAsync(SslCertificatesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public SslCertificatesResponse Certificates() - { - var descriptor = new SslCertificatesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public SslCertificatesResponse Certificates(Action configureRequest) - { - var descriptor = new SslCertificatesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task CertificatesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SslCertificatesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task CertificatesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SslCertificatesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TransformManagement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TransformManagement.g.cs deleted file mode 100644 index e09fa691270..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TransformManagement.g.cs +++ /dev/null @@ -1,499 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public class TransformManagementNamespace : NamespacedClientProxy - { - internal TransformManagementNamespace(ElasticsearchClient client) : base(client) - { - } - - public TransformDeleteTransformResponse TransformDeleteTransform(TransformDeleteTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformDeleteTransformAsync(TransformDeleteTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformDeleteTransformResponse TransformDeleteTransform(Elastic.Clients.Elasticsearch.Id transform_id) - { - var descriptor = new TransformDeleteTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformDeleteTransformResponse TransformDeleteTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest) - { - var descriptor = new TransformDeleteTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformDeleteTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformDeleteTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformDeleteTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformDeleteTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TransformGetTransformResponse TransformGetTransform(TransformGetTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformGetTransformAsync(TransformGetTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformGetTransformResponse TransformGetTransform() - { - var descriptor = new TransformGetTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformGetTransformResponse TransformGetTransform(Action configureRequest) - { - var descriptor = new TransformGetTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformGetTransformAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TransformGetTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformGetTransformAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformGetTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TransformGetTransformStatsResponse TransformGetTransformStats(TransformGetTransformStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformGetTransformStatsAsync(TransformGetTransformStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformGetTransformStatsResponse TransformGetTransformStats(Elastic.Clients.Elasticsearch.Names transform_id) - { - var descriptor = new TransformGetTransformStatsRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformGetTransformStatsResponse TransformGetTransformStats(Elastic.Clients.Elasticsearch.Names transform_id, Action configureRequest) - { - var descriptor = new TransformGetTransformStatsRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformGetTransformStatsAsync(Elastic.Clients.Elasticsearch.Names transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformGetTransformStatsRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformGetTransformStatsAsync(Elastic.Clients.Elasticsearch.Names transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformGetTransformStatsRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TransformPreviewTransformResponse TransformPreviewTransform(TransformPreviewTransformRequest request) - { - request.BeforeRequest(); - return DoRequest>(request); - } - - public Task> TransformPreviewTransformAsync(TransformPreviewTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync>(request, cancellationToken); - } - - public TransformPreviewTransformResponse TransformPreviewTransform() - { - var descriptor = new TransformPreviewTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest>(descriptor); - } - - public TransformPreviewTransformResponse TransformPreviewTransform(Action configureRequest) - { - var descriptor = new TransformPreviewTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest>(descriptor); - } - - public Task> TransformPreviewTransformAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TransformPreviewTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync>(descriptor); - } - - public Task> TransformPreviewTransformAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformPreviewTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync>(descriptor); - } - - public TransformPutTransformResponse TransformPutTransform(TransformPutTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformPutTransformAsync(TransformPutTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformPutTransformResponse TransformPutTransform(Elastic.Clients.Elasticsearch.Id transform_id) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformPutTransformResponse TransformPutTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformPutTransformResponse TransformPutTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TransformPutTransformResponse>(descriptor); - } - - public Task TransformPutTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformPutTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformPutTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformPutTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TransformPutTransformResponse>(descriptor); - } - - public TransformResetTransformResponse TransformResetTransform(TransformResetTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformResetTransformAsync(TransformResetTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformResetTransformResponse TransformResetTransform(Elastic.Clients.Elasticsearch.Id transform_id) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformResetTransformResponse TransformResetTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformResetTransformResponse TransformResetTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TransformResetTransformResponse>(descriptor); - } - - public Task TransformResetTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformResetTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformResetTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformResetTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TransformResetTransformResponse>(descriptor); - } - - public TransformStartTransformResponse TransformStartTransform(TransformStartTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformStartTransformAsync(TransformStartTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformStartTransformResponse TransformStartTransform(Elastic.Clients.Elasticsearch.Id transform_id) - { - var descriptor = new TransformStartTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformStartTransformResponse TransformStartTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest) - { - var descriptor = new TransformStartTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformStartTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformStartTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformStartTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformStartTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TransformStopTransformResponse TransformStopTransform(TransformStopTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformStopTransformAsync(TransformStopTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformStopTransformResponse TransformStopTransform(Elastic.Clients.Elasticsearch.Name transform_id) - { - var descriptor = new TransformStopTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformStopTransformResponse TransformStopTransform(Elastic.Clients.Elasticsearch.Name transform_id, Action configureRequest) - { - var descriptor = new TransformStopTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformStopTransformAsync(Elastic.Clients.Elasticsearch.Name transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformStopTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformStopTransformAsync(Elastic.Clients.Elasticsearch.Name transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformStopTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public TransformUpdateTransformResponse TransformUpdateTransform(TransformUpdateTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformUpdateTransformAsync(TransformUpdateTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformUpdateTransformResponse TransformUpdateTransform(Elastic.Clients.Elasticsearch.Id transform_id) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformUpdateTransformResponse TransformUpdateTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformUpdateTransformResponse TransformUpdateTransform(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TransformUpdateTransformResponse>(descriptor); - } - - public Task TransformUpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, CancellationToken cancellationToken = default) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformUpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformUpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transform_id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformUpdateTransformRequestDescriptor(transform_id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TransformUpdateTransformResponse>(descriptor); - } - - public TransformUpgradeTransformsResponse TransformUpgradeTransforms(TransformUpgradeTransformsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task TransformUpgradeTransformsAsync(TransformUpgradeTransformsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public TransformUpgradeTransformsResponse TransformUpgradeTransforms() - { - var descriptor = new TransformUpgradeTransformsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public TransformUpgradeTransformsResponse TransformUpgradeTransforms(Action configureRequest) - { - var descriptor = new TransformUpgradeTransformsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task TransformUpgradeTransformsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TransformUpgradeTransformsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task TransformUpgradeTransformsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TransformUpgradeTransformsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs deleted file mode 100644 index ab5680062c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public class XpackNamespace : NamespacedClientProxy - { - internal XpackNamespace(ElasticsearchClient client) : base(client) - { - } - - public XpackInfoResponse Info(XpackInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public XpackInfoResponse Info() - { - var descriptor = new XpackInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public XpackInfoResponse Info(Action configureRequest) - { - var descriptor = new XpackInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new XpackInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new XpackInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public XpackUsageResponse Usage(XpackUsageRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task UsageAsync(XpackUsageRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public XpackUsageResponse Usage() - { - var descriptor = new XpackUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public XpackUsageResponse Usage(Action configureRequest) - { - var descriptor = new XpackUsageRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public Task UsageAsync(CancellationToken cancellationToken = default) - { - var descriptor = new XpackUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new XpackUsageRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index faf1184e2e2..fdf350db144 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -16,29 +16,11 @@ // ------------------------------------------------ using Elastic.Clients.Elasticsearch.AsyncSearch; -using Elastic.Clients.Elasticsearch.Autoscaling; -using Elastic.Clients.Elasticsearch.Ccr; using Elastic.Clients.Elasticsearch.Cluster; -using Elastic.Clients.Elasticsearch.DanglingIndices; -using Elastic.Clients.Elasticsearch.Enrich; using Elastic.Clients.Elasticsearch.Eql; -using Elastic.Clients.Elasticsearch.Features; -using Elastic.Clients.Elasticsearch.Graph; -using Elastic.Clients.Elasticsearch.Ilm; using Elastic.Clients.Elasticsearch.IndexManagement; -using Elastic.Clients.Elasticsearch.Ingest; -using Elastic.Clients.Elasticsearch.License; using Elastic.Clients.Elasticsearch.Logstash; -using Elastic.Clients.Elasticsearch.Ml; -using Elastic.Clients.Elasticsearch.Nodes; -using Elastic.Clients.Elasticsearch.SearchableSnapshots; -using Elastic.Clients.Elasticsearch.Security; -using Elastic.Clients.Elasticsearch.Slm; -using Elastic.Clients.Elasticsearch.Snapshot; using Elastic.Clients.Elasticsearch.Sql; -using Elastic.Clients.Elasticsearch.Ssl; -using Elastic.Clients.Elasticsearch.TransformManagement; -using Elastic.Clients.Elasticsearch.Xpack; using System; using System.Threading; using System.Threading.Tasks; @@ -50,78 +32,24 @@ public partial class ElasticsearchClient { public AsyncSearchNamespace AsyncSearch { get; private set; } - public AutoscalingNamespace Autoscaling { get; private set; } - - public CcrNamespace Ccr { get; private set; } - public ClusterNamespace Cluster { get; private set; } - public DanglingIndicesNamespace DanglingIndices { get; private set; } - - public EnrichNamespace Enrich { get; private set; } - public EqlNamespace Eql { get; private set; } - public FeaturesNamespace Features { get; private set; } - - public GraphNamespace Graph { get; private set; } - - public IlmNamespace Ilm { get; private set; } - public IndicesNamespace Indices { get; private set; } - public IngestNamespace Ingest { get; private set; } - - public LicenseNamespace License { get; private set; } - public LogstashNamespace Logstash { get; private set; } - public MlNamespace Ml { get; private set; } - - public NodesNamespace Nodes { get; private set; } - - public SearchableSnapshotsNamespace SearchableSnapshots { get; private set; } - - public SecurityNamespace Security { get; private set; } - - public SlmNamespace Slm { get; private set; } - - public SnapshotNamespace Snapshot { get; private set; } - public SqlNamespace Sql { get; private set; } - public SslNamespace Ssl { get; private set; } - - public TransformManagementNamespace TransformManagement { get; private set; } - - public XpackNamespace Xpack { get; private set; } - private partial void SetupNamespaces() { AsyncSearch = new AsyncSearchNamespace(this); - Autoscaling = new AutoscalingNamespace(this); - Ccr = new CcrNamespace(this); Cluster = new ClusterNamespace(this); - DanglingIndices = new DanglingIndicesNamespace(this); - Enrich = new EnrichNamespace(this); Eql = new EqlNamespace(this); - Features = new FeaturesNamespace(this); - Graph = new GraphNamespace(this); - Ilm = new IlmNamespace(this); Indices = new IndicesNamespace(this); - Ingest = new IngestNamespace(this); - License = new LicenseNamespace(this); Logstash = new LogstashNamespace(this); - Ml = new MlNamespace(this); - Nodes = new NodesNamespace(this); - SearchableSnapshots = new SearchableSnapshotsNamespace(this); - Security = new SecurityNamespace(this); - Slm = new SlmNamespace(this); - Snapshot = new SnapshotNamespace(this); Sql = new SqlNamespace(this); - Ssl = new SslNamespace(this); - TransformManagement = new TransformManagementNamespace(this); - Xpack = new XpackNamespace(this); } public BulkResponse Bulk(BulkRequest request) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingCapacity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingCapacity.g.cs deleted file mode 100644 index cf3aa4855a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingCapacity.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingCapacity - { - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.Autoscaling.AutoscalingResources Node { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Autoscaling.AutoscalingResources Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDecider.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDecider.g.cs deleted file mode 100644 index 2f4762e1ceb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDecider.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingDecider - { - [JsonInclude] - [JsonPropertyName("reason_details")] - public object? ReasonDetails { get; init; } - - [JsonInclude] - [JsonPropertyName("reason_summary")] - public string? ReasonSummary { get; init; } - - [JsonInclude] - [JsonPropertyName("required_capacity")] - public Elastic.Clients.Elasticsearch.Autoscaling.AutoscalingCapacity RequiredCapacity { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDeciders.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDeciders.g.cs deleted file mode 100644 index 5923c9371bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingDeciders.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingDeciders - { - [JsonInclude] - [JsonPropertyName("current_capacity")] - public Elastic.Clients.Elasticsearch.Autoscaling.AutoscalingCapacity CurrentCapacity { get; init; } - - [JsonInclude] - [JsonPropertyName("current_nodes")] - public IReadOnlyCollection CurrentNodes { get; init; } - - [JsonInclude] - [JsonPropertyName("deciders")] - public Dictionary Deciders { get; init; } - - [JsonInclude] - [JsonPropertyName("required_capacity")] - public Elastic.Clients.Elasticsearch.Autoscaling.AutoscalingCapacity RequiredCapacity { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingNode.g.cs deleted file mode 100644 index f4f39affd98..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingNode.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingNode - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingResources.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingResources.g.cs deleted file mode 100644 index d5a2cf075eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Autoscaling/AutoscalingResources.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Autoscaling -{ - public sealed partial class AutoscalingResources - { - [JsonInclude] - [JsonPropertyName("memory")] - public int Memory { get; init; } - - [JsonInclude] - [JsonPropertyName("storage")] - public int Storage { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPattern.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPattern.g.cs deleted file mode 100644 index db083208fae..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPattern.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class AutoFollowPattern - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("pattern")] - public Elastic.Clients.Elasticsearch.Ccr.AutoFollowPatternSummary Pattern { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPatternSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPatternSummary.g.cs deleted file mode 100644 index dcf10ec9117..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowPatternSummary.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class AutoFollowPatternSummary - { - [JsonInclude] - [JsonPropertyName("active")] - public bool Active { get; init; } - - [JsonInclude] - [JsonPropertyName("follow_index_pattern")] - public string? FollowIndexPattern { get; init; } - - [JsonInclude] - [JsonPropertyName("leader_index_exclusion_patterns")] - public IReadOnlyCollection LeaderIndexExclusionPatterns { get; init; } - - [JsonInclude] - [JsonPropertyName("leader_index_patterns")] - public IReadOnlyCollection LeaderIndexPatterns { get; init; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_read_requests")] - public int MaxOutstandingReadRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_cluster")] - public string RemoteCluster { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowStats.g.cs deleted file mode 100644 index 19d3697c9af..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class AutoFollowStats - { - [JsonInclude] - [JsonPropertyName("auto_followed_clusters")] - public IReadOnlyCollection AutoFollowedClusters { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_failed_follow_indices")] - public long NumberOfFailedFollowIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_failed_remote_cluster_state_requests")] - public long NumberOfFailedRemoteClusterStateRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_successful_follow_indices")] - public long NumberOfSuccessfulFollowIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("recent_auto_follow_errors")] - public IReadOnlyCollection RecentAutoFollowErrors { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowedCluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowedCluster.g.cs deleted file mode 100644 index ea89c8839fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/AutoFollowedCluster.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class AutoFollowedCluster - { - [JsonInclude] - [JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - [JsonInclude] - [JsonPropertyName("last_seen_metadata_version")] - public long LastSeenMetadataVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("time_since_last_check_millis")] - public long TimeSinceLastCheckMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowIndexStats.g.cs deleted file mode 100644 index 754df2f3176..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowIndexStats.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class FollowIndexStats - { - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public IReadOnlyCollection Shards { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowStats.g.cs deleted file mode 100644 index 2bc5afb0021..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowStats.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class FollowStats - { - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndex.g.cs deleted file mode 100644 index 1e429df2575..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndex.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class FollowerIndex - { - [JsonInclude] - [JsonPropertyName("leader_index")] - public string LeaderIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("parameters")] - public Elastic.Clients.Elasticsearch.Ccr.FollowerIndexParameters? Parameters { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_cluster")] - public string RemoteCluster { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Ccr.FollowerIndexStatus Status { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndexParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndexParameters.g.cs deleted file mode 100644 index 9b75f285a86..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/FollowerIndexParameters.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class FollowerIndexParameters - { - [JsonInclude] - [JsonPropertyName("max_outstanding_read_requests")] - public int MaxOutstandingReadRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("max_outstanding_write_requests")] - public int MaxOutstandingWriteRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("max_read_request_operation_count")] - public int MaxReadRequestOperationCount { get; init; } - - [JsonInclude] - [JsonPropertyName("max_read_request_size")] - public string MaxReadRequestSize { get; init; } - - [JsonInclude] - [JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration MaxRetryDelay { get; init; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_count")] - public int MaxWriteBufferCount { get; init; } - - [JsonInclude] - [JsonPropertyName("max_write_buffer_size")] - public string MaxWriteBufferSize { get; init; } - - [JsonInclude] - [JsonPropertyName("max_write_request_operation_count")] - public int MaxWriteRequestOperationCount { get; init; } - - [JsonInclude] - [JsonPropertyName("max_write_request_size")] - public string MaxWriteRequestSize { get; init; } - - [JsonInclude] - [JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration ReadPollTimeout { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ReadException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ReadException.g.cs deleted file mode 100644 index 5e2910e80b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ReadException.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class ReadException - { - [JsonInclude] - [JsonPropertyName("exception")] - public Elastic.Clients.Elasticsearch.ErrorCause Exception { get; init; } - - [JsonInclude] - [JsonPropertyName("from_seq_no")] - public long FromSeqNo { get; init; } - - [JsonInclude] - [JsonPropertyName("retries")] - public int Retries { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ShardStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ShardStats.g.cs deleted file mode 100644 index c6db83f424f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ccr/ShardStats.g.cs +++ /dev/null @@ -1,161 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - public sealed partial class ShardStats - { - [JsonInclude] - [JsonPropertyName("bytes_read")] - public long BytesRead { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_read_requests")] - public long FailedReadRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_write_requests")] - public long FailedWriteRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("fatal_exception")] - public Elastic.Clients.Elasticsearch.ErrorCause? FatalException { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_aliases_version")] - public long FollowerAliasesVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_global_checkpoint")] - public long FollowerGlobalCheckpoint { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_index")] - public string FollowerIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_mapping_version")] - public long FollowerMappingVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_max_seq_no")] - public long FollowerMaxSeqNo { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_settings_version")] - public long FollowerSettingsVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("last_requested_seq_no")] - public long LastRequestedSeqNo { get; init; } - - [JsonInclude] - [JsonPropertyName("leader_global_checkpoint")] - public long LeaderGlobalCheckpoint { get; init; } - - [JsonInclude] - [JsonPropertyName("leader_index")] - public string LeaderIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("leader_max_seq_no")] - public long LeaderMaxSeqNo { get; init; } - - [JsonInclude] - [JsonPropertyName("operations_read")] - public long OperationsRead { get; init; } - - [JsonInclude] - [JsonPropertyName("operations_written")] - public long OperationsWritten { get; init; } - - [JsonInclude] - [JsonPropertyName("outstanding_read_requests")] - public int OutstandingReadRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("outstanding_write_requests")] - public int OutstandingWriteRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("read_exceptions")] - public IReadOnlyCollection ReadExceptions { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_cluster")] - public string RemoteCluster { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_id")] - public int ShardId { get; init; } - - [JsonInclude] - [JsonPropertyName("successful_read_requests")] - public long SuccessfulReadRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("successful_write_requests")] - public long SuccessfulWriteRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("time_since_last_read")] - public Elastic.Clients.Elasticsearch.Duration? TimeSinceLastRead { get; init; } - - [JsonInclude] - [JsonPropertyName("time_since_last_read_millis")] - public long TimeSinceLastReadMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total_read_remote_exec_time")] - public Elastic.Clients.Elasticsearch.Duration? TotalReadRemoteExecTime { get; init; } - - [JsonInclude] - [JsonPropertyName("total_read_remote_exec_time_millis")] - public long TotalReadRemoteExecTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total_read_time")] - public Elastic.Clients.Elasticsearch.Duration? TotalReadTime { get; init; } - - [JsonInclude] - [JsonPropertyName("total_read_time_millis")] - public long TotalReadTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total_write_time")] - public Elastic.Clients.Elasticsearch.Duration? TotalWriteTime { get; init; } - - [JsonInclude] - [JsonPropertyName("total_write_time_millis")] - public long TotalWriteTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("write_buffer_operation_count")] - public long WriteBufferOperationCount { get; init; } - - [JsonInclude] - [JsonPropertyName("write_buffer_size_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize WriteBufferSizeInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs deleted file mode 100644 index 77f7b2c8ad7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class AllocationDecision - { - [JsonInclude] - [JsonPropertyName("decider")] - public string Decider { get; init; } - - [JsonInclude] - [JsonPropertyName("decision")] - public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainDecision Decision { get; init; } - - [JsonInclude] - [JsonPropertyName("explanation")] - public string Explanation { get; init; } - } -} \ 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 deleted file mode 100644 index 66b1c239b3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class AllocationStore - { - [JsonInclude] - [JsonPropertyName("allocation_id")] - public string AllocationId { get; init; } - - [JsonInclude] - [JsonPropertyName("found")] - public bool Found { get; init; } - - [JsonInclude] - [JsonPropertyName("in_sync")] - public bool InSync { get; init; } - - [JsonInclude] - [JsonPropertyName("matching_size_in_bytes")] - public long MatchingSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("matching_sync_id")] - public bool MatchingSyncId { get; init; } - - [JsonInclude] - [JsonPropertyName("store_exception")] - public string StoreException { get; init; } - } -} \ 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 deleted file mode 100644 index 685dc54705c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CharFilterTypes - { - [JsonInclude] - [JsonPropertyName("analyzer_types")] - public IReadOnlyCollection AnalyzerTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("built_in_analyzers")] - public IReadOnlyCollection BuiltInAnalyzers { get; init; } - - [JsonInclude] - [JsonPropertyName("built_in_char_filters")] - public IReadOnlyCollection BuiltInCharFilters { get; init; } - - [JsonInclude] - [JsonPropertyName("built_in_filters")] - public IReadOnlyCollection BuiltInFilters { get; init; } - - [JsonInclude] - [JsonPropertyName("built_in_tokenizers")] - public IReadOnlyCollection BuiltInTokenizers { get; init; } - - [JsonInclude] - [JsonPropertyName("filter_types")] - public IReadOnlyCollection FilterTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("tokenizer_types")] - public IReadOnlyCollection TokenizerTypes { get; init; } - } -} \ 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 deleted file mode 100644 index b63b1588d3c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterFileSystem - { - [JsonInclude] - [JsonPropertyName("available_in_bytes")] - public long AvailableInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs deleted file mode 100644 index faf6822bf16..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterIndices - { - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Cluster.CharFilterTypes Analysis { get; init; } - - [JsonInclude] - [JsonPropertyName("completion")] - public Elastic.Clients.Elasticsearch.CompletionStats Completion { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("docs")] - public Elastic.Clients.Elasticsearch.DocStats Docs { get; init; } - - [JsonInclude] - [JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.FielddataStats Fielddata { get; init; } - - [JsonInclude] - [JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Cluster.FieldTypesMappings Mappings { get; init; } - - [JsonInclude] - [JsonPropertyName("query_cache")] - public Elastic.Clients.Elasticsearch.QueryCacheStats QueryCache { get; init; } - - [JsonInclude] - [JsonPropertyName("segments")] - public Elastic.Clients.Elasticsearch.SegmentsStats Segments { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShards Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.StoreStats Store { get; init; } - - [JsonInclude] - [JsonPropertyName("versions")] - public IReadOnlyCollection? Versions { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs deleted file mode 100644 index 0703300c318..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterIndicesShards - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShardsIndex? Index { get; init; } - - [JsonInclude] - [JsonPropertyName("primaries")] - public double? Primaries { get; init; } - - [JsonInclude] - [JsonPropertyName("replication")] - public double? Replication { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public double? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs deleted file mode 100644 index 4a80deaddda..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterIndicesShardsIndex - { - [JsonInclude] - [JsonPropertyName("primaries")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Primaries { get; init; } - - [JsonInclude] - [JsonPropertyName("replication")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Replication { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Shards { get; init; } - } -} \ 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 deleted file mode 100644 index c3161afe9b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterInfo - { - [JsonInclude] - [JsonPropertyName("nodes")] - public Dictionary Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("reserved_sizes")] - public IReadOnlyCollection ReservedSizes { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_data_set_sizes")] - public Dictionary? ShardDataSetSizes { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_paths")] - public Dictionary ShardPaths { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_sizes")] - public Dictionary ShardSizes { get; init; } - } -} \ 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 deleted file mode 100644 index 22d38dad6f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterIngest - { - [JsonInclude] - [JsonPropertyName("number_of_pipelines")] - public int NumberOfPipelines { get; init; } - - [JsonInclude] - [JsonPropertyName("processor_stats")] - public Dictionary ProcessorStats { get; init; } - } -} \ 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 deleted file mode 100644 index 03ee94079fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterJvm - { - [JsonInclude] - [JsonPropertyName("max_uptime_in_millis")] - public long MaxUptimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterJvmMemory Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("threads")] - public long Threads { get; init; } - - [JsonInclude] - [JsonPropertyName("versions")] - public IReadOnlyCollection Versions { get; init; } - } -} \ 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 deleted file mode 100644 index d8e8ea0c2da..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterJvmMemory - { - [JsonInclude] - [JsonPropertyName("heap_max_in_bytes")] - public long HeapMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_used_in_bytes")] - public long HeapUsedInBytes { get; init; } - } -} \ 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 deleted file mode 100644 index 7d685003f95..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterJvmVersion - { - [JsonInclude] - [JsonPropertyName("bundled_jdk")] - public bool BundledJdk { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("using_bundled_jdk")] - public bool UsingBundledJdk { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_name")] - public string VmName { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_vendor")] - public string VmVendor { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_version")] - public string VmVersion { get; init; } - } -} \ 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 deleted file mode 100644 index 50b2111fdf4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterNetworkTypes - { - [JsonInclude] - [JsonPropertyName("http_types")] - public Dictionary HttpTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_types")] - public Dictionary TransportTypes { get; init; } - } -} \ 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 deleted file mode 100644 index 5de96ed7560..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterNodeCount - { - [JsonInclude] - [JsonPropertyName("coordinating_only")] - public int CoordinatingOnly { get; init; } - - [JsonInclude] - [JsonPropertyName("data")] - public int Data { get; init; } - - [JsonInclude] - [JsonPropertyName("data_cold")] - public int DataCold { get; init; } - - [JsonInclude] - [JsonPropertyName("data_content")] - public int DataContent { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frozen")] - public int? DataFrozen { get; init; } - - [JsonInclude] - [JsonPropertyName("data_hot")] - public int DataHot { get; init; } - - [JsonInclude] - [JsonPropertyName("data_warm")] - public int DataWarm { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public int Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("master")] - public int Master { get; init; } - - [JsonInclude] - [JsonPropertyName("ml")] - public int Ml { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_cluster_client")] - public int RemoteClusterClient { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public int Total { get; init; } - - [JsonInclude] - [JsonPropertyName("transform")] - public int Transform { get; init; } - - [JsonInclude] - [JsonPropertyName("voting_only")] - public int VotingOnly { get; init; } - } -} \ 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 deleted file mode 100644 index a4ee92ee54e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterNodes - { - [JsonInclude] - [JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterNodeCount Count { get; init; } - - [JsonInclude] - [JsonPropertyName("discovery_types")] - public Dictionary DiscoveryTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("fs")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterFileSystem Fs { get; init; } - - [JsonInclude] - [JsonPropertyName("indexing_pressure")] - public Elastic.Clients.Elasticsearch.Cluster.IndexingPressure IndexingPressure { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterIngest Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterJvm Jvm { get; init; } - - [JsonInclude] - [JsonPropertyName("network_types")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterNetworkTypes NetworkTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterOperatingSystem Os { get; init; } - - [JsonInclude] - [JsonPropertyName("packaging_types")] - public IReadOnlyCollection PackagingTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("plugins")] - public IReadOnlyCollection Plugins { get; init; } - - [JsonInclude] - [JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterProcess Process { get; init; } - - [JsonInclude] - [JsonPropertyName("versions")] - public IReadOnlyCollection Versions { get; init; } - } -} \ 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 deleted file mode 100644 index 0261b1542c2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterOperatingSystem - { - [JsonInclude] - [JsonPropertyName("allocated_processors")] - public int AllocatedProcessors { get; init; } - - [JsonInclude] - [JsonPropertyName("architectures")] - public IReadOnlyCollection? Architectures { get; init; } - - [JsonInclude] - [JsonPropertyName("available_processors")] - public int AvailableProcessors { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Cluster.OperatingSystemMemoryInfo Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("names")] - public IReadOnlyCollection Names { get; init; } - - [JsonInclude] - [JsonPropertyName("pretty_names")] - public IReadOnlyCollection PrettyNames { get; init; } - } -} \ 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 deleted file mode 100644 index f569aa2a87c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterOperatingSystemArchitecture - { - [JsonInclude] - [JsonPropertyName("arch")] - public string Arch { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - } -} \ 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 deleted file mode 100644 index e1ce3f7a2f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterOperatingSystemName - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs deleted file mode 100644 index bba806fc8d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterOperatingSystemPrettyName - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("pretty_name")] - public string PrettyName { get; init; } - } -} \ 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 deleted file mode 100644 index 38f4fca1c69..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterProcess - { - [JsonInclude] - [JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterProcessCpu Cpu { get; init; } - - [JsonInclude] - [JsonPropertyName("open_file_descriptors")] - public Elastic.Clients.Elasticsearch.Cluster.ClusterProcessOpenFileDescriptors OpenFileDescriptors { get; init; } - } -} \ 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 deleted file mode 100644 index 395fb7f62d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterProcessCpu - { - [JsonInclude] - [JsonPropertyName("percent")] - public int Percent { get; init; } - } -} \ 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 deleted file mode 100644 index 6944cdca7ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterProcessOpenFileDescriptors - { - [JsonInclude] - [JsonPropertyName("avg")] - public long Avg { get; init; } - - [JsonInclude] - [JsonPropertyName("max")] - public long Max { get; init; } - - [JsonInclude] - [JsonPropertyName("min")] - public long Min { get; init; } - } -} \ 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 deleted file mode 100644 index dee5983be63..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterProcessor - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("current")] - public long Current { get; init; } - - [JsonInclude] - [JsonPropertyName("failed")] - public long Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - } -} \ 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 deleted file mode 100644 index 61c1c9a248a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ClusterShardMetrics - { - [JsonInclude] - [JsonPropertyName("avg")] - public double Avg { get; init; } - - [JsonInclude] - [JsonPropertyName("max")] - public double Max { get; init; } - - [JsonInclude] - [JsonPropertyName("min")] - public double Min { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/Command.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/Command.g.cs deleted file mode 100644 index 69fb7f4554a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/Command.g.cs +++ /dev/null @@ -1,293 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class Command - { - [JsonInclude] - [JsonPropertyName("allocate_empty_primary")] - public Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? AllocateEmptyPrimary { get; set; } - - [JsonInclude] - [JsonPropertyName("allocate_replica")] - public Elastic.Clients.Elasticsearch.Cluster.CommandAllocateReplicaAction? AllocateReplica { get; set; } - - [JsonInclude] - [JsonPropertyName("allocate_stale_primary")] - public Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? AllocateStalePrimary { get; set; } - - [JsonInclude] - [JsonPropertyName("cancel")] - public Elastic.Clients.Elasticsearch.Cluster.CommandCancelAction? Cancel { get; set; } - - [JsonInclude] - [JsonPropertyName("move")] - public Elastic.Clients.Elasticsearch.Cluster.CommandMoveAction? Move { get; set; } - } - - public sealed partial class CommandDescriptor : SerializableDescriptorBase - { - internal CommandDescriptor(Action configure) => configure.Invoke(this); - public CommandDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? AllocateEmptyPrimaryValue { get; set; } - - private CommandAllocatePrimaryActionDescriptor AllocateEmptyPrimaryDescriptor { get; set; } - - private Action AllocateEmptyPrimaryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Cluster.CommandAllocateReplicaAction? AllocateReplicaValue { get; set; } - - private CommandAllocateReplicaActionDescriptor AllocateReplicaDescriptor { get; set; } - - private Action AllocateReplicaDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? AllocateStalePrimaryValue { get; set; } - - private CommandAllocatePrimaryActionDescriptor AllocateStalePrimaryDescriptor { get; set; } - - private Action AllocateStalePrimaryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Cluster.CommandCancelAction? CancelValue { get; set; } - - private CommandCancelActionDescriptor CancelDescriptor { get; set; } - - private Action CancelDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Cluster.CommandMoveAction? MoveValue { get; set; } - - private CommandMoveActionDescriptor MoveDescriptor { get; set; } - - private Action MoveDescriptorAction { get; set; } - - public CommandDescriptor AllocateEmptyPrimary(Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? allocateEmptyPrimary) - { - AllocateEmptyPrimaryDescriptor = null; - AllocateEmptyPrimaryDescriptorAction = null; - AllocateEmptyPrimaryValue = allocateEmptyPrimary; - return Self; - } - - public CommandDescriptor AllocateEmptyPrimary(CommandAllocatePrimaryActionDescriptor descriptor) - { - AllocateEmptyPrimaryValue = null; - AllocateEmptyPrimaryDescriptorAction = null; - AllocateEmptyPrimaryDescriptor = descriptor; - return Self; - } - - public CommandDescriptor AllocateEmptyPrimary(Action configure) - { - AllocateEmptyPrimaryValue = null; - AllocateEmptyPrimaryDescriptor = null; - AllocateEmptyPrimaryDescriptorAction = configure; - return Self; - } - - public CommandDescriptor AllocateReplica(Elastic.Clients.Elasticsearch.Cluster.CommandAllocateReplicaAction? allocateReplica) - { - AllocateReplicaDescriptor = null; - AllocateReplicaDescriptorAction = null; - AllocateReplicaValue = allocateReplica; - return Self; - } - - public CommandDescriptor AllocateReplica(CommandAllocateReplicaActionDescriptor descriptor) - { - AllocateReplicaValue = null; - AllocateReplicaDescriptorAction = null; - AllocateReplicaDescriptor = descriptor; - return Self; - } - - public CommandDescriptor AllocateReplica(Action configure) - { - AllocateReplicaValue = null; - AllocateReplicaDescriptor = null; - AllocateReplicaDescriptorAction = configure; - return Self; - } - - public CommandDescriptor AllocateStalePrimary(Elastic.Clients.Elasticsearch.Cluster.CommandAllocatePrimaryAction? allocateStalePrimary) - { - AllocateStalePrimaryDescriptor = null; - AllocateStalePrimaryDescriptorAction = null; - AllocateStalePrimaryValue = allocateStalePrimary; - return Self; - } - - public CommandDescriptor AllocateStalePrimary(CommandAllocatePrimaryActionDescriptor descriptor) - { - AllocateStalePrimaryValue = null; - AllocateStalePrimaryDescriptorAction = null; - AllocateStalePrimaryDescriptor = descriptor; - return Self; - } - - public CommandDescriptor AllocateStalePrimary(Action configure) - { - AllocateStalePrimaryValue = null; - AllocateStalePrimaryDescriptor = null; - AllocateStalePrimaryDescriptorAction = configure; - return Self; - } - - public CommandDescriptor Cancel(Elastic.Clients.Elasticsearch.Cluster.CommandCancelAction? cancel) - { - CancelDescriptor = null; - CancelDescriptorAction = null; - CancelValue = cancel; - return Self; - } - - public CommandDescriptor Cancel(CommandCancelActionDescriptor descriptor) - { - CancelValue = null; - CancelDescriptorAction = null; - CancelDescriptor = descriptor; - return Self; - } - - public CommandDescriptor Cancel(Action configure) - { - CancelValue = null; - CancelDescriptor = null; - CancelDescriptorAction = configure; - return Self; - } - - public CommandDescriptor Move(Elastic.Clients.Elasticsearch.Cluster.CommandMoveAction? move) - { - MoveDescriptor = null; - MoveDescriptorAction = null; - MoveValue = move; - return Self; - } - - public CommandDescriptor Move(CommandMoveActionDescriptor descriptor) - { - MoveValue = null; - MoveDescriptorAction = null; - MoveDescriptor = descriptor; - return Self; - } - - public CommandDescriptor Move(Action configure) - { - MoveValue = null; - MoveDescriptor = null; - MoveDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllocateEmptyPrimaryDescriptor is not null) - { - writer.WritePropertyName("allocate_empty_primary"); - JsonSerializer.Serialize(writer, AllocateEmptyPrimaryDescriptor, options); - } - else if (AllocateEmptyPrimaryDescriptorAction is not null) - { - writer.WritePropertyName("allocate_empty_primary"); - JsonSerializer.Serialize(writer, new CommandAllocatePrimaryActionDescriptor(AllocateEmptyPrimaryDescriptorAction), options); - } - else if (AllocateEmptyPrimaryValue is not null) - { - writer.WritePropertyName("allocate_empty_primary"); - JsonSerializer.Serialize(writer, AllocateEmptyPrimaryValue, options); - } - - if (AllocateReplicaDescriptor is not null) - { - writer.WritePropertyName("allocate_replica"); - JsonSerializer.Serialize(writer, AllocateReplicaDescriptor, options); - } - else if (AllocateReplicaDescriptorAction is not null) - { - writer.WritePropertyName("allocate_replica"); - JsonSerializer.Serialize(writer, new CommandAllocateReplicaActionDescriptor(AllocateReplicaDescriptorAction), options); - } - else if (AllocateReplicaValue is not null) - { - writer.WritePropertyName("allocate_replica"); - JsonSerializer.Serialize(writer, AllocateReplicaValue, options); - } - - if (AllocateStalePrimaryDescriptor is not null) - { - writer.WritePropertyName("allocate_stale_primary"); - JsonSerializer.Serialize(writer, AllocateStalePrimaryDescriptor, options); - } - else if (AllocateStalePrimaryDescriptorAction is not null) - { - writer.WritePropertyName("allocate_stale_primary"); - JsonSerializer.Serialize(writer, new CommandAllocatePrimaryActionDescriptor(AllocateStalePrimaryDescriptorAction), options); - } - else if (AllocateStalePrimaryValue is not null) - { - writer.WritePropertyName("allocate_stale_primary"); - JsonSerializer.Serialize(writer, AllocateStalePrimaryValue, options); - } - - if (CancelDescriptor is not null) - { - writer.WritePropertyName("cancel"); - JsonSerializer.Serialize(writer, CancelDescriptor, options); - } - else if (CancelDescriptorAction is not null) - { - writer.WritePropertyName("cancel"); - JsonSerializer.Serialize(writer, new CommandCancelActionDescriptor(CancelDescriptorAction), options); - } - else if (CancelValue is not null) - { - writer.WritePropertyName("cancel"); - JsonSerializer.Serialize(writer, CancelValue, options); - } - - if (MoveDescriptor is not null) - { - writer.WritePropertyName("move"); - JsonSerializer.Serialize(writer, MoveDescriptor, options); - } - else if (MoveDescriptorAction is not null) - { - writer.WritePropertyName("move"); - JsonSerializer.Serialize(writer, new CommandMoveActionDescriptor(MoveDescriptorAction), options); - } - else if (MoveValue is not null) - { - writer.WritePropertyName("move"); - JsonSerializer.Serialize(writer, MoveValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocatePrimaryAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocatePrimaryAction.g.cs deleted file mode 100644 index f50d0a7006f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocatePrimaryAction.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CommandAllocatePrimaryAction - { - [JsonInclude] - [JsonPropertyName("accept_data_loss")] - public bool AcceptDataLoss { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; set; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; set; } - } - - public sealed partial class CommandAllocatePrimaryActionDescriptor : SerializableDescriptorBase - { - internal CommandAllocatePrimaryActionDescriptor(Action configure) => configure.Invoke(this); - public CommandAllocatePrimaryActionDescriptor() : base() - { - } - - private bool AcceptDataLossValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private string NodeValue { get; set; } - - private int ShardValue { get; set; } - - public CommandAllocatePrimaryActionDescriptor AcceptDataLoss(bool acceptDataLoss = true) - { - AcceptDataLossValue = acceptDataLoss; - return Self; - } - - public CommandAllocatePrimaryActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public CommandAllocatePrimaryActionDescriptor Node(string node) - { - NodeValue = node; - return Self; - } - - public CommandAllocatePrimaryActionDescriptor Shard(int shard) - { - ShardValue = shard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("accept_data_loss"); - writer.WriteBooleanValue(AcceptDataLossValue); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WritePropertyName("node"); - writer.WriteStringValue(NodeValue); - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocateReplicaAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocateReplicaAction.g.cs deleted file mode 100644 index 064ab0d7b55..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandAllocateReplicaAction.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CommandAllocateReplicaAction - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; set; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; set; } - } - - public sealed partial class CommandAllocateReplicaActionDescriptor : SerializableDescriptorBase - { - internal CommandAllocateReplicaActionDescriptor(Action configure) => configure.Invoke(this); - public CommandAllocateReplicaActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private string NodeValue { get; set; } - - private int ShardValue { get; set; } - - public CommandAllocateReplicaActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public CommandAllocateReplicaActionDescriptor Node(string node) - { - NodeValue = node; - return Self; - } - - public CommandAllocateReplicaActionDescriptor Shard(int shard) - { - ShardValue = shard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WritePropertyName("node"); - writer.WriteStringValue(NodeValue); - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandCancelAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandCancelAction.g.cs deleted file mode 100644 index 79d29ba8d3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandCancelAction.g.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CommandCancelAction - { - [JsonInclude] - [JsonPropertyName("allow_primary")] - public bool? AllowPrimary { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; set; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; set; } - } - - public sealed partial class CommandCancelActionDescriptor : SerializableDescriptorBase - { - internal CommandCancelActionDescriptor(Action configure) => configure.Invoke(this); - public CommandCancelActionDescriptor() : base() - { - } - - private bool? AllowPrimaryValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private string NodeValue { get; set; } - - private int ShardValue { get; set; } - - public CommandCancelActionDescriptor AllowPrimary(bool? allowPrimary = true) - { - AllowPrimaryValue = allowPrimary; - return Self; - } - - public CommandCancelActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public CommandCancelActionDescriptor Node(string node) - { - NodeValue = node; - return Self; - } - - public CommandCancelActionDescriptor Shard(int shard) - { - ShardValue = shard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowPrimaryValue.HasValue) - { - writer.WritePropertyName("allow_primary"); - writer.WriteBooleanValue(AllowPrimaryValue.Value); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WritePropertyName("node"); - writer.WriteStringValue(NodeValue); - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandMoveAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandMoveAction.g.cs deleted file mode 100644 index ced4682469e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CommandMoveAction.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CommandMoveAction - { - [JsonInclude] - [JsonPropertyName("from_node")] - public string FromNode { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; set; } - - [JsonInclude] - [JsonPropertyName("to_node")] - public string ToNode { get; set; } - } - - public sealed partial class CommandMoveActionDescriptor : SerializableDescriptorBase - { - internal CommandMoveActionDescriptor(Action configure) => configure.Invoke(this); - public CommandMoveActionDescriptor() : base() - { - } - - private string FromNodeValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private int ShardValue { get; set; } - - private string ToNodeValue { get; set; } - - public CommandMoveActionDescriptor FromNode(string fromNode) - { - FromNodeValue = fromNode; - return Self; - } - - public CommandMoveActionDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public CommandMoveActionDescriptor Shard(int shard) - { - ShardValue = shard; - return Self; - } - - public CommandMoveActionDescriptor ToNode(string toNode) - { - ToNodeValue = toNode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("from_node"); - writer.WriteStringValue(FromNodeValue); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue); - writer.WritePropertyName("to_node"); - writer.WriteStringValue(ToNodeValue); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 449376716cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplate.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ComponentTemplate - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs deleted file mode 100644 index ec317185b61..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class CurrentNode - { - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("weight_ranking")] - public int WeightRanking { get; init; } - } -} \ 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 deleted file mode 100644 index 3b213401352..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class DiskUsage - { - [JsonInclude] - [JsonPropertyName("free_bytes")] - public long FreeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_disk_percent")] - public double FreeDiskPercent { get; init; } - - [JsonInclude] - [JsonPropertyName("path")] - public string Path { get; init; } - - [JsonInclude] - [JsonPropertyName("total_bytes")] - public long TotalBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_bytes")] - public long UsedBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_disk_percent")] - public double UsedDiskPercent { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs deleted file mode 100644 index fe346021837..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class FieldTypes - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("index_count")] - public int IndexCount { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("script_count")] - public int? ScriptCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs deleted file mode 100644 index 39072907123..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class FieldTypesMappings - { - [JsonInclude] - [JsonPropertyName("field_types")] - public IReadOnlyCollection FieldTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("runtime_field_types")] - public IReadOnlyCollection? RuntimeFieldTypes { get; init; } - } -} \ 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 deleted file mode 100644 index cb747d39e3c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class IndexingPressure - { - [JsonInclude] - [JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemory Memory { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs deleted file mode 100644 index ba2d2eb84b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class IndexingPressureMemory - { - [JsonInclude] - [JsonPropertyName("current")] - public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemorySummary Current { get; init; } - - [JsonInclude] - [JsonPropertyName("limit_in_bytes")] - public long LimitInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemorySummary Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs deleted file mode 100644 index 34306c36d1d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class IndexingPressureMemorySummary - { - [JsonInclude] - [JsonPropertyName("all_in_bytes")] - public long AllInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("combined_coordinating_and_primary_in_bytes")] - public long CombinedCoordinatingAndPrimaryInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("coordinating_in_bytes")] - public long CoordinatingInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("coordinating_rejections")] - public long? CoordinatingRejections { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_in_bytes")] - public long PrimaryInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_rejections")] - public long? PrimaryRejections { get; init; } - - [JsonInclude] - [JsonPropertyName("replica_in_bytes")] - public long ReplicaInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("replica_rejections")] - public long? ReplicaRejections { get; init; } - } -} \ 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 deleted file mode 100644 index bb3493f30a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class IndicesVersions - { - [JsonInclude] - [JsonPropertyName("index_count")] - public int IndexCount { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_shard_count")] - public int PrimaryShardCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_primary_bytes")] - public long TotalPrimaryBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs deleted file mode 100644 index e982a0e6e2a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class NodeAllocationExplanation - { - [JsonInclude] - [JsonPropertyName("deciders")] - public IReadOnlyCollection Deciders { get; init; } - - [JsonInclude] - [JsonPropertyName("node_attributes")] - public Dictionary NodeAttributes { get; init; } - - [JsonInclude] - [JsonPropertyName("node_decision")] - public Elastic.Clients.Elasticsearch.Cluster.Decision NodeDecision { get; init; } - - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("node_name")] - public string NodeName { get; init; } - - [JsonInclude] - [JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.Cluster.AllocationStore? Store { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("weight_ranking")] - public int WeightRanking { get; init; } - } -} \ 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 deleted file mode 100644 index 35be030cbec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class NodeDiskUsage - { - [JsonInclude] - [JsonPropertyName("least_available")] - public Elastic.Clients.Elasticsearch.Cluster.DiskUsage LeastAvailable { get; init; } - - [JsonInclude] - [JsonPropertyName("most_available")] - public Elastic.Clients.Elasticsearch.Cluster.DiskUsage MostAvailable { get; init; } - - [JsonInclude] - [JsonPropertyName("node_name")] - public string NodeName { get; init; } - } -} \ 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 deleted file mode 100644 index ce5b5657ca7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class NodePackagingType - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("flavor")] - public string Flavor { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs deleted file mode 100644 index 3443a950000..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class OperatingSystemMemoryInfo - { - [JsonInclude] - [JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_percent")] - public int FreePercent { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_in_bytes")] - public long UsedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_percent")] - public int UsedPercent { get; init; } - } -} \ 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 deleted file mode 100644 index 2db16df0c6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class PendingTask - { - [JsonInclude] - [JsonPropertyName("executing")] - public bool Executing { get; init; } - - [JsonInclude] - [JsonPropertyName("insert_order")] - public int InsertOrder { get; init; } - - [JsonInclude] - [JsonPropertyName("priority")] - public string Priority { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public string Source { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_queue")] - public Elastic.Clients.Elasticsearch.Duration? TimeInQueue { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_queue_millis")] - public long TimeInQueueMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteDecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteDecision.g.cs deleted file mode 100644 index 0094b41e0b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteDecision.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class RerouteDecision - { - [JsonInclude] - [JsonPropertyName("decider")] - public string Decider { get; init; } - - [JsonInclude] - [JsonPropertyName("decision")] - public string Decision { get; init; } - - [JsonInclude] - [JsonPropertyName("explanation")] - public string Explanation { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteExplanation.g.cs deleted file mode 100644 index 6e092a8bbe0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteExplanation.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class RerouteExplanation - { - [JsonInclude] - [JsonPropertyName("command")] - public string Command { get; init; } - - [JsonInclude] - [JsonPropertyName("decisions")] - public IReadOnlyCollection Decisions { get; init; } - - [JsonInclude] - [JsonPropertyName("parameters")] - public Elastic.Clients.Elasticsearch.Cluster.RerouteParameters Parameters { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteParameters.g.cs deleted file mode 100644 index aac41e282b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RerouteParameters.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class RerouteParameters - { - [JsonInclude] - [JsonPropertyName("allow_primary")] - public bool AllowPrimary { get; init; } - - [JsonInclude] - [JsonPropertyName("from_node")] - public string? FromNode { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public string Node { get; init; } - - [JsonInclude] - [JsonPropertyName("shard")] - public int Shard { get; init; } - - [JsonInclude] - [JsonPropertyName("to_node")] - public string? ToNode { get; init; } - } -} \ 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 deleted file mode 100644 index 190a95141eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class ReservedSize - { - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("path")] - public string Path { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public IReadOnlyCollection Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ 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 deleted file mode 100644 index 9874a37be74..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Cluster -{ - public sealed partial class RuntimeFieldTypes - { - [JsonInclude] - [JsonPropertyName("chars_max")] - public int CharsMax { get; init; } - - [JsonInclude] - [JsonPropertyName("chars_total")] - public int CharsTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("doc_max")] - public int DocMax { get; init; } - - [JsonInclude] - [JsonPropertyName("doc_total")] - public int DocTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("index_count")] - public int IndexCount { get; init; } - - [JsonInclude] - [JsonPropertyName("lang")] - public IReadOnlyCollection Lang { get; init; } - - [JsonInclude] - [JsonPropertyName("lines_max")] - public int LinesMax { get; init; } - - [JsonInclude] - [JsonPropertyName("lines_total")] - public int LinesTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("scriptless_count")] - public int ScriptlessCount { get; init; } - - [JsonInclude] - [JsonPropertyName("shadowed_count")] - public int ShadowedCount { get; init; } - - [JsonInclude] - [JsonPropertyName("source_max")] - public int SourceMax { get; init; } - - [JsonInclude] - [JsonPropertyName("source_total")] - public int SourceTotal { get; init; } - } -} \ 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 deleted file mode 100644 index 0089ec103a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.DanglingIndices -{ - public sealed partial class DanglingIndex - { - [JsonInclude] - [JsonPropertyName("creation_date_millis")] - public long CreationDateMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("index_name")] - public string IndexName { get; init; } - - [JsonInclude] - [JsonPropertyName("index_uuid")] - public string IndexUuid { get; init; } - - [JsonInclude] - [JsonPropertyName("node_ids")] - public Elastic.Clients.Elasticsearch.Ids NodeIds { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs deleted file mode 100644 index 4809ad426a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class CacheStats - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("evictions")] - public int Evictions { get; init; } - - [JsonInclude] - [JsonPropertyName("hits")] - public int Hits { get; init; } - - [JsonInclude] - [JsonPropertyName("misses")] - public int Misses { get; init; } - - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Configuration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Configuration.g.cs deleted file mode 100644 index 748708d2e95..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Configuration.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class Configuration - { - [JsonInclude] - [JsonPropertyName("geo_match")] - public Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatch { get; init; } - - [JsonInclude] - [JsonPropertyName("match")] - public Elastic.Clients.Elasticsearch.Enrich.Policy Match { get; init; } - - [JsonInclude] - [JsonPropertyName("range")] - public Elastic.Clients.Elasticsearch.Enrich.Policy Range { get; init; } - } -} \ 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 deleted file mode 100644 index e170b659064..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class CoordinatorStats - { - [JsonInclude] - [JsonPropertyName("executed_searches_total")] - public long ExecutedSearchesTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("queue_size")] - public int QueueSize { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_requests_current")] - public int RemoteRequestsCurrent { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_requests_total")] - public long RemoteRequestsTotal { get; init; } - } -} \ 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 deleted file mode 100644 index 508233b9cb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class ExecuteEnrichPolicyStatus - { - [JsonInclude] - [JsonPropertyName("phase")] - public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicyPhase Phase { get; init; } - } -} \ 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 deleted file mode 100644 index 9f5cbad85ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class ExecutingPolicy - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Policy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Policy.g.cs deleted file mode 100644 index afcd3c858af..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Policy.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class Policy - { - [JsonInclude] - [JsonPropertyName("enrich_fields")] - public Elastic.Clients.Elasticsearch.Fields EnrichFields { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("match_field")] - public Elastic.Clients.Elasticsearch.Field MatchField { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name? Name { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public string? Query { get; set; } - } - - public sealed partial class PolicyDescriptor : SerializableDescriptorBase> - { - internal PolicyDescriptor(Action> configure) => configure.Invoke(this); - public PolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Fields EnrichFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field MatchFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } - - private string? QueryValue { get; set; } - - public PolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Fields enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public PolicyDescriptor EnrichFields(Expression> enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public PolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - IndicesValue = indices; - return Self; - } - - public PolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Field matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public PolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public PolicyDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - NameValue = name; - return Self; - } - - public PolicyDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enrich_fields"); - JsonSerializer.Serialize(writer, EnrichFieldsValue, options); - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("match_field"); - JsonSerializer.Serialize(writer, MatchFieldValue, options); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class PolicyDescriptor : SerializableDescriptorBase - { - internal PolicyDescriptor(Action configure) => configure.Invoke(this); - public PolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Fields EnrichFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field MatchFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } - - private string? QueryValue { get; set; } - - public PolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Fields enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public PolicyDescriptor EnrichFields(Expression> enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public PolicyDescriptor EnrichFields(Expression> enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public PolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - IndicesValue = indices; - return Self; - } - - public PolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Field matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public PolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public PolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public PolicyDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) - { - NameValue = name; - return Self; - } - - public PolicyDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enrich_fields"); - JsonSerializer.Serialize(writer, EnrichFieldsValue, options); - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("match_field"); - JsonSerializer.Serialize(writer, MatchFieldValue, options); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Summary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Summary.g.cs deleted file mode 100644 index 4046f6e97fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/Summary.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - public sealed partial class Summary - { - [JsonInclude] - [JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Enrich.Configuration Config { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ccr.g.cs deleted file mode 100644 index d64e2ab14a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ccr.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ccr -{ - [JsonConverter(typeof(FollowerIndexStatusConverter))] - public enum FollowerIndexStatus - { - [EnumMember(Value = "paused")] - Paused, - [EnumMember(Value = "active")] - Active - } - - internal sealed class FollowerIndexStatusConverter : JsonConverter - { - public override FollowerIndexStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "paused": - return FollowerIndexStatus.Paused; - case "active": - return FollowerIndexStatus.Active; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FollowerIndexStatus value, JsonSerializerOptions options) - { - switch (value) - { - case FollowerIndexStatus.Paused: - writer.WriteStringValue("paused"); - return; - case FollowerIndexStatus.Active: - writer.WriteStringValue("active"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs index 8d2aab9e4d9..a0aa63b26b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs @@ -24,146 +24,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.Cluster { - [JsonConverter(typeof(AllocationExplainDecisionConverter))] - public enum AllocationExplainDecision - { - [EnumMember(Value = "YES")] - Yes, - [EnumMember(Value = "THROTTLE")] - Throttle, - [EnumMember(Value = "NO")] - No, - [EnumMember(Value = "ALWAYS")] - Always - } - - internal sealed class AllocationExplainDecisionConverter : JsonConverter - { - public override AllocationExplainDecision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "YES": - return AllocationExplainDecision.Yes; - case "THROTTLE": - return AllocationExplainDecision.Throttle; - case "NO": - return AllocationExplainDecision.No; - case "ALWAYS": - return AllocationExplainDecision.Always; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AllocationExplainDecision value, JsonSerializerOptions options) - { - switch (value) - { - case AllocationExplainDecision.Yes: - writer.WriteStringValue("YES"); - return; - case AllocationExplainDecision.Throttle: - writer.WriteStringValue("THROTTLE"); - return; - case AllocationExplainDecision.No: - writer.WriteStringValue("NO"); - return; - case AllocationExplainDecision.Always: - writer.WriteStringValue("ALWAYS"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(DecisionConverter))] - public enum Decision - { - [EnumMember(Value = "yes")] - Yes, - [EnumMember(Value = "worse_balance")] - WorseBalance, - [EnumMember(Value = "throttled")] - Throttled, - [EnumMember(Value = "no_valid_shard_copy")] - NoValidShardCopy, - [EnumMember(Value = "no_attempt")] - NoAttempt, - [EnumMember(Value = "no")] - No, - [EnumMember(Value = "awaiting_info")] - AwaitingInfo, - [EnumMember(Value = "allocation_delayed")] - AllocationDelayed - } - - internal sealed class DecisionConverter : JsonConverter - { - public override Decision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yes": - return Decision.Yes; - case "worse_balance": - return Decision.WorseBalance; - case "throttled": - return Decision.Throttled; - case "no_valid_shard_copy": - return Decision.NoValidShardCopy; - case "no_attempt": - return Decision.NoAttempt; - case "no": - return Decision.No; - case "awaiting_info": - return Decision.AwaitingInfo; - case "allocation_delayed": - return Decision.AllocationDelayed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Decision value, JsonSerializerOptions options) - { - switch (value) - { - case Decision.Yes: - writer.WriteStringValue("yes"); - return; - case Decision.WorseBalance: - writer.WriteStringValue("worse_balance"); - return; - case Decision.Throttled: - writer.WriteStringValue("throttled"); - return; - case Decision.NoValidShardCopy: - writer.WriteStringValue("no_valid_shard_copy"); - return; - case Decision.NoAttempt: - writer.WriteStringValue("no_attempt"); - return; - case Decision.No: - writer.WriteStringValue("no"); - return; - case Decision.AwaitingInfo: - writer.WriteStringValue("awaiting_info"); - return; - case Decision.AllocationDelayed: - writer.WriteStringValue("allocation_delayed"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(UnassignedInformationReasonConverter))] public enum UnassignedInformationReason { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs deleted file mode 100644 index 54727f9a9e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Enrich -{ - [JsonConverter(typeof(EnrichPolicyPhaseConverter))] - public enum EnrichPolicyPhase - { - [EnumMember(Value = "SCHEDULED")] - Scheduled, - [EnumMember(Value = "RUNNING")] - Running, - [EnumMember(Value = "FAILED")] - Failed, - [EnumMember(Value = "COMPLETE")] - Complete - } - - internal sealed class EnrichPolicyPhaseConverter : JsonConverter - { - public override EnrichPolicyPhase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "SCHEDULED": - return EnrichPolicyPhase.Scheduled; - case "RUNNING": - return EnrichPolicyPhase.Running; - case "FAILED": - return EnrichPolicyPhase.Failed; - case "COMPLETE": - return EnrichPolicyPhase.Complete; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, EnrichPolicyPhase value, JsonSerializerOptions options) - { - switch (value) - { - case EnrichPolicyPhase.Scheduled: - writer.WriteStringValue("SCHEDULED"); - return; - case EnrichPolicyPhase.Running: - writer.WriteStringValue("RUNNING"); - return; - case EnrichPolicyPhase.Failed: - writer.WriteStringValue("FAILED"); - return; - case EnrichPolicyPhase.Complete: - writer.WriteStringValue("COMPLETE"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs deleted file mode 100644 index 21e8ded22f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - [JsonConverter(typeof(ConvertTypeConverter))] - public enum ConvertType - { - [EnumMember(Value = "string")] - String, - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "integer")] - Integer, - [EnumMember(Value = "float")] - Float, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "boolean")] - Boolean, - [EnumMember(Value = "auto")] - Auto - } - - internal sealed class ConvertTypeConverter : JsonConverter - { - public override ConvertType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "string": - return ConvertType.String; - case "long": - return ConvertType.Long; - case "integer": - return ConvertType.Integer; - case "float": - return ConvertType.Float; - case "double": - return ConvertType.Double; - case "boolean": - return ConvertType.Boolean; - case "auto": - return ConvertType.Auto; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSerializerOptions options) - { - switch (value) - { - case ConvertType.String: - writer.WriteStringValue("string"); - return; - case ConvertType.Long: - writer.WriteStringValue("long"); - return; - case ConvertType.Integer: - writer.WriteStringValue("integer"); - return; - case ConvertType.Float: - writer.WriteStringValue("float"); - return; - case ConvertType.Double: - writer.WriteStringValue("double"); - return; - case ConvertType.Boolean: - writer.WriteStringValue("boolean"); - return; - case ConvertType.Auto: - writer.WriteStringValue("auto"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ShapeTypeConverter))] - public enum ShapeType - { - [EnumMember(Value = "shape")] - Shape, - [EnumMember(Value = "geo_shape")] - GeoShape - } - - internal sealed class ShapeTypeConverter : JsonConverter - { - public override ShapeType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "shape": - return ShapeType.Shape; - case "geo_shape": - return ShapeType.GeoShape; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShapeType value, JsonSerializerOptions options) - { - switch (value) - { - case ShapeType.Shape: - writer.WriteStringValue("shape"); - return; - case ShapeType.GeoShape: - writer.WriteStringValue("geo_shape"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(UserAgentPropertyConverter))] - public enum UserAgentProperty - { - [EnumMember(Value = "PATCH")] - Patch, - [EnumMember(Value = "OS_NAME")] - OsName, - [EnumMember(Value = "OS_MINOR")] - OsMinor, - [EnumMember(Value = "OS_MAJOR")] - OsMajor, - [EnumMember(Value = "OS")] - Os, - [EnumMember(Value = "NAME")] - Name, - [EnumMember(Value = "MINOR")] - Minor, - [EnumMember(Value = "MAJOR")] - Major, - [EnumMember(Value = "DEVICE")] - Device, - [EnumMember(Value = "BUILD")] - Build - } - - internal sealed class UserAgentPropertyConverter : JsonConverter - { - public override UserAgentProperty Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "PATCH": - return UserAgentProperty.Patch; - case "OS_NAME": - return UserAgentProperty.OsName; - case "OS_MINOR": - return UserAgentProperty.OsMinor; - case "OS_MAJOR": - return UserAgentProperty.OsMajor; - case "OS": - return UserAgentProperty.Os; - case "NAME": - return UserAgentProperty.Name; - case "MINOR": - return UserAgentProperty.Minor; - case "MAJOR": - return UserAgentProperty.Major; - case "DEVICE": - return UserAgentProperty.Device; - case "BUILD": - return UserAgentProperty.Build; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, UserAgentProperty value, JsonSerializerOptions options) - { - switch (value) - { - case UserAgentProperty.Patch: - writer.WriteStringValue("PATCH"); - return; - case UserAgentProperty.OsName: - writer.WriteStringValue("OS_NAME"); - return; - case UserAgentProperty.OsMinor: - writer.WriteStringValue("OS_MINOR"); - return; - case UserAgentProperty.OsMajor: - writer.WriteStringValue("OS_MAJOR"); - return; - case UserAgentProperty.Os: - writer.WriteStringValue("OS"); - return; - case UserAgentProperty.Name: - writer.WriteStringValue("NAME"); - return; - case UserAgentProperty.Minor: - writer.WriteStringValue("MINOR"); - return; - case UserAgentProperty.Major: - writer.WriteStringValue("MAJOR"); - return; - case UserAgentProperty.Device: - writer.WriteStringValue("DEVICE"); - return; - case UserAgentProperty.Build: - writer.WriteStringValue("BUILD"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.License.g.cs deleted file mode 100644 index 243952b385b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.License.g.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - [JsonConverter(typeof(LicenseStatusConverter))] - public enum LicenseStatus - { - [EnumMember(Value = "valid")] - Valid, - [EnumMember(Value = "invalid")] - Invalid, - [EnumMember(Value = "expired")] - Expired, - [EnumMember(Value = "active")] - Active - } - - internal sealed class LicenseStatusConverter : JsonConverter - { - public override LicenseStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "valid": - return LicenseStatus.Valid; - case "invalid": - return LicenseStatus.Invalid; - case "expired": - return LicenseStatus.Expired; - case "active": - return LicenseStatus.Active; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LicenseStatus value, JsonSerializerOptions options) - { - switch (value) - { - case LicenseStatus.Valid: - writer.WriteStringValue("valid"); - return; - case LicenseStatus.Invalid: - writer.WriteStringValue("invalid"); - return; - case LicenseStatus.Expired: - writer.WriteStringValue("expired"); - return; - case LicenseStatus.Active: - writer.WriteStringValue("active"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(LicenseTypeConverter))] - public enum LicenseType - { - [EnumMember(Value = "trial")] - Trial, - [EnumMember(Value = "standard")] - Standard, - [EnumMember(Value = "silver")] - Silver, - [EnumMember(Value = "platinum")] - Platinum, - [EnumMember(Value = "missing")] - Missing, - [EnumMember(Value = "gold")] - Gold, - [EnumMember(Value = "enterprise")] - Enterprise, - [EnumMember(Value = "dev")] - Dev, - [EnumMember(Value = "basic")] - Basic - } - - internal sealed class LicenseTypeConverter : JsonConverter - { - public override LicenseType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "trial": - return LicenseType.Trial; - case "standard": - return LicenseType.Standard; - case "silver": - return LicenseType.Silver; - case "platinum": - return LicenseType.Platinum; - case "missing": - return LicenseType.Missing; - case "gold": - return LicenseType.Gold; - case "enterprise": - return LicenseType.Enterprise; - case "dev": - return LicenseType.Dev; - case "basic": - return LicenseType.Basic; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LicenseType value, JsonSerializerOptions options) - { - switch (value) - { - case LicenseType.Trial: - writer.WriteStringValue("trial"); - return; - case LicenseType.Standard: - writer.WriteStringValue("standard"); - return; - case LicenseType.Silver: - writer.WriteStringValue("silver"); - return; - case LicenseType.Platinum: - writer.WriteStringValue("platinum"); - return; - case LicenseType.Missing: - writer.WriteStringValue("missing"); - return; - case LicenseType.Gold: - writer.WriteStringValue("gold"); - return; - case LicenseType.Enterprise: - writer.WriteStringValue("enterprise"); - return; - case LicenseType.Dev: - writer.WriteStringValue("dev"); - return; - case LicenseType.Basic: - writer.WriteStringValue("basic"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs index 00494b103ea..aa14409a97e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ml.g.cs @@ -24,734 +24,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.Ml { - [JsonConverter(typeof(AppliesToConverter))] - public enum AppliesTo - { - [EnumMember(Value = "typical")] - Typical, - [EnumMember(Value = "time")] - Time, - [EnumMember(Value = "diff_from_typical")] - DiffFromTypical, - [EnumMember(Value = "actual")] - Actual - } - - internal sealed class AppliesToConverter : JsonConverter - { - public override AppliesTo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "typical": - return AppliesTo.Typical; - case "time": - return AppliesTo.Time; - case "diff_from_typical": - return AppliesTo.DiffFromTypical; - case "actual": - return AppliesTo.Actual; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AppliesTo value, JsonSerializerOptions options) - { - switch (value) - { - case AppliesTo.Typical: - writer.WriteStringValue("typical"); - return; - case AppliesTo.Time: - writer.WriteStringValue("time"); - return; - case AppliesTo.DiffFromTypical: - writer.WriteStringValue("diff_from_typical"); - return; - case AppliesTo.Actual: - writer.WriteStringValue("actual"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(CategorizationStatusConverter))] - public enum CategorizationStatus - { - [EnumMember(Value = "warn")] - Warn, - [EnumMember(Value = "ok")] - Ok - } - - internal sealed class CategorizationStatusConverter : JsonConverter - { - public override CategorizationStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "warn": - return CategorizationStatus.Warn; - case "ok": - return CategorizationStatus.Ok; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CategorizationStatus value, JsonSerializerOptions options) - { - switch (value) - { - case CategorizationStatus.Warn: - writer.WriteStringValue("warn"); - return; - case CategorizationStatus.Ok: - writer.WriteStringValue("ok"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ChunkingModeConverter))] - public enum ChunkingMode - { - [EnumMember(Value = "off")] - Off, - [EnumMember(Value = "manual")] - Manual, - [EnumMember(Value = "auto")] - Auto - } - - internal sealed class ChunkingModeConverter : JsonConverter - { - public override ChunkingMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "off": - return ChunkingMode.Off; - case "manual": - return ChunkingMode.Manual; - case "auto": - return ChunkingMode.Auto; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ChunkingMode value, JsonSerializerOptions options) - { - switch (value) - { - case ChunkingMode.Off: - writer.WriteStringValue("off"); - return; - case ChunkingMode.Manual: - writer.WriteStringValue("manual"); - return; - case ChunkingMode.Auto: - writer.WriteStringValue("auto"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ConditionOperatorConverter))] - public enum ConditionOperator - { - [EnumMember(Value = "lte")] - Lte, - [EnumMember(Value = "lt")] - Lt, - [EnumMember(Value = "gte")] - Gte, - [EnumMember(Value = "gt")] - Gt - } - - internal sealed class ConditionOperatorConverter : JsonConverter - { - public override ConditionOperator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "lte": - return ConditionOperator.Lte; - case "lt": - return ConditionOperator.Lt; - case "gte": - return ConditionOperator.Gte; - case "gt": - return ConditionOperator.Gt; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ConditionOperator value, JsonSerializerOptions options) - { - switch (value) - { - case ConditionOperator.Lte: - writer.WriteStringValue("lte"); - return; - case ConditionOperator.Lt: - writer.WriteStringValue("lt"); - return; - case ConditionOperator.Gte: - writer.WriteStringValue("gte"); - return; - case ConditionOperator.Gt: - writer.WriteStringValue("gt"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(DataframeStateConverter))] - public enum DataframeState - { - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "failed")] - Failed - } - - internal sealed class DataframeStateConverter : JsonConverter - { - public override DataframeState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DataframeState.Stopping; - case "stopped": - return DataframeState.Stopped; - case "starting": - return DataframeState.Starting; - case "started": - return DataframeState.Started; - case "failed": - return DataframeState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DataframeState value, JsonSerializerOptions options) - { - switch (value) - { - case DataframeState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DataframeState.Stopped: - writer.WriteStringValue("stopped"); - return; - case DataframeState.Starting: - writer.WriteStringValue("starting"); - return; - case DataframeState.Started: - writer.WriteStringValue("started"); - return; - case DataframeState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(DeploymentAllocationStateConverter))] - public enum DeploymentAllocationState - { - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "fully_allocated")] - FullyAllocated - } - - internal sealed class DeploymentAllocationStateConverter : JsonConverter - { - public override DeploymentAllocationState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "starting": - return DeploymentAllocationState.Starting; - case "started": - return DeploymentAllocationState.Started; - case "fully_allocated": - return DeploymentAllocationState.FullyAllocated; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentAllocationState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentAllocationState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentAllocationState.Started: - writer.WriteStringValue("started"); - return; - case DeploymentAllocationState.FullyAllocated: - writer.WriteStringValue("fully_allocated"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(DeploymentStateConverter))] - public enum DeploymentState - { - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started - } - - internal sealed class DeploymentStateConverter : JsonConverter - { - public override DeploymentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DeploymentState.Stopping; - case "starting": - return DeploymentState.Starting; - case "started": - return DeploymentState.Started; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DeploymentState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentState.Started: - writer.WriteStringValue("started"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ExcludeFrequentConverter))] - public enum ExcludeFrequent - { - [EnumMember(Value = "over")] - Over, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "by")] - By, - [EnumMember(Value = "all")] - All - } - - internal sealed class ExcludeFrequentConverter : JsonConverter - { - public override ExcludeFrequent Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "over": - return ExcludeFrequent.Over; - case "none": - return ExcludeFrequent.None; - case "by": - return ExcludeFrequent.By; - case "all": - return ExcludeFrequent.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ExcludeFrequent value, JsonSerializerOptions options) - { - switch (value) - { - case ExcludeFrequent.Over: - writer.WriteStringValue("over"); - return; - case ExcludeFrequent.None: - writer.WriteStringValue("none"); - return; - case ExcludeFrequent.By: - writer.WriteStringValue("by"); - return; - case ExcludeFrequent.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(FilterTypeConverter))] - public enum FilterType - { - [EnumMember(Value = "include")] - Include, - [EnumMember(Value = "exclude")] - Exclude - } - - internal sealed class FilterTypeConverter : JsonConverter - { - public override FilterType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "include": - return FilterType.Include; - case "exclude": - return FilterType.Exclude; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FilterType value, JsonSerializerOptions options) - { - switch (value) - { - case FilterType.Include: - writer.WriteStringValue("include"); - return; - case FilterType.Exclude: - writer.WriteStringValue("exclude"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(JobBlockedReasonConverter))] - public enum JobBlockedReason - { - [EnumMember(Value = "revert")] - Revert, - [EnumMember(Value = "reset")] - Reset, - [EnumMember(Value = "delete")] - Delete - } - - internal sealed class JobBlockedReasonConverter : JsonConverter - { - public override JobBlockedReason Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "revert": - return JobBlockedReason.Revert; - case "reset": - return JobBlockedReason.Reset; - case "delete": - return JobBlockedReason.Delete; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, JobBlockedReason value, JsonSerializerOptions options) - { - switch (value) - { - case JobBlockedReason.Revert: - writer.WriteStringValue("revert"); - return; - case JobBlockedReason.Reset: - writer.WriteStringValue("reset"); - return; - case JobBlockedReason.Delete: - writer.WriteStringValue("delete"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(JobStateConverter))] - public enum JobState - { - [EnumMember(Value = "opening")] - Opening, - [EnumMember(Value = "opened")] - Opened, - [EnumMember(Value = "failed")] - Failed, - [EnumMember(Value = "closing")] - Closing, - [EnumMember(Value = "closed")] - Closed - } - - internal sealed class JobStateConverter : JsonConverter - { - public override JobState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "opening": - return JobState.Opening; - case "opened": - return JobState.Opened; - case "failed": - return JobState.Failed; - case "closing": - return JobState.Closing; - case "closed": - return JobState.Closed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, JobState value, JsonSerializerOptions options) - { - switch (value) - { - case JobState.Opening: - writer.WriteStringValue("opening"); - return; - case JobState.Opened: - writer.WriteStringValue("opened"); - return; - case JobState.Failed: - writer.WriteStringValue("failed"); - return; - case JobState.Closing: - writer.WriteStringValue("closing"); - return; - case JobState.Closed: - writer.WriteStringValue("closed"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(MemoryStatusConverter))] - public enum MemoryStatus - { - [EnumMember(Value = "soft_limit")] - SoftLimit, - [EnumMember(Value = "ok")] - Ok, - [EnumMember(Value = "hard_limit")] - HardLimit - } - - internal sealed class MemoryStatusConverter : JsonConverter - { - public override MemoryStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "soft_limit": - return MemoryStatus.SoftLimit; - case "ok": - return MemoryStatus.Ok; - case "hard_limit": - return MemoryStatus.HardLimit; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MemoryStatus value, JsonSerializerOptions options) - { - switch (value) - { - case MemoryStatus.SoftLimit: - writer.WriteStringValue("soft_limit"); - return; - case MemoryStatus.Ok: - writer.WriteStringValue("ok"); - return; - case MemoryStatus.HardLimit: - writer.WriteStringValue("hard_limit"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(RoutingStateConverter))] - public enum RoutingState - { - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "failed")] - Failed - } - - internal sealed class RoutingStateConverter : JsonConverter - { - public override RoutingState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return RoutingState.Stopping; - case "stopped": - return RoutingState.Stopped; - case "starting": - return RoutingState.Starting; - case "started": - return RoutingState.Started; - case "failed": - return RoutingState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RoutingState value, JsonSerializerOptions options) - { - switch (value) - { - case RoutingState.Stopping: - writer.WriteStringValue("stopping"); - return; - case RoutingState.Stopped: - writer.WriteStringValue("stopped"); - return; - case RoutingState.Starting: - writer.WriteStringValue("starting"); - return; - case RoutingState.Started: - writer.WriteStringValue("started"); - return; - case RoutingState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(RuleActionConverter))] - public enum RuleAction - { - [EnumMember(Value = "skip_result")] - SkipResult, - [EnumMember(Value = "skip_model_update")] - SkipModelUpdate - } - - internal sealed class RuleActionConverter : JsonConverter - { - public override RuleAction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "skip_result": - return RuleAction.SkipResult; - case "skip_model_update": - return RuleAction.SkipModelUpdate; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RuleAction value, JsonSerializerOptions options) - { - switch (value) - { - case RuleAction.SkipResult: - writer.WriteStringValue("skip_result"); - return; - case RuleAction.SkipModelUpdate: - writer.WriteStringValue("skip_model_update"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(TokenizationTruncateConverter))] public enum TokenizationTruncate { @@ -800,53 +72,4 @@ public override void Write(Utf8JsonWriter writer, TokenizationTruncate value, Js writer.WriteNullValue(); } } - - [JsonConverter(typeof(TrainedModelTypeConverter))] - public enum TrainedModelType - { - [EnumMember(Value = "tree_ensemble")] - TreeEnsemble, - [EnumMember(Value = "pytorch")] - Pytorch, - [EnumMember(Value = "lang_ident")] - LangIdent - } - - internal sealed class TrainedModelTypeConverter : JsonConverter - { - public override TrainedModelType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "tree_ensemble": - return TrainedModelType.TreeEnsemble; - case "pytorch": - return TrainedModelType.Pytorch; - case "lang_ident": - return TrainedModelType.LangIdent; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TrainedModelType value, JsonSerializerOptions options) - { - switch (value) - { - case TrainedModelType.TreeEnsemble: - writer.WriteStringValue("tree_ensemble"); - return; - case TrainedModelType.Pytorch: - writer.WriteStringValue("pytorch"); - return; - case TrainedModelType.LangIdent: - writer.WriteStringValue("lang_ident"); - return; - } - - writer.WriteNullValue(); - } - } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs index 7eb234a7b28..18aaaad1592 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs @@ -953,55 +953,6 @@ public override void Write(Utf8JsonWriter writer, Level value, JsonSerializerOpt } } - [JsonConverter(typeof(LifecycleOperationModeConverter))] - public enum LifecycleOperationMode - { - [EnumMember(Value = "STOPPING")] - Stopping, - [EnumMember(Value = "STOPPED")] - Stopped, - [EnumMember(Value = "RUNNING")] - Running - } - - internal sealed class LifecycleOperationModeConverter : JsonConverter - { - public override LifecycleOperationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "STOPPING": - return LifecycleOperationMode.Stopping; - case "STOPPED": - return LifecycleOperationMode.Stopped; - case "RUNNING": - return LifecycleOperationMode.Running; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LifecycleOperationMode value, JsonSerializerOptions options) - { - switch (value) - { - case LifecycleOperationMode.Stopping: - writer.WriteStringValue("STOPPING"); - return; - case LifecycleOperationMode.Stopped: - writer.WriteStringValue("STOPPED"); - return; - case LifecycleOperationMode.Running: - writer.WriteStringValue("RUNNING"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(NodeRoleConverter))] public enum NodeRole { @@ -1715,69 +1666,6 @@ public override void Write(Utf8JsonWriter writer, SuggestSort value, JsonSeriali } } - [JsonConverter(typeof(ThreadTypeConverter))] - public enum ThreadType - { - [EnumMember(Value = "wait")] - Wait, - [EnumMember(Value = "mem")] - Mem, - [EnumMember(Value = "gpu")] - Gpu, - [EnumMember(Value = "cpu")] - Cpu, - [EnumMember(Value = "block")] - Block - } - - internal sealed class ThreadTypeConverter : JsonConverter - { - public override ThreadType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "wait": - return ThreadType.Wait; - case "mem": - return ThreadType.Mem; - case "gpu": - return ThreadType.Gpu; - case "cpu": - return ThreadType.Cpu; - case "block": - return ThreadType.Block; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ThreadType value, JsonSerializerOptions options) - { - switch (value) - { - case ThreadType.Wait: - writer.WriteStringValue("wait"); - return; - case ThreadType.Mem: - writer.WriteStringValue("mem"); - return; - case ThreadType.Gpu: - writer.WriteStringValue("gpu"); - return; - case ThreadType.Cpu: - writer.WriteStringValue("cpu"); - return; - case ThreadType.Block: - writer.WriteStringValue("block"); - return; - } - - writer.WriteNullValue(); - } - } - [JsonConverter(typeof(TimeUnitConverter))] public enum TimeUnit { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchableSnapshots.g.cs deleted file mode 100644 index b6dfa4d337b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchableSnapshots.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - [JsonConverter(typeof(StatsLevelConverter))] - public enum StatsLevel - { - [EnumMember(Value = "shards")] - Shards, - [EnumMember(Value = "indices")] - Indices, - [EnumMember(Value = "cluster")] - Cluster - } - - internal sealed class StatsLevelConverter : JsonConverter - { - public override StatsLevel Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "shards": - return StatsLevel.Shards; - case "indices": - return StatsLevel.Indices; - case "cluster": - return StatsLevel.Cluster; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, StatsLevel value, JsonSerializerOptions options) - { - switch (value) - { - case StatsLevel.Shards: - writer.WriteStringValue("shards"); - return; - case StatsLevel.Indices: - writer.WriteStringValue("indices"); - return; - case StatsLevel.Cluster: - writer.WriteStringValue("cluster"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs deleted file mode 100644 index 4ecadee0884..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs +++ /dev/null @@ -1,572 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - [JsonConverter(typeof(AccessTokenGrantTypeConverter))] - public enum AccessTokenGrantType - { - [EnumMember(Value = "refresh_token")] - RefreshToken, - [EnumMember(Value = "password")] - Password, - [EnumMember(Value = "client_credentials")] - ClientCredentials, - [EnumMember(Value = "_kerberos")] - Kerberos - } - - internal sealed class AccessTokenGrantTypeConverter : JsonConverter - { - public override AccessTokenGrantType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "refresh_token": - return AccessTokenGrantType.RefreshToken; - case "password": - return AccessTokenGrantType.Password; - case "client_credentials": - return AccessTokenGrantType.ClientCredentials; - case "_kerberos": - return AccessTokenGrantType.Kerberos; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AccessTokenGrantType value, JsonSerializerOptions options) - { - switch (value) - { - case AccessTokenGrantType.RefreshToken: - writer.WriteStringValue("refresh_token"); - return; - case AccessTokenGrantType.Password: - writer.WriteStringValue("password"); - return; - case AccessTokenGrantType.ClientCredentials: - writer.WriteStringValue("client_credentials"); - return; - case AccessTokenGrantType.Kerberos: - writer.WriteStringValue("_kerberos"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ApiKeyGrantTypeConverter))] - public enum ApiKeyGrantType - { - [EnumMember(Value = "password")] - Password, - [EnumMember(Value = "access_token")] - AccessToken - } - - internal sealed class ApiKeyGrantTypeConverter : JsonConverter - { - public override ApiKeyGrantType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "password": - return ApiKeyGrantType.Password; - case "access_token": - return ApiKeyGrantType.AccessToken; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ApiKeyGrantType value, JsonSerializerOptions options) - { - switch (value) - { - case ApiKeyGrantType.Password: - writer.WriteStringValue("password"); - return; - case ApiKeyGrantType.AccessToken: - writer.WriteStringValue("access_token"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(ClusterPrivilegeConverter))] - public enum ClusterPrivilege - { - [EnumMember(Value = "transport_client")] - TransportClient, - [EnumMember(Value = "read_slm")] - ReadSlm, - [EnumMember(Value = "read_pipeline")] - ReadPipeline, - [EnumMember(Value = "read_ilm")] - ReadIlm, - [EnumMember(Value = "read_ccr")] - ReadCcr, - [EnumMember(Value = "monitor_watcher")] - MonitorWatcher, - [EnumMember(Value = "monitor_transform")] - MonitorTransform, - [EnumMember(Value = "monitor_text_structure")] - MonitorTextStructure, - [EnumMember(Value = "monitor_snapshot")] - MonitorSnapshot, - [EnumMember(Value = "monitor_rollup")] - MonitorRollup, - [EnumMember(Value = "monitor_ml")] - MonitorMl, - [EnumMember(Value = "monitor")] - Monitor, - [EnumMember(Value = "manage_watcher")] - ManageWatcher, - [EnumMember(Value = "manage_user_profile")] - ManageUserProfile, - [EnumMember(Value = "manage_transform")] - ManageTransform, - [EnumMember(Value = "manage_token")] - ManageToken, - [EnumMember(Value = "manage_slm")] - ManageSlm, - [EnumMember(Value = "manage_service_account")] - ManageServiceAccount, - [EnumMember(Value = "manage_security")] - ManageSecurity, - [EnumMember(Value = "manage_saml")] - ManageSaml, - [EnumMember(Value = "manage_rollup")] - ManageRollup, - [EnumMember(Value = "manage_pipeline")] - ManagePipeline, - [EnumMember(Value = "manage_own_api_key")] - ManageOwnApiKey, - [EnumMember(Value = "manage_oidc")] - ManageOidc, - [EnumMember(Value = "manage_ml")] - ManageMl, - [EnumMember(Value = "manage_logstash_pipelines")] - ManageLogstashPipelines, - [EnumMember(Value = "manage_ingest_pipelines")] - ManageIngestPipelines, - [EnumMember(Value = "manage_index_templates")] - ManageIndexTemplates, - [EnumMember(Value = "manage_ilm")] - ManageIlm, - [EnumMember(Value = "manage_enrich")] - ManageEnrich, - [EnumMember(Value = "manage_ccr")] - ManageCcr, - [EnumMember(Value = "manage_api_key")] - ManageApiKey, - [EnumMember(Value = "manage")] - Manage, - [EnumMember(Value = "grant_api_key")] - GrantApiKey, - [EnumMember(Value = "create_snapshot")] - CreateSnapshot, - [EnumMember(Value = "cancel_task")] - CancelTask, - [EnumMember(Value = "all")] - All - } - - internal sealed class ClusterPrivilegeConverter : JsonConverter - { - public override ClusterPrivilege Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "transport_client": - return ClusterPrivilege.TransportClient; - case "read_slm": - return ClusterPrivilege.ReadSlm; - case "read_pipeline": - return ClusterPrivilege.ReadPipeline; - case "read_ilm": - return ClusterPrivilege.ReadIlm; - case "read_ccr": - return ClusterPrivilege.ReadCcr; - case "monitor_watcher": - return ClusterPrivilege.MonitorWatcher; - case "monitor_transform": - return ClusterPrivilege.MonitorTransform; - case "monitor_text_structure": - return ClusterPrivilege.MonitorTextStructure; - case "monitor_snapshot": - return ClusterPrivilege.MonitorSnapshot; - case "monitor_rollup": - return ClusterPrivilege.MonitorRollup; - case "monitor_ml": - return ClusterPrivilege.MonitorMl; - case "monitor": - return ClusterPrivilege.Monitor; - case "manage_watcher": - return ClusterPrivilege.ManageWatcher; - case "manage_user_profile": - return ClusterPrivilege.ManageUserProfile; - case "manage_transform": - return ClusterPrivilege.ManageTransform; - case "manage_token": - return ClusterPrivilege.ManageToken; - case "manage_slm": - return ClusterPrivilege.ManageSlm; - case "manage_service_account": - return ClusterPrivilege.ManageServiceAccount; - case "manage_security": - return ClusterPrivilege.ManageSecurity; - case "manage_saml": - return ClusterPrivilege.ManageSaml; - case "manage_rollup": - return ClusterPrivilege.ManageRollup; - case "manage_pipeline": - return ClusterPrivilege.ManagePipeline; - case "manage_own_api_key": - return ClusterPrivilege.ManageOwnApiKey; - case "manage_oidc": - return ClusterPrivilege.ManageOidc; - case "manage_ml": - return ClusterPrivilege.ManageMl; - case "manage_logstash_pipelines": - return ClusterPrivilege.ManageLogstashPipelines; - case "manage_ingest_pipelines": - return ClusterPrivilege.ManageIngestPipelines; - case "manage_index_templates": - return ClusterPrivilege.ManageIndexTemplates; - case "manage_ilm": - return ClusterPrivilege.ManageIlm; - case "manage_enrich": - return ClusterPrivilege.ManageEnrich; - case "manage_ccr": - return ClusterPrivilege.ManageCcr; - case "manage_api_key": - return ClusterPrivilege.ManageApiKey; - case "manage": - return ClusterPrivilege.Manage; - case "grant_api_key": - return ClusterPrivilege.GrantApiKey; - case "create_snapshot": - return ClusterPrivilege.CreateSnapshot; - case "cancel_task": - return ClusterPrivilege.CancelTask; - case "all": - return ClusterPrivilege.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ClusterPrivilege value, JsonSerializerOptions options) - { - switch (value) - { - case ClusterPrivilege.TransportClient: - writer.WriteStringValue("transport_client"); - return; - case ClusterPrivilege.ReadSlm: - writer.WriteStringValue("read_slm"); - return; - case ClusterPrivilege.ReadPipeline: - writer.WriteStringValue("read_pipeline"); - return; - case ClusterPrivilege.ReadIlm: - writer.WriteStringValue("read_ilm"); - return; - case ClusterPrivilege.ReadCcr: - writer.WriteStringValue("read_ccr"); - return; - case ClusterPrivilege.MonitorWatcher: - writer.WriteStringValue("monitor_watcher"); - return; - case ClusterPrivilege.MonitorTransform: - writer.WriteStringValue("monitor_transform"); - return; - case ClusterPrivilege.MonitorTextStructure: - writer.WriteStringValue("monitor_text_structure"); - return; - case ClusterPrivilege.MonitorSnapshot: - writer.WriteStringValue("monitor_snapshot"); - return; - case ClusterPrivilege.MonitorRollup: - writer.WriteStringValue("monitor_rollup"); - return; - case ClusterPrivilege.MonitorMl: - writer.WriteStringValue("monitor_ml"); - return; - case ClusterPrivilege.Monitor: - writer.WriteStringValue("monitor"); - return; - case ClusterPrivilege.ManageWatcher: - writer.WriteStringValue("manage_watcher"); - return; - case ClusterPrivilege.ManageUserProfile: - writer.WriteStringValue("manage_user_profile"); - return; - case ClusterPrivilege.ManageTransform: - writer.WriteStringValue("manage_transform"); - return; - case ClusterPrivilege.ManageToken: - writer.WriteStringValue("manage_token"); - return; - case ClusterPrivilege.ManageSlm: - writer.WriteStringValue("manage_slm"); - return; - case ClusterPrivilege.ManageServiceAccount: - writer.WriteStringValue("manage_service_account"); - return; - case ClusterPrivilege.ManageSecurity: - writer.WriteStringValue("manage_security"); - return; - case ClusterPrivilege.ManageSaml: - writer.WriteStringValue("manage_saml"); - return; - case ClusterPrivilege.ManageRollup: - writer.WriteStringValue("manage_rollup"); - return; - case ClusterPrivilege.ManagePipeline: - writer.WriteStringValue("manage_pipeline"); - return; - case ClusterPrivilege.ManageOwnApiKey: - writer.WriteStringValue("manage_own_api_key"); - return; - case ClusterPrivilege.ManageOidc: - writer.WriteStringValue("manage_oidc"); - return; - case ClusterPrivilege.ManageMl: - writer.WriteStringValue("manage_ml"); - return; - case ClusterPrivilege.ManageLogstashPipelines: - writer.WriteStringValue("manage_logstash_pipelines"); - return; - case ClusterPrivilege.ManageIngestPipelines: - writer.WriteStringValue("manage_ingest_pipelines"); - return; - case ClusterPrivilege.ManageIndexTemplates: - writer.WriteStringValue("manage_index_templates"); - return; - case ClusterPrivilege.ManageIlm: - writer.WriteStringValue("manage_ilm"); - return; - case ClusterPrivilege.ManageEnrich: - writer.WriteStringValue("manage_enrich"); - return; - case ClusterPrivilege.ManageCcr: - writer.WriteStringValue("manage_ccr"); - return; - case ClusterPrivilege.ManageApiKey: - writer.WriteStringValue("manage_api_key"); - return; - case ClusterPrivilege.Manage: - writer.WriteStringValue("manage"); - return; - case ClusterPrivilege.GrantApiKey: - writer.WriteStringValue("grant_api_key"); - return; - case ClusterPrivilege.CreateSnapshot: - writer.WriteStringValue("create_snapshot"); - return; - case ClusterPrivilege.CancelTask: - writer.WriteStringValue("cancel_task"); - return; - case ClusterPrivilege.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(IndexPrivilegeConverter))] - public enum IndexPrivilege - { - [EnumMember(Value = "write")] - Write, - [EnumMember(Value = "view_index_metadata")] - ViewIndexMetadata, - [EnumMember(Value = "read_cross_cluster")] - ReadCrossCluster, - [EnumMember(Value = "read")] - Read, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "monitor")] - Monitor, - [EnumMember(Value = "manage_leader_index")] - ManageLeaderIndex, - [EnumMember(Value = "manage_ilm")] - ManageIlm, - [EnumMember(Value = "manage_follow_index")] - ManageFollowIndex, - [EnumMember(Value = "manage")] - Manage, - [EnumMember(Value = "maintenance")] - Maintenance, - [EnumMember(Value = "index")] - Index, - [EnumMember(Value = "delete_index")] - DeleteIndex, - [EnumMember(Value = "delete")] - Delete, - [EnumMember(Value = "create_index")] - CreateIndex, - [EnumMember(Value = "create_doc")] - CreateDoc, - [EnumMember(Value = "create")] - Create, - [EnumMember(Value = "auto_configure")] - AutoConfigure, - [EnumMember(Value = "all")] - All - } - - internal sealed class IndexPrivilegeConverter : JsonConverter - { - public override IndexPrivilege Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "write": - return IndexPrivilege.Write; - case "view_index_metadata": - return IndexPrivilege.ViewIndexMetadata; - case "read_cross_cluster": - return IndexPrivilege.ReadCrossCluster; - case "read": - return IndexPrivilege.Read; - case "none": - return IndexPrivilege.None; - case "monitor": - return IndexPrivilege.Monitor; - case "manage_leader_index": - return IndexPrivilege.ManageLeaderIndex; - case "manage_ilm": - return IndexPrivilege.ManageIlm; - case "manage_follow_index": - return IndexPrivilege.ManageFollowIndex; - case "manage": - return IndexPrivilege.Manage; - case "maintenance": - return IndexPrivilege.Maintenance; - case "index": - return IndexPrivilege.Index; - case "delete_index": - return IndexPrivilege.DeleteIndex; - case "delete": - return IndexPrivilege.Delete; - case "create_index": - return IndexPrivilege.CreateIndex; - case "create_doc": - return IndexPrivilege.CreateDoc; - case "create": - return IndexPrivilege.Create; - case "auto_configure": - return IndexPrivilege.AutoConfigure; - case "all": - return IndexPrivilege.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexPrivilege value, JsonSerializerOptions options) - { - switch (value) - { - case IndexPrivilege.Write: - writer.WriteStringValue("write"); - return; - case IndexPrivilege.ViewIndexMetadata: - writer.WriteStringValue("view_index_metadata"); - return; - case IndexPrivilege.ReadCrossCluster: - writer.WriteStringValue("read_cross_cluster"); - return; - case IndexPrivilege.Read: - writer.WriteStringValue("read"); - return; - case IndexPrivilege.None: - writer.WriteStringValue("none"); - return; - case IndexPrivilege.Monitor: - writer.WriteStringValue("monitor"); - return; - case IndexPrivilege.ManageLeaderIndex: - writer.WriteStringValue("manage_leader_index"); - return; - case IndexPrivilege.ManageIlm: - writer.WriteStringValue("manage_ilm"); - return; - case IndexPrivilege.ManageFollowIndex: - writer.WriteStringValue("manage_follow_index"); - return; - case IndexPrivilege.Manage: - writer.WriteStringValue("manage"); - return; - case IndexPrivilege.Maintenance: - writer.WriteStringValue("maintenance"); - return; - case IndexPrivilege.Index: - writer.WriteStringValue("index"); - return; - case IndexPrivilege.DeleteIndex: - writer.WriteStringValue("delete_index"); - return; - case IndexPrivilege.Delete: - writer.WriteStringValue("delete"); - return; - case IndexPrivilege.CreateIndex: - writer.WriteStringValue("create_index"); - return; - case IndexPrivilege.CreateDoc: - writer.WriteStringValue("create_doc"); - return; - case IndexPrivilege.Create: - writer.WriteStringValue("create"); - return; - case IndexPrivilege.AutoConfigure: - writer.WriteStringValue("auto_configure"); - return; - case IndexPrivilege.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs deleted file mode 100644 index b455a10b0b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - [JsonConverter(typeof(ShardsStatsStageConverter))] - public enum ShardsStatsStage - { - [EnumMember(Value = "STARTED")] - Started, - [EnumMember(Value = "INIT")] - Init, - [EnumMember(Value = "FINALIZE")] - Finalize, - [EnumMember(Value = "FAILURE")] - Failure, - [EnumMember(Value = "DONE")] - Done - } - - internal sealed class ShardsStatsStageConverter : JsonConverter - { - public override ShardsStatsStage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "STARTED": - return ShardsStatsStage.Started; - case "INIT": - return ShardsStatsStage.Init; - case "FINALIZE": - return ShardsStatsStage.Finalize; - case "FAILURE": - return ShardsStatsStage.Failure; - case "DONE": - return ShardsStatsStage.Done; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShardsStatsStage value, JsonSerializerOptions options) - { - switch (value) - { - case ShardsStatsStage.Started: - writer.WriteStringValue("STARTED"); - return; - case ShardsStatsStage.Init: - writer.WriteStringValue("INIT"); - return; - case ShardsStatsStage.Finalize: - writer.WriteStringValue("FINALIZE"); - return; - case ShardsStatsStage.Failure: - writer.WriteStringValue("FAILURE"); - return; - case ShardsStatsStage.Done: - writer.WriteStringValue("DONE"); - return; - } - - writer.WriteNullValue(); - } - } - - [JsonConverter(typeof(SnapshotSortConverter))] - public enum SnapshotSort - { - [EnumMember(Value = "start_time")] - StartTime, - [EnumMember(Value = "shard_count")] - ShardCount, - [EnumMember(Value = "repository")] - Repository, - [EnumMember(Value = "name")] - Name, - [EnumMember(Value = "index_count")] - IndexCount, - [EnumMember(Value = "failed_shard_count")] - FailedShardCount, - [EnumMember(Value = "duration")] - Duration - } - - internal sealed class SnapshotSortConverter : JsonConverter - { - public override SnapshotSort Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "start_time": - return SnapshotSort.StartTime; - case "shard_count": - return SnapshotSort.ShardCount; - case "repository": - return SnapshotSort.Repository; - case "name": - return SnapshotSort.Name; - case "index_count": - return SnapshotSort.IndexCount; - case "failed_shard_count": - return SnapshotSort.FailedShardCount; - case "duration": - return SnapshotSort.Duration; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SnapshotSort value, JsonSerializerOptions options) - { - switch (value) - { - case SnapshotSort.StartTime: - writer.WriteStringValue("start_time"); - return; - case SnapshotSort.ShardCount: - writer.WriteStringValue("shard_count"); - return; - case SnapshotSort.Repository: - writer.WriteStringValue("repository"); - return; - case SnapshotSort.Name: - writer.WriteStringValue("name"); - return; - case SnapshotSort.IndexCount: - writer.WriteStringValue("index_count"); - return; - case SnapshotSort.FailedShardCount: - writer.WriteStringValue("failed_shard_count"); - return; - case SnapshotSort.Duration: - writer.WriteStringValue("duration"); - return; - } - - writer.WriteNullValue(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs deleted file mode 100644 index 0e6c41e064f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Runtime.Serialization; -using Elastic.Transport; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Watcher -{ - [JsonConverter(typeof(ActionStatusOptionsConverter))] - public enum ActionStatusOptions - { - [EnumMember(Value = "throttled")] - Throttled, - [EnumMember(Value = "success")] - Success, - [EnumMember(Value = "simulated")] - Simulated, - [EnumMember(Value = "failure")] - Failure - } - - internal sealed class ActionStatusOptionsConverter : JsonConverter - { - public override ActionStatusOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "throttled": - return ActionStatusOptions.Throttled; - case "success": - return ActionStatusOptions.Success; - case "simulated": - return ActionStatusOptions.Simulated; - case "failure": - return ActionStatusOptions.Failure; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ActionStatusOptions value, JsonSerializerOptions options) - { - switch (value) - { - case ActionStatusOptions.Throttled: - writer.WriteStringValue("throttled"); - return; - case ActionStatusOptions.Success: - writer.WriteStringValue("success"); - return; - case ActionStatusOptions.Simulated: - writer.WriteStringValue("simulated"); - return; - case ActionStatusOptions.Failure: - writer.WriteStringValue("failure"); - return; - } - - writer.WriteNullValue(); - } - } -} \ 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 deleted file mode 100644 index 38300030b15..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Features/Feature.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Features -{ - public sealed partial class Feature - { - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs deleted file mode 100644 index 7000a1f601e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class Connection - { - [JsonInclude] - [JsonPropertyName("doc_count")] - public long DocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public long Source { get; init; } - - [JsonInclude] - [JsonPropertyName("target")] - public long Target { get; init; } - - [JsonInclude] - [JsonPropertyName("weight")] - public double Weight { get; init; } - } -} \ 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 deleted file mode 100644 index c87d6c9ca62..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class ExploreControls - { - [JsonInclude] - [JsonPropertyName("sample_diversity")] - public Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversity { get; set; } - - [JsonInclude] - [JsonPropertyName("sample_size")] - public int? SampleSize { get; set; } - - [JsonInclude] - [JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } - - [JsonInclude] - [JsonPropertyName("use_significance")] - public bool UseSignificance { get; set; } - } - - public sealed partial class ExploreControlsDescriptor : SerializableDescriptorBase> - { - internal ExploreControlsDescriptor(Action> configure) => configure.Invoke(this); - public ExploreControlsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversityValue { get; set; } - - private SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } - - private Action> SampleDiversityDescriptorAction { get; set; } - - private int? SampleSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - private bool UseSignificanceValue { get; set; } - - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Graph.SampleDiversity? sampleDiversity) - { - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = null; - SampleDiversityValue = sampleDiversity; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(SampleDiversityDescriptor descriptor) - { - SampleDiversityValue = null; - SampleDiversityDescriptorAction = null; - SampleDiversityDescriptor = descriptor; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Action> configure) - { - SampleDiversityValue = null; - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = configure; - return Self; - } - - public ExploreControlsDescriptor SampleSize(int? sampleSize) - { - SampleSizeValue = sampleSize; - return Self; - } - - public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) - { - UseSignificanceValue = useSignificance; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SampleDiversityDescriptor is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); - } - else if (SampleDiversityDescriptorAction is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, new SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); - } - else if (SampleDiversityValue is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityValue, options); - } - - if (SampleSizeValue.HasValue) - { - writer.WritePropertyName("sample_size"); - writer.WriteNumberValue(SampleSizeValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WritePropertyName("use_significance"); - writer.WriteBooleanValue(UseSignificanceValue); - writer.WriteEndObject(); - } - } - - public sealed partial class ExploreControlsDescriptor : SerializableDescriptorBase - { - internal ExploreControlsDescriptor(Action configure) => configure.Invoke(this); - public ExploreControlsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversityValue { get; set; } - - private SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } - - private Action SampleDiversityDescriptorAction { get; set; } - - private int? SampleSizeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } - - private bool UseSignificanceValue { get; set; } - - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Graph.SampleDiversity? sampleDiversity) - { - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = null; - SampleDiversityValue = sampleDiversity; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(SampleDiversityDescriptor descriptor) - { - SampleDiversityValue = null; - SampleDiversityDescriptorAction = null; - SampleDiversityDescriptor = descriptor; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Action configure) - { - SampleDiversityValue = null; - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = configure; - return Self; - } - - public ExploreControlsDescriptor SampleSize(int? sampleSize) - { - SampleSizeValue = sampleSize; - return Self; - } - - public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) - { - UseSignificanceValue = useSignificance; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SampleDiversityDescriptor is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); - } - else if (SampleDiversityDescriptorAction is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, new SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); - } - else if (SampleDiversityValue is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityValue, options); - } - - if (SampleSizeValue.HasValue) - { - writer.WritePropertyName("sample_size"); - writer.WriteNumberValue(SampleSizeValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WritePropertyName("use_significance"); - writer.WriteBooleanValue(UseSignificanceValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs deleted file mode 100644 index e29ceaa17b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs +++ /dev/null @@ -1,403 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class Hop - { - [JsonInclude] - [JsonPropertyName("connections")] - public Elastic.Clients.Elasticsearch.Graph.Hop? Connections { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; set; } - - [JsonInclude] - [JsonPropertyName("vertices")] - public IEnumerable Vertices { get; set; } - } - - public sealed partial class HopDescriptor : SerializableDescriptorBase> - { - internal HopDescriptor(Action> configure) => configure.Invoke(this); - public HopDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } - - private HopDescriptor ConnectionsDescriptor { get; set; } - - private Action> ConnectionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private IEnumerable VerticesValue { get; set; } - - private VertexDefinitionDescriptor VerticesDescriptor { get; set; } - - private Action> VerticesDescriptorAction { get; set; } - - private Action>[] VerticesDescriptorActions { get; set; } - - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public HopDescriptor Connections(HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public HopDescriptor Connections(Action> configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - public HopDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HopDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HopDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(IEnumerable vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public HopDescriptor Vertices(VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public HopDescriptor Vertices(Action> configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(params Action>[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class HopDescriptor : SerializableDescriptorBase - { - internal HopDescriptor(Action configure) => configure.Invoke(this); - public HopDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } - - private HopDescriptor ConnectionsDescriptor { get; set; } - - private Action ConnectionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private IEnumerable VerticesValue { get; set; } - - private VertexDefinitionDescriptor VerticesDescriptor { get; set; } - - private Action VerticesDescriptorAction { get; set; } - - private Action[] VerticesDescriptorActions { get; set; } - - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public HopDescriptor Connections(HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public HopDescriptor Connections(Action configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - public HopDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HopDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HopDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(IEnumerable vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public HopDescriptor Vertices(VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public HopDescriptor Vertices(Action configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(params Action[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs deleted file mode 100644 index 1eb4d0c764a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class SampleDiversity - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("max_docs_per_value")] - public int MaxDocsPerValue { get; set; } - } - - public sealed partial class SampleDiversityDescriptor : SerializableDescriptorBase> - { - internal SampleDiversityDescriptor(Action> configure) => configure.Invoke(this); - public SampleDiversityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private int MaxDocsPerValueValue { get; set; } - - public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue); - writer.WriteEndObject(); - } - } - - public sealed partial class SampleDiversityDescriptor : SerializableDescriptorBase - { - internal SampleDiversityDescriptor(Action configure) => configure.Invoke(this); - public SampleDiversityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private int MaxDocsPerValueValue { get; set; } - - public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs deleted file mode 100644 index b2842517799..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class Vertex - { - [JsonInclude] - [JsonPropertyName("depth")] - public long Depth { get; init; } - - [JsonInclude] - [JsonPropertyName("field")] - public string Field { get; init; } - - [JsonInclude] - [JsonPropertyName("term")] - public string Term { get; init; } - - [JsonInclude] - [JsonPropertyName("weight")] - public double Weight { get; init; } - } -} \ 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 deleted file mode 100644 index 5eb1c0110be..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class VertexDefinition - { - [JsonInclude] - [JsonPropertyName("exclude")] - public IEnumerable? Exclude { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("include")] - public IEnumerable? Include { get; set; } - - [JsonInclude] - [JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - [JsonInclude] - [JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - [JsonInclude] - [JsonPropertyName("size")] - public int? Size { get; set; } - } - - public sealed partial class VertexDefinitionDescriptor : SerializableDescriptorBase> - { - internal VertexDefinitionDescriptor(Action> configure) => configure.Invoke(this); - public VertexDefinitionDescriptor() : base() - { - } - - private IEnumerable? ExcludeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private IEnumerable? IncludeValue { get; set; } - - private VertexIncludeDescriptor IncludeDescriptor { get; set; } - - private Action IncludeDescriptorAction { get; set; } - - private Action[] IncludeDescriptorActions { get; set; } - - private long? MinDocCountValue { get; set; } - - private long? ShardMinDocCountValue { get; set; } - - private int? SizeValue { get; set; } - - public VertexDefinitionDescriptor Exclude(IEnumerable? exclude) - { - ExcludeValue = exclude; - return Self; - } - - public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public VertexDefinitionDescriptor Include(IEnumerable? include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeValue = include; - return Self; - } - - public VertexDefinitionDescriptor Include(VertexIncludeDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeDescriptor = descriptor; - return Self; - } - - public VertexDefinitionDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorActions = null; - IncludeDescriptorAction = configure; - return Self; - } - - public VertexDefinitionDescriptor Include(params Action[] configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = configure; - return Self; - } - - public VertexDefinitionDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - public VertexDefinitionDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(IncludeDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorActions is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - foreach (var action in IncludeDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class VertexDefinitionDescriptor : SerializableDescriptorBase - { - internal VertexDefinitionDescriptor(Action configure) => configure.Invoke(this); - public VertexDefinitionDescriptor() : base() - { - } - - private IEnumerable? ExcludeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private IEnumerable? IncludeValue { get; set; } - - private VertexIncludeDescriptor IncludeDescriptor { get; set; } - - private Action IncludeDescriptorAction { get; set; } - - private Action[] IncludeDescriptorActions { get; set; } - - private long? MinDocCountValue { get; set; } - - private long? ShardMinDocCountValue { get; set; } - - private int? SizeValue { get; set; } - - public VertexDefinitionDescriptor Exclude(IEnumerable? exclude) - { - ExcludeValue = exclude; - return Self; - } - - public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public VertexDefinitionDescriptor Include(IEnumerable? include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeValue = include; - return Self; - } - - public VertexDefinitionDescriptor Include(VertexIncludeDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeDescriptor = descriptor; - return Self; - } - - public VertexDefinitionDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorActions = null; - IncludeDescriptorAction = configure; - return Self; - } - - public VertexDefinitionDescriptor Include(params Action[] configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = configure; - return Self; - } - - public VertexDefinitionDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - public VertexDefinitionDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(IncludeDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorActions is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - foreach (var action in IncludeDescriptorActions) - { - JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs deleted file mode 100644 index 9cd94b5f98c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Graph -{ - public sealed partial class VertexInclude - { - [JsonInclude] - [JsonPropertyName("boost")] - public double Boost { get; set; } - - [JsonInclude] - [JsonPropertyName("term")] - public string Term { get; set; } - } - - public sealed partial class VertexIncludeDescriptor : SerializableDescriptorBase - { - internal VertexIncludeDescriptor(Action configure) => configure.Invoke(this); - public VertexIncludeDescriptor() : base() - { - } - - private double BoostValue { get; set; } - - private string TermValue { get; set; } - - public VertexIncludeDescriptor Boost(double boost) - { - BoostValue = boost; - return Self; - } - - public VertexIncludeDescriptor Term(string term) - { - TermValue = term; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue); - writer.WritePropertyName("term"); - writer.WriteStringValue(TermValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Configurations.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Configurations.g.cs deleted file mode 100644 index 035a2c7ccf6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Configurations.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class Configurations - { - [JsonInclude] - [JsonPropertyName("forcemerge")] - public Elastic.Clients.Elasticsearch.Ilm.ForceMergeConfiguration? Forcemerge { get; init; } - - [JsonInclude] - [JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.IndexManagement.RolloverConditions? Rollover { get; init; } - - [JsonInclude] - [JsonPropertyName("shrink")] - public Elastic.Clients.Elasticsearch.Ilm.ShrinkConfiguration? Shrink { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ForceMergeConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ForceMergeConfiguration.g.cs deleted file mode 100644 index 9a37676cda8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ForceMergeConfiguration.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class ForceMergeConfiguration - { - [JsonInclude] - [JsonPropertyName("max_num_segments")] - public int MaxNumSegments { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplain.g.cs deleted file mode 100644 index 3b8901e04fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplain.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public partial class LifecycleExplain : IsADictionaryBase - { - public LifecycleExplain() - { - } - - public LifecycleExplain(IDictionary container) : base(container) - { - } - - public void Add(string name, ILifecycleExplain lifecycleExplain) => BackingDictionary.Add(name, lifecycleExplain); - } - - internal sealed partial class LifecycleExplainInterfaceConverter - { - private static ILifecycleExplain DeserializeVariant(string type, ref Utf8JsonReader reader, JsonSerializerOptions options) - { - switch (type) - { - default: - throw new JsonException("Encounted an unknown variant type which could not be deserialised."); - } - } - } - - public partial interface ILifecycleExplain - { - public bool Managed { get; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs deleted file mode 100644 index 58a5a63825d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainManaged.g.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class LifecycleExplainManaged : ILifecycleExplain - { - [JsonInclude] - [JsonPropertyName("action")] - public string? Action { get; init; } - - [JsonInclude] - [JsonPropertyName("action_time")] - public DateTimeOffset? ActionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("action_time_millis")] - public long? ActionTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("age")] - public Elastic.Clients.Elasticsearch.Duration? Age { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_step")] - public string? FailedStep { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_step_retry_count")] - public int? FailedStepRetryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("index")] - public string? Index { get; init; } - - [JsonInclude] - [JsonPropertyName("index_creation_date")] - public DateTimeOffset? IndexCreationDate { get; init; } - - [JsonInclude] - [JsonPropertyName("index_creation_date_millis")] - public long? IndexCreationDateMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("is_auto_retryable_error")] - public bool? IsAutoRetryableError { get; init; } - - [JsonInclude] - [JsonPropertyName("lifecycle_date")] - public DateTimeOffset? LifecycleDate { get; init; } - - [JsonInclude] - [JsonPropertyName("lifecycle_date_millis")] - public long? LifecycleDateMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("managed")] - public bool Managed => true; - [JsonInclude] - [JsonPropertyName("phase")] - public string Phase { get; init; } - - [JsonInclude] - [JsonPropertyName("phase_execution")] - public Elastic.Clients.Elasticsearch.Ilm.LifecycleExplainPhaseExecution? PhaseExecution { get; init; } - - [JsonInclude] - [JsonPropertyName("phase_time")] - public DateTimeOffset? PhaseTime { get; init; } - - [JsonInclude] - [JsonPropertyName("phase_time_millis")] - public long? PhaseTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("policy")] - public string Policy { get; init; } - - [JsonInclude] - [JsonPropertyName("step")] - public string? Step { get; init; } - - [JsonInclude] - [JsonPropertyName("step_info")] - public Dictionary? StepInfo { get; init; } - - [JsonInclude] - [JsonPropertyName("step_time")] - public DateTimeOffset? StepTime { get; init; } - - [JsonInclude] - [JsonPropertyName("step_time_millis")] - public long? StepTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("time_since_index_creation")] - public Elastic.Clients.Elasticsearch.Duration? TimeSinceIndexCreation { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs deleted file mode 100644 index e63fed3ef42..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainPhaseExecution.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class LifecycleExplainPhaseExecution - { - [JsonInclude] - [JsonPropertyName("modified_date_in_millis")] - public long ModifiedDateInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("policy")] - public string Policy { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public long Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs deleted file mode 100644 index f5d5e06ba63..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/LifecycleExplainUnmanaged.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class LifecycleExplainUnmanaged : ILifecycleExplain - { - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("managed")] - public bool Managed => false; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phase.g.cs deleted file mode 100644 index 35d8b910389..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phase.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class Phase - { - [JsonInclude] - [JsonPropertyName("actions")] - public object? Actions { get; init; } - - [JsonInclude] - [JsonPropertyName("configurations")] - public Elastic.Clients.Elasticsearch.Ilm.Configurations? Configurations { get; init; } - - [JsonInclude] - [JsonPropertyName("min_age")] - public Union? MinAge { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phases.g.cs deleted file mode 100644 index 1ddaa3aab23..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/Phases.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class Phases - { - [JsonInclude] - [JsonPropertyName("cold")] - public Elastic.Clients.Elasticsearch.Ilm.Phase? Cold { get; init; } - - [JsonInclude] - [JsonPropertyName("delete")] - public Elastic.Clients.Elasticsearch.Ilm.Phase? Delete { get; init; } - - [JsonInclude] - [JsonPropertyName("hot")] - public Elastic.Clients.Elasticsearch.Ilm.Phase? Hot { get; init; } - - [JsonInclude] - [JsonPropertyName("warm")] - public Elastic.Clients.Elasticsearch.Ilm.Phase? Warm { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ShrinkConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ShrinkConfiguration.g.cs deleted file mode 100644 index 4e0026e1357..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/ShrinkConfiguration.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class ShrinkConfiguration - { - [JsonInclude] - [JsonPropertyName("number_of_shards")] - public int NumberOfShards { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs deleted file mode 100644 index d38415967d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ilm/StepKey.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ilm -{ - public sealed partial class StepKey - { - [JsonInclude] - [JsonPropertyName("action")] - public string Action { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonInclude] - [JsonPropertyName("phase")] - public string Phase { get; set; } - } - - public sealed partial class StepKeyDescriptor : SerializableDescriptorBase - { - internal StepKeyDescriptor(Action configure) => configure.Invoke(this); - public StepKeyDescriptor() : base() - { - } - - private string ActionValue { get; set; } - - private string NameValue { get; set; } - - private string PhaseValue { get; set; } - - public StepKeyDescriptor Action(string action) - { - ActionValue = action; - return Self; - } - - public StepKeyDescriptor Name(string name) - { - NameValue = name; - return Self; - } - - public StepKeyDescriptor Phase(string phase) - { - PhaseValue = phase; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("action"); - writer.WriteStringValue(ActionValue); - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - writer.WritePropertyName("phase"); - writer.WriteStringValue(PhaseValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs deleted file mode 100644 index b2e4515c05f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public sealed partial class AliasDefinition - { - [JsonInclude] - [JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Filter { get; set; } - - [JsonInclude] - [JsonPropertyName("index_routing")] - public string? IndexRouting { get; set; } - - [JsonInclude] - [JsonPropertyName("is_hidden")] - public bool? IsHidden { get; set; } - - [JsonInclude] - [JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("routing")] - public string? Routing { get; set; } - - [JsonInclude] - [JsonPropertyName("search_routing")] - public string? SearchRouting { get; set; } - } - - public sealed partial class AliasDefinitionDescriptor : SerializableDescriptorBase> - { - internal AliasDefinitionDescriptor(Action> configure) => configure.Invoke(this); - public AliasDefinitionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? FilterValue { get; set; } - - private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } - - private Action> FilterDescriptorAction { get; set; } - - private string? IndexRoutingValue { get; set; } - - private bool? IsHiddenValue { get; set; } - - private bool? IsWriteIndexValue { get; set; } - - private string? RoutingValue { get; set; } - - private string? SearchRoutingValue { get; set; } - - public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AliasDefinitionDescriptor Filter(QueryDsl.QueryContainerDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AliasDefinitionDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public AliasDefinitionDescriptor IndexRouting(string? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - public AliasDefinitionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - public AliasDefinitionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - public AliasDefinitionDescriptor Routing(string? routing) - { - RoutingValue = routing; - return Self; - } - - public AliasDefinitionDescriptor SearchRouting(string? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterDescriptor is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterDescriptor, options); - } - else if (FilterDescriptorAction is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(IndexRoutingValue)) - { - writer.WritePropertyName("index_routing"); - writer.WriteStringValue(IndexRoutingValue); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (!string.IsNullOrEmpty(RoutingValue)) - { - writer.WritePropertyName("routing"); - writer.WriteStringValue(RoutingValue); - } - - if (!string.IsNullOrEmpty(SearchRoutingValue)) - { - writer.WritePropertyName("search_routing"); - writer.WriteStringValue(SearchRoutingValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class AliasDefinitionDescriptor : SerializableDescriptorBase - { - internal AliasDefinitionDescriptor(Action configure) => configure.Invoke(this); - public AliasDefinitionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? FilterValue { get; set; } - - private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } - - private Action FilterDescriptorAction { get; set; } - - private string? IndexRoutingValue { get; set; } - - private bool? IsHiddenValue { get; set; } - - private bool? IsWriteIndexValue { get; set; } - - private string? RoutingValue { get; set; } - - private string? SearchRoutingValue { get; set; } - - public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AliasDefinitionDescriptor Filter(QueryDsl.QueryContainerDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AliasDefinitionDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public AliasDefinitionDescriptor IndexRouting(string? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - public AliasDefinitionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - public AliasDefinitionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - public AliasDefinitionDescriptor Routing(string? routing) - { - RoutingValue = routing; - return Self; - } - - public AliasDefinitionDescriptor SearchRouting(string? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterDescriptor is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterDescriptor, options); - } - else if (FilterDescriptorAction is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(IndexRoutingValue)) - { - writer.WritePropertyName("index_routing"); - writer.WriteStringValue(IndexRoutingValue); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (!string.IsNullOrEmpty(RoutingValue)) - { - writer.WritePropertyName("routing"); - writer.WriteStringValue(RoutingValue); - } - - if (!string.IsNullOrEmpty(SearchRoutingValue)) - { - writer.WritePropertyName("search_routing"); - writer.WriteStringValue(SearchRoutingValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs deleted file mode 100644 index 80197349650..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs +++ /dev/null @@ -1,409 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.IndexManagement -{ - public sealed partial class IndexState - { - [JsonInclude] - [JsonPropertyName("aliases")] - public Dictionary? Aliases { get; set; } - - [JsonInclude] - [JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.DataStreamName? DataStream { get; set; } - - [JsonInclude] - [JsonPropertyName("defaults")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Defaults { get; set; } - - [JsonInclude] - [JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } - } - - public sealed partial class IndexStateDescriptor : SerializableDescriptorBase> - { - internal IndexStateDescriptor(Action> configure) => configure.Invoke(this); - public IndexStateDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? DefaultsValue { get; set; } - - private IndexSettingsDescriptor DefaultsDescriptor { get; set; } - - private Action> DefaultsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } - - private Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - - private Action> MappingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - - private IndexSettingsDescriptor SettingsDescriptor { get; set; } - - private Action> SettingsDescriptorAction { get; set; } - - private Dictionary? AliasesValue { get; set; } - - private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } - - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? defaults) - { - DefaultsDescriptor = null; - DefaultsDescriptorAction = null; - DefaultsValue = defaults; - return Self; - } - - public IndexStateDescriptor Defaults(IndexSettingsDescriptor descriptor) - { - DefaultsValue = null; - DefaultsDescriptorAction = null; - DefaultsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Defaults(Action> configure) - { - DefaultsValue = null; - DefaultsDescriptor = null; - DefaultsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexStateDescriptor Mappings(Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexStateDescriptor Settings(IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Aliases(Func, FluentDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.DataStreamName? dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DefaultsDescriptor is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsDescriptor, options); - } - else if (DefaultsDescriptorAction is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, new IndexSettingsDescriptor(DefaultsDescriptorAction), options); - } - else if (DefaultsValue is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class IndexStateDescriptor : SerializableDescriptorBase - { - internal IndexStateDescriptor(Action configure) => configure.Invoke(this); - public IndexStateDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? DefaultsValue { get; set; } - - private IndexSettingsDescriptor DefaultsDescriptor { get; set; } - - private Action DefaultsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } - - private Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - - private Action MappingsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - - private IndexSettingsDescriptor SettingsDescriptor { get; set; } - - private Action SettingsDescriptorAction { get; set; } - - private Dictionary? AliasesValue { get; set; } - - private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } - - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? defaults) - { - DefaultsDescriptor = null; - DefaultsDescriptorAction = null; - DefaultsValue = defaults; - return Self; - } - - public IndexStateDescriptor Defaults(IndexSettingsDescriptor descriptor) - { - DefaultsValue = null; - DefaultsDescriptorAction = null; - DefaultsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Defaults(Action configure) - { - DefaultsValue = null; - DefaultsDescriptor = null; - DefaultsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexStateDescriptor Mappings(Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexStateDescriptor Settings(IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Aliases(Func, FluentDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.DataStreamName? dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DefaultsDescriptor is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsDescriptor, options); - } - else if (DefaultsDescriptorAction is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, new IndexSettingsDescriptor(DefaultsDescriptorAction), options); - } - else if (DefaultsValue is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index f1f3e330e1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public sealed partial class IndicesOptions - { - [JsonInclude] - [JsonPropertyName("allow_no_indices")] - public bool? AllowNoIndices { get; set; } - - [JsonInclude] - [JsonPropertyName("expand_wildcards")] - [JsonConverter(typeof(ExpandWildcardsConverter))] - public IEnumerable? ExpandWildcards { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_throttled")] - public bool? IgnoreThrottled { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - } - - public sealed partial class IndicesOptionsDescriptor : SerializableDescriptorBase - { - internal IndicesOptionsDescriptor(Action configure) => configure.Invoke(this); - public IndicesOptionsDescriptor() : base() - { - } - - private bool? AllowNoIndicesValue { get; set; } - - private IEnumerable? ExpandWildcardsValue { get; set; } - - private bool? IgnoreThrottledValue { get; set; } - - private bool? IgnoreUnavailableValue { get; set; } - - public IndicesOptionsDescriptor AllowNoIndices(bool? allowNoIndices = true) - { - AllowNoIndicesValue = allowNoIndices; - return Self; - } - - public IndicesOptionsDescriptor ExpandWildcards(IEnumerable? expandWildcards) - { - ExpandWildcardsValue = expandWildcards; - return Self; - } - - public IndicesOptionsDescriptor IgnoreThrottled(bool? ignoreThrottled = true) - { - IgnoreThrottledValue = ignoreThrottled; - return Self; - } - - public IndicesOptionsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoIndicesValue.HasValue) - { - writer.WritePropertyName("allow_no_indices"); - writer.WriteBooleanValue(AllowNoIndicesValue.Value); - } - - if (ExpandWildcardsValue is not null) - { - writer.WritePropertyName("expand_wildcards"); - SingleOrManySerializationHelper.Serialize(ExpandWildcardsValue, writer, options); - } - - if (IgnoreThrottledValue.HasValue) - { - writer.WritePropertyName("ignore_throttled"); - writer.WriteBooleanValue(IgnoreThrottledValue.Value); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs deleted file mode 100644 index 0666348b619..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class AppendProcessor - { - [JsonInclude] - [JsonPropertyName("allow_duplicates")] - public bool? AllowDuplicates { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("value")] - public IEnumerable Value { get; set; } - } - - public sealed partial class AppendProcessorDescriptor : SerializableDescriptorBase> - { - internal AppendProcessorDescriptor(Action> configure) => configure.Invoke(this); - public AppendProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private bool? AllowDuplicatesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - private IEnumerable ValueValue { get; set; } - - public AppendProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public AppendProcessorDescriptor AllowDuplicates(bool? allowDuplicates = true) - { - AllowDuplicatesValue = allowDuplicates; - return Self; - } - - public AppendProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AppendProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public AppendProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public AppendProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public AppendProcessorDescriptor Value(IEnumerable value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (AllowDuplicatesValue.HasValue) - { - writer.WritePropertyName("allow_duplicates"); - writer.WriteBooleanValue(AllowDuplicatesValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class AppendProcessorDescriptor : SerializableDescriptorBase - { - internal AppendProcessorDescriptor(Action configure) => configure.Invoke(this); - public AppendProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private bool? AllowDuplicatesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - private IEnumerable ValueValue { get; set; } - - public AppendProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public AppendProcessorDescriptor AllowDuplicates(bool? allowDuplicates = true) - { - AllowDuplicatesValue = allowDuplicates; - return Self; - } - - public AppendProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AppendProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public AppendProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public AppendProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public AppendProcessorDescriptor Value(IEnumerable value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (AllowDuplicatesValue.HasValue) - { - writer.WritePropertyName("allow_duplicates"); - writer.WriteBooleanValue(AllowDuplicatesValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs deleted file mode 100644 index 6d9a53341d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AttachmentProcessor.g.cs +++ /dev/null @@ -1,577 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class AttachmentProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("indexed_chars")] - public long? IndexedChars { get; set; } - - [JsonInclude] - [JsonPropertyName("indexed_chars_field")] - public Elastic.Clients.Elasticsearch.Field? IndexedCharsField { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("properties")] - public IEnumerable? Properties { get; set; } - - [JsonInclude] - [JsonPropertyName("resource_name")] - public string? ResourceName { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class AttachmentProcessorDescriptor : SerializableDescriptorBase> - { - internal AttachmentProcessorDescriptor(Action> configure) => configure.Invoke(this); - public AttachmentProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private long? IndexedCharsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? IndexedCharsFieldValue { get; set; } - - private IEnumerable? PropertiesValue { get; set; } - - private string? ResourceNameValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public AttachmentProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public AttachmentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AttachmentProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public AttachmentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public AttachmentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public AttachmentProcessorDescriptor IndexedChars(long? indexedChars) - { - IndexedCharsValue = indexedChars; - return Self; - } - - public AttachmentProcessorDescriptor IndexedCharsField(Elastic.Clients.Elasticsearch.Field? indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - public AttachmentProcessorDescriptor Properties(IEnumerable? properties) - { - PropertiesValue = properties; - return Self; - } - - public AttachmentProcessorDescriptor ResourceName(string? resourceName) - { - ResourceNameValue = resourceName; - return Self; - } - - public AttachmentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public AttachmentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IndexedCharsValue.HasValue) - { - writer.WritePropertyName("indexed_chars"); - writer.WriteNumberValue(IndexedCharsValue.Value); - } - - if (IndexedCharsFieldValue is not null) - { - writer.WritePropertyName("indexed_chars_field"); - JsonSerializer.Serialize(writer, IndexedCharsFieldValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(ResourceNameValue)) - { - writer.WritePropertyName("resource_name"); - writer.WriteStringValue(ResourceNameValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class AttachmentProcessorDescriptor : SerializableDescriptorBase - { - internal AttachmentProcessorDescriptor(Action configure) => configure.Invoke(this); - public AttachmentProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private long? IndexedCharsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? IndexedCharsFieldValue { get; set; } - - private IEnumerable? PropertiesValue { get; set; } - - private string? ResourceNameValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public AttachmentProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public AttachmentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AttachmentProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public AttachmentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public AttachmentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public AttachmentProcessorDescriptor IndexedChars(long? indexedChars) - { - IndexedCharsValue = indexedChars; - return Self; - } - - public AttachmentProcessorDescriptor IndexedCharsField(Elastic.Clients.Elasticsearch.Field? indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - public AttachmentProcessorDescriptor Properties(IEnumerable? properties) - { - PropertiesValue = properties; - return Self; - } - - public AttachmentProcessorDescriptor ResourceName(string? resourceName) - { - ResourceNameValue = resourceName; - return Self; - } - - public AttachmentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public AttachmentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IndexedCharsValue.HasValue) - { - writer.WritePropertyName("indexed_chars"); - writer.WriteNumberValue(IndexedCharsValue.Value); - } - - if (IndexedCharsFieldValue is not null) - { - writer.WritePropertyName("indexed_chars_field"); - JsonSerializer.Serialize(writer, IndexedCharsFieldValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(ResourceNameValue)) - { - writer.WritePropertyName("resource_name"); - writer.WriteStringValue(ResourceNameValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs deleted file mode 100644 index c461e85a50f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/BytesProcessor.g.cs +++ /dev/null @@ -1,431 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class BytesProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class BytesProcessorDescriptor : SerializableDescriptorBase> - { - internal BytesProcessorDescriptor(Action> configure) => configure.Invoke(this); - public BytesProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public BytesProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public BytesProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public BytesProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public BytesProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public BytesProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public BytesProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public BytesProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class BytesProcessorDescriptor : SerializableDescriptorBase - { - internal BytesProcessorDescriptor(Action configure) => configure.Invoke(this); - public BytesProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public BytesProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public BytesProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public BytesProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public BytesProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public BytesProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public BytesProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public BytesProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs deleted file mode 100644 index 4df706cf0b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CircleProcessor.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class CircleProcessor - { - [JsonInclude] - [JsonPropertyName("error_distance")] - public double ErrorDistance { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("shape_type")] - public Elastic.Clients.Elasticsearch.Ingest.ShapeType ShapeType { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class CircleProcessorDescriptor : SerializableDescriptorBase> - { - internal CircleProcessorDescriptor(Action> configure) => configure.Invoke(this); - public CircleProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private double ErrorDistanceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ShapeType ShapeTypeValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public CircleProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public CircleProcessorDescriptor ErrorDistance(double errorDistance) - { - ErrorDistanceValue = errorDistance; - return Self; - } - - public CircleProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CircleProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public CircleProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public CircleProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public CircleProcessorDescriptor ShapeType(Elastic.Clients.Elasticsearch.Ingest.ShapeType shapeType) - { - ShapeTypeValue = shapeType; - return Self; - } - - public CircleProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public CircleProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("error_distance"); - writer.WriteNumberValue(ErrorDistanceValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("shape_type"); - JsonSerializer.Serialize(writer, ShapeTypeValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class CircleProcessorDescriptor : SerializableDescriptorBase - { - internal CircleProcessorDescriptor(Action configure) => configure.Invoke(this); - public CircleProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private double ErrorDistanceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ShapeType ShapeTypeValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public CircleProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public CircleProcessorDescriptor ErrorDistance(double errorDistance) - { - ErrorDistanceValue = errorDistance; - return Self; - } - - public CircleProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CircleProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public CircleProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public CircleProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public CircleProcessorDescriptor ShapeType(Elastic.Clients.Elasticsearch.Ingest.ShapeType shapeType) - { - ShapeTypeValue = shapeType; - return Self; - } - - public CircleProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public CircleProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("error_distance"); - writer.WriteNumberValue(ErrorDistanceValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("shape_type"); - JsonSerializer.Serialize(writer, ShapeTypeValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs deleted file mode 100644 index 80fbc880524..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ConvertProcessor.g.cs +++ /dev/null @@ -1,447 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class ConvertProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Ingest.ConvertType Type { get; set; } - } - - public sealed partial class ConvertProcessorDescriptor : SerializableDescriptorBase> - { - internal ConvertProcessorDescriptor(Action> configure) => configure.Invoke(this); - public ConvertProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ConvertType TypeValue { get; set; } - - public ConvertProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public ConvertProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ConvertProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public ConvertProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public ConvertProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public ConvertProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public ConvertProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public ConvertProcessorDescriptor Type(Elastic.Clients.Elasticsearch.Ingest.ConvertType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class ConvertProcessorDescriptor : SerializableDescriptorBase - { - internal ConvertProcessorDescriptor(Action configure) => configure.Invoke(this); - public ConvertProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ConvertType TypeValue { get; set; } - - public ConvertProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public ConvertProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ConvertProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public ConvertProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public ConvertProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public ConvertProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public ConvertProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public ConvertProcessorDescriptor Type(Elastic.Clients.Elasticsearch.Ingest.ConvertType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs deleted file mode 100644 index f6568c07085..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CsvProcessor.g.cs +++ /dev/null @@ -1,563 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class CsvProcessor - { - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("empty_value")] - public object EmptyValue { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("quote")] - public string? Quote { get; set; } - - [JsonInclude] - [JsonPropertyName("separator")] - public string? Separator { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_fields")] - public Elastic.Clients.Elasticsearch.Fields TargetFields { get; set; } - - [JsonInclude] - [JsonPropertyName("trim")] - public bool Trim { get; set; } - } - - public sealed partial class CsvProcessorDescriptor : SerializableDescriptorBase> - { - internal CsvProcessorDescriptor(Action> configure) => configure.Invoke(this); - public CsvProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string? DescriptionValue { get; set; } - - private object EmptyValueValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? QuoteValue { get; set; } - - private string? SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields TargetFieldsValue { get; set; } - - private bool TrimValue { get; set; } - - public CsvProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public CsvProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public CsvProcessorDescriptor EmptyValue(object emptyValue) - { - EmptyValueValue = emptyValue; - return Self; - } - - public CsvProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CsvProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public CsvProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public CsvProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public CsvProcessorDescriptor Quote(string? quote) - { - QuoteValue = quote; - return Self; - } - - public CsvProcessorDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - public CsvProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public CsvProcessorDescriptor TargetFields(Elastic.Clients.Elasticsearch.Fields targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - public CsvProcessorDescriptor TargetFields(Expression> targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - public CsvProcessorDescriptor Trim(bool trim = true) - { - TrimValue = trim; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(QuoteValue)) - { - writer.WritePropertyName("quote"); - writer.WriteStringValue(QuoteValue); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_fields"); - JsonSerializer.Serialize(writer, TargetFieldsValue, options); - writer.WritePropertyName("trim"); - writer.WriteBooleanValue(TrimValue); - writer.WriteEndObject(); - } - } - - public sealed partial class CsvProcessorDescriptor : SerializableDescriptorBase - { - internal CsvProcessorDescriptor(Action configure) => configure.Invoke(this); - public CsvProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string? DescriptionValue { get; set; } - - private object EmptyValueValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? QuoteValue { get; set; } - - private string? SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields TargetFieldsValue { get; set; } - - private bool TrimValue { get; set; } - - public CsvProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public CsvProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public CsvProcessorDescriptor EmptyValue(object emptyValue) - { - EmptyValueValue = emptyValue; - return Self; - } - - public CsvProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CsvProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public CsvProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public CsvProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public CsvProcessorDescriptor Quote(string? quote) - { - QuoteValue = quote; - return Self; - } - - public CsvProcessorDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - public CsvProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public CsvProcessorDescriptor TargetFields(Elastic.Clients.Elasticsearch.Fields targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - public CsvProcessorDescriptor TargetFields(Expression> targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - public CsvProcessorDescriptor TargetFields(Expression> targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - public CsvProcessorDescriptor Trim(bool trim = true) - { - TrimValue = trim; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(QuoteValue)) - { - writer.WritePropertyName("quote"); - writer.WriteStringValue(QuoteValue); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_fields"); - JsonSerializer.Serialize(writer, TargetFieldsValue, options); - writer.WritePropertyName("trim"); - writer.WriteBooleanValue(TrimValue); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 157abb67ae7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs +++ /dev/null @@ -1,493 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DateIndexNameProcessor - { - [JsonInclude] - [JsonPropertyName("date_formats")] - public IEnumerable DateFormats { get; set; } - - [JsonInclude] - [JsonPropertyName("date_rounding")] - public string DateRounding { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("index_name_format")] - public string IndexNameFormat { get; set; } - - [JsonInclude] - [JsonPropertyName("index_name_prefix")] - public string IndexNamePrefix { get; set; } - - [JsonInclude] - [JsonPropertyName("locale")] - public string Locale { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("timezone")] - public string Timezone { get; set; } - } - - public sealed partial class DateIndexNameProcessorDescriptor : SerializableDescriptorBase> - { - internal DateIndexNameProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DateIndexNameProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private IEnumerable DateFormatsValue { get; set; } - - private string DateRoundingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string IndexNameFormatValue { get; set; } - - private string IndexNamePrefixValue { get; set; } - - private string LocaleValue { get; set; } - - private string? TagValue { get; set; } - - private string TimezoneValue { get; set; } - - public DateIndexNameProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor DateFormats(IEnumerable dateFormats) - { - DateFormatsValue = dateFormats; - return Self; - } - - public DateIndexNameProcessorDescriptor DateRounding(string dateRounding) - { - DateRoundingValue = dateRounding; - return Self; - } - - public DateIndexNameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateIndexNameProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DateIndexNameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor IndexNameFormat(string indexNameFormat) - { - IndexNameFormatValue = indexNameFormat; - return Self; - } - - public DateIndexNameProcessorDescriptor IndexNamePrefix(string indexNamePrefix) - { - IndexNamePrefixValue = indexNamePrefix; - return Self; - } - - public DateIndexNameProcessorDescriptor Locale(string locale) - { - LocaleValue = locale; - return Self; - } - - public DateIndexNameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public DateIndexNameProcessorDescriptor Timezone(string timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("date_formats"); - JsonSerializer.Serialize(writer, DateFormatsValue, options); - writer.WritePropertyName("date_rounding"); - writer.WriteStringValue(DateRoundingValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("index_name_format"); - writer.WriteStringValue(IndexNameFormatValue); - writer.WritePropertyName("index_name_prefix"); - writer.WriteStringValue(IndexNamePrefixValue); - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - writer.WriteEndObject(); - } - } - - public sealed partial class DateIndexNameProcessorDescriptor : SerializableDescriptorBase - { - internal DateIndexNameProcessorDescriptor(Action configure) => configure.Invoke(this); - public DateIndexNameProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private IEnumerable DateFormatsValue { get; set; } - - private string DateRoundingValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string IndexNameFormatValue { get; set; } - - private string IndexNamePrefixValue { get; set; } - - private string LocaleValue { get; set; } - - private string? TagValue { get; set; } - - private string TimezoneValue { get; set; } - - public DateIndexNameProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor DateFormats(IEnumerable dateFormats) - { - DateFormatsValue = dateFormats; - return Self; - } - - public DateIndexNameProcessorDescriptor DateRounding(string dateRounding) - { - DateRoundingValue = dateRounding; - return Self; - } - - public DateIndexNameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateIndexNameProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DateIndexNameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor IndexNameFormat(string indexNameFormat) - { - IndexNameFormatValue = indexNameFormat; - return Self; - } - - public DateIndexNameProcessorDescriptor IndexNamePrefix(string indexNamePrefix) - { - IndexNamePrefixValue = indexNamePrefix; - return Self; - } - - public DateIndexNameProcessorDescriptor Locale(string locale) - { - LocaleValue = locale; - return Self; - } - - public DateIndexNameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public DateIndexNameProcessorDescriptor Timezone(string timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("date_formats"); - JsonSerializer.Serialize(writer, DateFormatsValue, options); - writer.WritePropertyName("date_rounding"); - writer.WriteStringValue(DateRoundingValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("index_name_format"); - writer.WriteStringValue(IndexNameFormatValue); - writer.WritePropertyName("index_name_prefix"); - writer.WriteStringValue(IndexNamePrefixValue); - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs deleted file mode 100644 index 38807dfb001..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs +++ /dev/null @@ -1,487 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DateProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("formats")] - public IEnumerable Formats { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("locale")] - public string? Locale { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - - [JsonInclude] - [JsonPropertyName("timezone")] - public string? Timezone { get; set; } - } - - public sealed partial class DateProcessorDescriptor : SerializableDescriptorBase> - { - internal DateProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DateProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private IEnumerable FormatsValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? LocaleValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - private string? TimezoneValue { get; set; } - - public DateProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DateProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateProcessorDescriptor Formats(IEnumerable formats) - { - FormatsValue = formats; - return Self; - } - - public DateProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DateProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - public DateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public DateProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public DateProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("formats"); - JsonSerializer.Serialize(writer, FormatsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DateProcessorDescriptor : SerializableDescriptorBase - { - internal DateProcessorDescriptor(Action configure) => configure.Invoke(this); - public DateProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private IEnumerable FormatsValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? LocaleValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - private string? TimezoneValue { get; set; } - - public DateProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DateProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateProcessorDescriptor Formats(IEnumerable formats) - { - FormatsValue = formats; - return Self; - } - - public DateProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DateProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - public DateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public DateProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public DateProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("formats"); - JsonSerializer.Serialize(writer, FormatsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs deleted file mode 100644 index a6b57fcc8b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DissectProcessor.g.cs +++ /dev/null @@ -1,421 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DissectProcessor - { - [JsonInclude] - [JsonPropertyName("append_separator")] - public string AppendSeparator { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("pattern")] - public string Pattern { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class DissectProcessorDescriptor : SerializableDescriptorBase> - { - internal DissectProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DissectProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string AppendSeparatorValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private string PatternValue { get; set; } - - private string? TagValue { get; set; } - - public DissectProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DissectProcessorDescriptor AppendSeparator(string appendSeparator) - { - AppendSeparatorValue = appendSeparator; - return Self; - } - - public DissectProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DissectProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DissectProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DissectProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public DissectProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public DissectProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("append_separator"); - writer.WriteStringValue(AppendSeparatorValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DissectProcessorDescriptor : SerializableDescriptorBase - { - internal DissectProcessorDescriptor(Action configure) => configure.Invoke(this); - public DissectProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string AppendSeparatorValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private string PatternValue { get; set; } - - private string? TagValue { get; set; } - - public DissectProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DissectProcessorDescriptor AppendSeparator(string appendSeparator) - { - AppendSeparatorValue = appendSeparator; - return Self; - } - - public DissectProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DissectProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DissectProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DissectProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public DissectProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public DissectProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("append_separator"); - writer.WriteStringValue(AppendSeparatorValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs deleted file mode 100644 index 65da7513dbc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Document.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class Document - { - [JsonInclude] - [JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Id? Id { get; set; } - - [JsonInclude] - [JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("_source")] - public object Source { get; set; } - } - - public sealed partial class DocumentDescriptor : SerializableDescriptorBase - { - internal DocumentDescriptor(Action configure) => configure.Invoke(this); - public DocumentDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private object SourceValue { get; set; } - - public DocumentDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - IdValue = id; - return Self; - } - - public DocumentDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public DocumentDescriptor Source(object source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IdValue is not null) - { - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs deleted file mode 100644 index 16d345a44a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DocumentSimulation - { - [JsonInclude] - [JsonPropertyName("_id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("_index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("_ingest")] - public Elastic.Clients.Elasticsearch.Ingest.Ingest Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("_parent")] - public string? Parent { get; init; } - - [JsonInclude] - [JsonPropertyName("_routing")] - public string? Routing { get; init; } - - [JsonInclude] - [JsonPropertyName("_source")] - public Dictionary Source { get; init; } - } -} \ 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 deleted file mode 100644 index 91ab754bd63..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DotExpanderProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("path")] - public string? Path { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class DotExpanderProcessorDescriptor : SerializableDescriptorBase> - { - internal DotExpanderProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DotExpanderProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? PathValue { get; set; } - - private string? TagValue { get; set; } - - public DotExpanderProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DotExpanderProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DotExpanderProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DotExpanderProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DotExpanderProcessorDescriptor Path(string? path) - { - PathValue = path; - return Self; - } - - public DotExpanderProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(PathValue)) - { - writer.WritePropertyName("path"); - writer.WriteStringValue(PathValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DotExpanderProcessorDescriptor : SerializableDescriptorBase - { - internal DotExpanderProcessorDescriptor(Action configure) => configure.Invoke(this); - public DotExpanderProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? PathValue { get; set; } - - private string? TagValue { get; set; } - - public DotExpanderProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DotExpanderProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DotExpanderProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DotExpanderProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DotExpanderProcessorDescriptor Path(string? path) - { - PathValue = path; - return Self; - } - - public DotExpanderProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(PathValue)) - { - writer.WritePropertyName("path"); - writer.WriteStringValue(PathValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs deleted file mode 100644 index 8b053e3b45f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DropProcessor.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class DropProcessor - { - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class DropProcessorDescriptor : SerializableDescriptorBase> - { - internal DropProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DropProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - public DropProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DropProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DropProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DropProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DropProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DropProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DropProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DropProcessorDescriptor : SerializableDescriptorBase - { - internal DropProcessorDescriptor(Action configure) => configure.Invoke(this); - public DropProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - public DropProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DropProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DropProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DropProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public DropProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public DropProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public DropProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs deleted file mode 100644 index 249c0fe88c7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/EnrichProcessor.g.cs +++ /dev/null @@ -1,543 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class EnrichProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("max_matches")] - public int? MaxMatches { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("override")] - public bool? Override { get; set; } - - [JsonInclude] - [JsonPropertyName("policy_name")] - public string PolicyName { get; set; } - - [JsonInclude] - [JsonPropertyName("shape_relation")] - public Elastic.Clients.Elasticsearch.GeoShapeRelation? ShapeRelation { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class EnrichProcessorDescriptor : SerializableDescriptorBase> - { - internal EnrichProcessorDescriptor(Action> configure) => configure.Invoke(this); - public EnrichProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private int? MaxMatchesValue { get; set; } - - private bool? OverrideValue { get; set; } - - private string PolicyNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.GeoShapeRelation? ShapeRelationValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public EnrichProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public EnrichProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public EnrichProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public EnrichProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public EnrichProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public EnrichProcessorDescriptor MaxMatches(int? maxMatches) - { - MaxMatchesValue = maxMatches; - return Self; - } - - public EnrichProcessorDescriptor Override(bool? overrideValue = true) - { - OverrideValue = overrideValue; - return Self; - } - - public EnrichProcessorDescriptor PolicyName(string policyName) - { - PolicyNameValue = policyName; - return Self; - } - - public EnrichProcessorDescriptor ShapeRelation(Elastic.Clients.Elasticsearch.GeoShapeRelation? shapeRelation) - { - ShapeRelationValue = shapeRelation; - return Self; - } - - public EnrichProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public EnrichProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MaxMatchesValue.HasValue) - { - writer.WritePropertyName("max_matches"); - writer.WriteNumberValue(MaxMatchesValue.Value); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - writer.WritePropertyName("policy_name"); - writer.WriteStringValue(PolicyNameValue); - if (ShapeRelationValue is not null) - { - writer.WritePropertyName("shape_relation"); - JsonSerializer.Serialize(writer, ShapeRelationValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class EnrichProcessorDescriptor : SerializableDescriptorBase - { - internal EnrichProcessorDescriptor(Action configure) => configure.Invoke(this); - public EnrichProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private int? MaxMatchesValue { get; set; } - - private bool? OverrideValue { get; set; } - - private string PolicyNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.GeoShapeRelation? ShapeRelationValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public EnrichProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public EnrichProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public EnrichProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public EnrichProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public EnrichProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public EnrichProcessorDescriptor MaxMatches(int? maxMatches) - { - MaxMatchesValue = maxMatches; - return Self; - } - - public EnrichProcessorDescriptor Override(bool? overrideValue = true) - { - OverrideValue = overrideValue; - return Self; - } - - public EnrichProcessorDescriptor PolicyName(string policyName) - { - PolicyNameValue = policyName; - return Self; - } - - public EnrichProcessorDescriptor ShapeRelation(Elastic.Clients.Elasticsearch.GeoShapeRelation? shapeRelation) - { - ShapeRelationValue = shapeRelation; - return Self; - } - - public EnrichProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public EnrichProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MaxMatchesValue.HasValue) - { - writer.WritePropertyName("max_matches"); - writer.WriteNumberValue(MaxMatchesValue.Value); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - writer.WritePropertyName("policy_name"); - writer.WriteStringValue(PolicyNameValue); - if (ShapeRelationValue is not null) - { - writer.WritePropertyName("shape_relation"); - JsonSerializer.Serialize(writer, ShapeRelationValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs deleted file mode 100644 index 74569560f56..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FailProcessor.g.cs +++ /dev/null @@ -1,331 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class FailProcessor - { - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class FailProcessorDescriptor : SerializableDescriptorBase> - { - internal FailProcessorDescriptor(Action> configure) => configure.Invoke(this); - public FailProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string MessageValue { get; set; } - - private string? TagValue { get; set; } - - public FailProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FailProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FailProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FailProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public FailProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public FailProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public FailProcessorDescriptor Message(string message) - { - MessageValue = message; - return Self; - } - - public FailProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("message"); - writer.WriteStringValue(MessageValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class FailProcessorDescriptor : SerializableDescriptorBase - { - internal FailProcessorDescriptor(Action configure) => configure.Invoke(this); - public FailProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string MessageValue { get; set; } - - private string? TagValue { get; set; } - - public FailProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FailProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FailProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FailProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public FailProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public FailProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public FailProcessorDescriptor Message(string message) - { - MessageValue = message; - return Self; - } - - public FailProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("message"); - writer.WriteStringValue(MessageValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs deleted file mode 100644 index 311da5f0c6e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ForeachProcessor.g.cs +++ /dev/null @@ -1,477 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class ForeachProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("processor")] - public Elastic.Clients.Elasticsearch.Ingest.ProcessorContainer Processor { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class ForeachProcessorDescriptor : SerializableDescriptorBase> - { - internal ForeachProcessorDescriptor(Action> configure) => configure.Invoke(this); - public ForeachProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ProcessorContainer ProcessorValue { get; set; } - - private ProcessorContainerDescriptor ProcessorDescriptor { get; set; } - - private Action> ProcessorDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - public ForeachProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Ingest.ProcessorContainer processor) - { - ProcessorDescriptor = null; - ProcessorDescriptorAction = null; - ProcessorValue = processor; - return Self; - } - - public ForeachProcessorDescriptor Processor(ProcessorContainerDescriptor descriptor) - { - ProcessorValue = null; - ProcessorDescriptorAction = null; - ProcessorDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Action> configure) - { - ProcessorValue = null; - ProcessorDescriptor = null; - ProcessorDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ForeachProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public ForeachProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public ForeachProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public ForeachProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorDescriptor is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorDescriptor, options); - } - else if (ProcessorDescriptorAction is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorDescriptorAction), options); - } - else - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ForeachProcessorDescriptor : SerializableDescriptorBase - { - internal ForeachProcessorDescriptor(Action configure) => configure.Invoke(this); - public ForeachProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ingest.ProcessorContainer ProcessorValue { get; set; } - - private ProcessorContainerDescriptor ProcessorDescriptor { get; set; } - - private Action ProcessorDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - public ForeachProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Ingest.ProcessorContainer processor) - { - ProcessorDescriptor = null; - ProcessorDescriptorAction = null; - ProcessorValue = processor; - return Self; - } - - public ForeachProcessorDescriptor Processor(ProcessorContainerDescriptor descriptor) - { - ProcessorValue = null; - ProcessorDescriptorAction = null; - ProcessorDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Action configure) - { - ProcessorValue = null; - ProcessorDescriptor = null; - ProcessorDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ForeachProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public ForeachProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public ForeachProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public ForeachProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorDescriptor is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorDescriptor, options); - } - else if (ProcessorDescriptorAction is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorDescriptorAction), options); - } - else - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs deleted file mode 100644 index 578cd042104..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GeoIpDownloadStatistics - { - [JsonInclude] - [JsonPropertyName("database_count")] - public int DatabaseCount { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_downloads")] - public int FailedDownloads { get; init; } - - [JsonInclude] - [JsonPropertyName("skipped_updates")] - public int SkippedUpdates { get; init; } - - [JsonInclude] - [JsonPropertyName("successful_downloads")] - public int SuccessfulDownloads { get; init; } - - [JsonInclude] - [JsonPropertyName("total_download_time")] - public long TotalDownloadTime { get; init; } - } -} \ 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 deleted file mode 100644 index 7b1bd381e4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GeoIpNodeDatabaseName - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ 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 deleted file mode 100644 index c57353873c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GeoIpNodeDatabases - { - [JsonInclude] - [JsonPropertyName("databases")] - public IReadOnlyCollection Databases { get; init; } - - [JsonInclude] - [JsonPropertyName("files_in_temp")] - public IReadOnlyCollection FilesInTemp { get; init; } - } -} \ 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 deleted file mode 100644 index e111b30d83d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs +++ /dev/null @@ -1,487 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GeoIpProcessor - { - [JsonInclude] - [JsonPropertyName("database_file")] - public string DatabaseFile { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("first_only")] - public bool FirstOnly { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("properties")] - public IEnumerable Properties { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class GeoIpProcessorDescriptor : SerializableDescriptorBase> - { - internal GeoIpProcessorDescriptor(Action> configure) => configure.Invoke(this); - public GeoIpProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string DatabaseFileValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private bool FirstOnlyValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private IEnumerable PropertiesValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public GeoIpProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GeoIpProcessorDescriptor DatabaseFile(string databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - public GeoIpProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoIpProcessorDescriptor FirstOnly(bool firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - public GeoIpProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GeoIpProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GeoIpProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GeoIpProcessorDescriptor Properties(IEnumerable properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoIpProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GeoIpProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class GeoIpProcessorDescriptor : SerializableDescriptorBase - { - internal GeoIpProcessorDescriptor(Action configure) => configure.Invoke(this); - public GeoIpProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string DatabaseFileValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private bool FirstOnlyValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private IEnumerable PropertiesValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public GeoIpProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GeoIpProcessorDescriptor DatabaseFile(string databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - public GeoIpProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoIpProcessorDescriptor FirstOnly(bool firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - public GeoIpProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GeoIpProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GeoIpProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GeoIpProcessorDescriptor Properties(IEnumerable properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoIpProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GeoIpProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs deleted file mode 100644 index 6fee15146ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs +++ /dev/null @@ -1,461 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GrokProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("pattern_definitions")] - public Dictionary PatternDefinitions { get; set; } - - [JsonInclude] - [JsonPropertyName("patterns")] - public IEnumerable Patterns { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("trace_match")] - public bool? TraceMatch { get; set; } - } - - public sealed partial class GrokProcessorDescriptor : SerializableDescriptorBase> - { - internal GrokProcessorDescriptor(Action> configure) => configure.Invoke(this); - public GrokProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private Dictionary PatternDefinitionsValue { get; set; } - - private IEnumerable PatternsValue { get; set; } - - private string? TagValue { get; set; } - - private bool? TraceMatchValue { get; set; } - - public GrokProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GrokProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GrokProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GrokProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GrokProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GrokProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GrokProcessorDescriptor Patterns(IEnumerable patterns) - { - PatternsValue = patterns; - return Self; - } - - public GrokProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GrokProcessorDescriptor TraceMatch(bool? traceMatch = true) - { - TraceMatchValue = traceMatch; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceMatchValue.HasValue) - { - writer.WritePropertyName("trace_match"); - writer.WriteBooleanValue(TraceMatchValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class GrokProcessorDescriptor : SerializableDescriptorBase - { - internal GrokProcessorDescriptor(Action configure) => configure.Invoke(this); - public GrokProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private Dictionary PatternDefinitionsValue { get; set; } - - private IEnumerable PatternsValue { get; set; } - - private string? TagValue { get; set; } - - private bool? TraceMatchValue { get; set; } - - public GrokProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GrokProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GrokProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GrokProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GrokProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GrokProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GrokProcessorDescriptor Patterns(IEnumerable patterns) - { - PatternsValue = patterns; - return Self; - } - - public GrokProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GrokProcessorDescriptor TraceMatch(bool? traceMatch = true) - { - TraceMatchValue = traceMatch; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceMatchValue.HasValue) - { - writer.WritePropertyName("trace_match"); - writer.WriteBooleanValue(TraceMatchValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs deleted file mode 100644 index 171a9524767..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GsubProcessor.g.cs +++ /dev/null @@ -1,479 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class GsubProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("pattern")] - public string Pattern { get; set; } - - [JsonInclude] - [JsonPropertyName("replacement")] - public string Replacement { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class GsubProcessorDescriptor : SerializableDescriptorBase> - { - internal GsubProcessorDescriptor(Action> configure) => configure.Invoke(this); - public GsubProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string PatternValue { get; set; } - - private string ReplacementValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public GsubProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GsubProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GsubProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GsubProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GsubProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GsubProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public GsubProcessorDescriptor Replacement(string replacement) - { - ReplacementValue = replacement; - return Self; - } - - public GsubProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GsubProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class GsubProcessorDescriptor : SerializableDescriptorBase - { - internal GsubProcessorDescriptor(Action configure) => configure.Invoke(this); - public GsubProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string PatternValue { get; set; } - - private string ReplacementValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public GsubProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public GsubProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GsubProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public GsubProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public GsubProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public GsubProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public GsubProcessorDescriptor Replacement(string replacement) - { - ReplacementValue = replacement; - return Self; - } - - public GsubProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public GsubProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs deleted file mode 100644 index 9f31214a26b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfig.g.cs +++ /dev/null @@ -1,229 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - [JsonConverter(typeof(InferenceConfigConverter))] - public sealed partial class InferenceConfig - { - internal InferenceConfig(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static InferenceConfig Classification(Elastic.Clients.Elasticsearch.Ingest.InferenceConfigClassification inferenceConfigClassification) => new InferenceConfig("classification", inferenceConfigClassification); - public static InferenceConfig Regression(Elastic.Clients.Elasticsearch.Ingest.InferenceConfigRegression inferenceConfigRegression) => new InferenceConfig("regression", inferenceConfigRegression); - } - - internal sealed class InferenceConfigConverter : JsonConverter - { - public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new InferenceConfig(propertyName, variant); - } - - if (propertyName == "regression") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new InferenceConfig(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, InferenceConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.InferenceConfigClassification)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.InferenceConfigRegression)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class InferenceConfigDescriptor : SerializableDescriptorBase> - { - internal InferenceConfigDescriptor(Action> configure) => configure.Invoke(this); - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the InferenceConfigDescriptor. Only a single InferenceConfig variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the InferenceConfigDescriptor. Only a single InferenceConfig variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(InferenceConfigClassification variant) => Set(variant, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void Regression(InferenceConfigRegression variant) => Set(variant, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class InferenceConfigDescriptor : SerializableDescriptorBase - { - internal InferenceConfigDescriptor(Action configure) => configure.Invoke(this); - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the InferenceConfigDescriptor. Only a single InferenceConfig variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the InferenceConfigDescriptor. Only a single InferenceConfig variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(InferenceConfigClassification variant) => Set(variant, "classification"); - public void Classification(Action configure) => Set(configure, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void Regression(InferenceConfigRegression variant) => Set(variant, "regression"); - public void Regression(Action configure) => Set(configure, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs deleted file mode 100644 index ff61ff55e1a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigClassification.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class InferenceConfigClassification - { - [JsonInclude] - [JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - [JsonInclude] - [JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - [JsonInclude] - [JsonPropertyName("prediction_field_type")] - public string? PredictionFieldType { get; set; } - - [JsonInclude] - [JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Field? ResultsField { get; set; } - - [JsonInclude] - [JsonPropertyName("top_classes_results_field")] - public Elastic.Clients.Elasticsearch.Field? TopClassesResultsField { get; set; } - } - - public sealed partial class InferenceConfigClassificationDescriptor : SerializableDescriptorBase> - { - internal InferenceConfigClassificationDescriptor(Action> configure) => configure.Invoke(this); - public InferenceConfigClassificationDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private string? PredictionFieldTypeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TopClassesResultsFieldValue { get; set; } - - public InferenceConfigClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - public InferenceConfigClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public InferenceConfigClassificationDescriptor PredictionFieldType(string? predictionFieldType) - { - PredictionFieldTypeValue = predictionFieldType; - return Self; - } - - public InferenceConfigClassificationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor TopClassesResultsField(Elastic.Clients.Elasticsearch.Field? topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (!string.IsNullOrEmpty(PredictionFieldTypeValue)) - { - writer.WritePropertyName("prediction_field_type"); - writer.WriteStringValue(PredictionFieldTypeValue); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - if (TopClassesResultsFieldValue is not null) - { - writer.WritePropertyName("top_classes_results_field"); - JsonSerializer.Serialize(writer, TopClassesResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class InferenceConfigClassificationDescriptor : SerializableDescriptorBase - { - internal InferenceConfigClassificationDescriptor(Action configure) => configure.Invoke(this); - public InferenceConfigClassificationDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private string? PredictionFieldTypeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TopClassesResultsFieldValue { get; set; } - - public InferenceConfigClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - public InferenceConfigClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public InferenceConfigClassificationDescriptor PredictionFieldType(string? predictionFieldType) - { - PredictionFieldTypeValue = predictionFieldType; - return Self; - } - - public InferenceConfigClassificationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor TopClassesResultsField(Elastic.Clients.Elasticsearch.Field? topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (!string.IsNullOrEmpty(PredictionFieldTypeValue)) - { - writer.WritePropertyName("prediction_field_type"); - writer.WriteStringValue(PredictionFieldTypeValue); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - if (TopClassesResultsFieldValue is not null) - { - writer.WritePropertyName("top_classes_results_field"); - JsonSerializer.Serialize(writer, TopClassesResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs deleted file mode 100644 index 163ea15aa10..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceConfigRegression.g.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class InferenceConfigRegression - { - [JsonInclude] - [JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - [JsonInclude] - [JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Field? ResultsField { get; set; } - } - - public sealed partial class InferenceConfigRegressionDescriptor : SerializableDescriptorBase> - { - internal InferenceConfigRegressionDescriptor(Action> configure) => configure.Invoke(this); - public InferenceConfigRegressionDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - public InferenceConfigRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public InferenceConfigRegressionDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class InferenceConfigRegressionDescriptor : SerializableDescriptorBase - { - internal InferenceConfigRegressionDescriptor(Action configure) => configure.Invoke(this); - public InferenceConfigRegressionDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - public InferenceConfigRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public InferenceConfigRegressionDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs deleted file mode 100644 index 79b82d11ffb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs +++ /dev/null @@ -1,501 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class InferenceProcessor - { - [JsonInclude] - [JsonPropertyName("field_map")] - public Dictionary? FieldMap { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("model_id")] - public Elastic.Clients.Elasticsearch.Id ModelId { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class InferenceProcessorDescriptor : SerializableDescriptorBase> - { - internal InferenceProcessorDescriptor(Action> configure) => configure.Invoke(this); - public InferenceProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfigValue { get; set; } - - private InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - - private Action> InferenceConfigDescriptorAction { get; set; } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Dictionary? FieldMapValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id ModelIdValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public InferenceProcessorDescriptor FieldMap(Func, FluentDictionary> selector) - { - FieldMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public InferenceProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public InferenceProcessorDescriptor ModelId(Elastic.Clients.Elasticsearch.Id modelId) - { - ModelIdValue = modelId; - return Self; - } - - public InferenceProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public InferenceProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (FieldMapValue is not null) - { - writer.WritePropertyName("field_map"); - JsonSerializer.Serialize(writer, FieldMapValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class InferenceProcessorDescriptor : SerializableDescriptorBase - { - internal InferenceProcessorDescriptor(Action configure) => configure.Invoke(this); - public InferenceProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfigValue { get; set; } - - private InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - - private Action InferenceConfigDescriptorAction { get; set; } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Dictionary? FieldMapValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id ModelIdValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public InferenceProcessorDescriptor FieldMap(Func, FluentDictionary> selector) - { - FieldMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public InferenceProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public InferenceProcessorDescriptor ModelId(Elastic.Clients.Elasticsearch.Id modelId) - { - ModelIdValue = modelId; - return Self; - } - - public InferenceProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public InferenceProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (FieldMapValue is not null) - { - writer.WritePropertyName("field_map"); - JsonSerializer.Serialize(writer, FieldMapValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs deleted file mode 100644 index 3cd2556e23d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class Ingest - { - [JsonInclude] - [JsonPropertyName("pipeline")] - public string? Pipeline { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public DateTimeOffset Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs deleted file mode 100644 index 771bcd29bb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JoinProcessor.g.cs +++ /dev/null @@ -1,423 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class JoinProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("separator")] - public string Separator { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class JoinProcessorDescriptor : SerializableDescriptorBase> - { - internal JoinProcessorDescriptor(Action> configure) => configure.Invoke(this); - public JoinProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public JoinProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public JoinProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JoinProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public JoinProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public JoinProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - public JoinProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public JoinProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class JoinProcessorDescriptor : SerializableDescriptorBase - { - internal JoinProcessorDescriptor(Action configure) => configure.Invoke(this); - public JoinProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public JoinProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public JoinProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JoinProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public JoinProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public JoinProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - public JoinProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public JoinProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs deleted file mode 100644 index 0bbd8f7737c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/JsonProcessor.g.cs +++ /dev/null @@ -1,415 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class JsonProcessor - { - [JsonInclude] - [JsonPropertyName("add_to_root")] - public bool AddToRoot { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class JsonProcessorDescriptor : SerializableDescriptorBase> - { - internal JsonProcessorDescriptor(Action> configure) => configure.Invoke(this); - public JsonProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private bool AddToRootValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public JsonProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public JsonProcessorDescriptor AddToRoot(bool addToRoot = true) - { - AddToRootValue = addToRoot; - return Self; - } - - public JsonProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JsonProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public JsonProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public JsonProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public JsonProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("add_to_root"); - writer.WriteBooleanValue(AddToRootValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class JsonProcessorDescriptor : SerializableDescriptorBase - { - internal JsonProcessorDescriptor(Action configure) => configure.Invoke(this); - public JsonProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private bool AddToRootValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public JsonProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public JsonProcessorDescriptor AddToRoot(bool addToRoot = true) - { - AddToRootValue = addToRoot; - return Self; - } - - public JsonProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public JsonProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public JsonProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public JsonProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public JsonProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("add_to_root"); - writer.WriteBooleanValue(AddToRootValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs deleted file mode 100644 index e6b7f5110ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/KeyValueProcessor.g.cs +++ /dev/null @@ -1,671 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class KeyValueProcessor - { - [JsonInclude] - [JsonPropertyName("exclude_keys")] - public IEnumerable? ExcludeKeys { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("field_split")] - public string FieldSplit { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("include_keys")] - public IEnumerable? IncludeKeys { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - [JsonInclude] - [JsonPropertyName("strip_brackets")] - public bool? StripBrackets { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - - [JsonInclude] - [JsonPropertyName("trim_key")] - public string? TrimKey { get; set; } - - [JsonInclude] - [JsonPropertyName("trim_value")] - public string? TrimValue { get; set; } - - [JsonInclude] - [JsonPropertyName("value_split")] - public string ValueSplit { get; set; } - } - - public sealed partial class KeyValueProcessorDescriptor : SerializableDescriptorBase> - { - internal KeyValueProcessorDescriptor(Action> configure) => configure.Invoke(this); - public KeyValueProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ExcludeKeysValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string FieldSplitValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private IEnumerable? IncludeKeysValue { get; set; } - - private string? PrefixValue { get; set; } - - private bool? StripBracketsValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - private string? TrimKeyValue { get; set; } - - private string? TrimValueValue { get; set; } - - private string ValueSplitValue { get; set; } - - public KeyValueProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public KeyValueProcessorDescriptor ExcludeKeys(IEnumerable? excludeKeys) - { - ExcludeKeysValue = excludeKeys; - return Self; - } - - public KeyValueProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public KeyValueProcessorDescriptor FieldSplit(string fieldSplit) - { - FieldSplitValue = fieldSplit; - return Self; - } - - public KeyValueProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public KeyValueProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public KeyValueProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public KeyValueProcessorDescriptor IncludeKeys(IEnumerable? includeKeys) - { - IncludeKeysValue = includeKeys; - return Self; - } - - public KeyValueProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - public KeyValueProcessorDescriptor StripBrackets(bool? stripBrackets = true) - { - StripBracketsValue = stripBrackets; - return Self; - } - - public KeyValueProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public KeyValueProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public KeyValueProcessorDescriptor TrimKey(string? trimKey) - { - TrimKeyValue = trimKey; - return Self; - } - - public KeyValueProcessorDescriptor TrimValue(string? trimValue) - { - TrimValueValue = trimValue; - return Self; - } - - public KeyValueProcessorDescriptor ValueSplit(string valueSplit) - { - ValueSplitValue = valueSplit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ExcludeKeysValue is not null) - { - writer.WritePropertyName("exclude_keys"); - JsonSerializer.Serialize(writer, ExcludeKeysValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("field_split"); - writer.WriteStringValue(FieldSplitValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IncludeKeysValue is not null) - { - writer.WritePropertyName("include_keys"); - JsonSerializer.Serialize(writer, IncludeKeysValue, options); - } - - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (StripBracketsValue.HasValue) - { - writer.WritePropertyName("strip_brackets"); - writer.WriteBooleanValue(StripBracketsValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TrimKeyValue)) - { - writer.WritePropertyName("trim_key"); - writer.WriteStringValue(TrimKeyValue); - } - - if (!string.IsNullOrEmpty(TrimValueValue)) - { - writer.WritePropertyName("trim_value"); - writer.WriteStringValue(TrimValueValue); - } - - writer.WritePropertyName("value_split"); - writer.WriteStringValue(ValueSplitValue); - writer.WriteEndObject(); - } - } - - public sealed partial class KeyValueProcessorDescriptor : SerializableDescriptorBase - { - internal KeyValueProcessorDescriptor(Action configure) => configure.Invoke(this); - public KeyValueProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ExcludeKeysValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string FieldSplitValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private IEnumerable? IncludeKeysValue { get; set; } - - private string? PrefixValue { get; set; } - - private bool? StripBracketsValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - private string? TrimKeyValue { get; set; } - - private string? TrimValueValue { get; set; } - - private string ValueSplitValue { get; set; } - - public KeyValueProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public KeyValueProcessorDescriptor ExcludeKeys(IEnumerable? excludeKeys) - { - ExcludeKeysValue = excludeKeys; - return Self; - } - - public KeyValueProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public KeyValueProcessorDescriptor FieldSplit(string fieldSplit) - { - FieldSplitValue = fieldSplit; - return Self; - } - - public KeyValueProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public KeyValueProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public KeyValueProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public KeyValueProcessorDescriptor IncludeKeys(IEnumerable? includeKeys) - { - IncludeKeysValue = includeKeys; - return Self; - } - - public KeyValueProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - public KeyValueProcessorDescriptor StripBrackets(bool? stripBrackets = true) - { - StripBracketsValue = stripBrackets; - return Self; - } - - public KeyValueProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public KeyValueProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public KeyValueProcessorDescriptor TrimKey(string? trimKey) - { - TrimKeyValue = trimKey; - return Self; - } - - public KeyValueProcessorDescriptor TrimValue(string? trimValue) - { - TrimValueValue = trimValue; - return Self; - } - - public KeyValueProcessorDescriptor ValueSplit(string valueSplit) - { - ValueSplitValue = valueSplit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ExcludeKeysValue is not null) - { - writer.WritePropertyName("exclude_keys"); - JsonSerializer.Serialize(writer, ExcludeKeysValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("field_split"); - writer.WriteStringValue(FieldSplitValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IncludeKeysValue is not null) - { - writer.WritePropertyName("include_keys"); - JsonSerializer.Serialize(writer, IncludeKeysValue, options); - } - - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (StripBracketsValue.HasValue) - { - writer.WritePropertyName("strip_brackets"); - writer.WriteBooleanValue(StripBracketsValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TrimKeyValue)) - { - writer.WritePropertyName("trim_key"); - writer.WriteStringValue(TrimKeyValue); - } - - if (!string.IsNullOrEmpty(TrimValueValue)) - { - writer.WritePropertyName("trim_value"); - writer.WriteStringValue(TrimValueValue); - } - - writer.WritePropertyName("value_split"); - writer.WriteStringValue(ValueSplitValue); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 8b3ef8d9dd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/LowercaseProcessor.g.cs +++ /dev/null @@ -1,431 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class LowercaseProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class LowercaseProcessorDescriptor : SerializableDescriptorBase> - { - internal LowercaseProcessorDescriptor(Action> configure) => configure.Invoke(this); - public LowercaseProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public LowercaseProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public LowercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public LowercaseProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public LowercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public LowercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public LowercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public LowercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class LowercaseProcessorDescriptor : SerializableDescriptorBase - { - internal LowercaseProcessorDescriptor(Action configure) => configure.Invoke(this); - public LowercaseProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public LowercaseProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public LowercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public LowercaseProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public LowercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public LowercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public LowercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public LowercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs deleted file mode 100644 index 8f17310b7d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs +++ /dev/null @@ -1,429 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class Pipeline - { - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("processors")] - public IEnumerable? Processors { get; set; } - - [JsonInclude] - [JsonPropertyName("version")] - public long? Version { get; set; } - } - - public sealed partial class PipelineDescriptor : SerializableDescriptorBase> - { - internal PipelineDescriptor(Action> configure) => configure.Invoke(this); - public PipelineDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ProcessorsValue { get; set; } - - private ProcessorContainerDescriptor ProcessorsDescriptor { get; set; } - - private Action> ProcessorsDescriptorAction { get; set; } - - private Action>[] ProcessorsDescriptorActions { get; set; } - - private string? DescriptionValue { get; set; } - - private long? VersionValue { get; set; } - - public PipelineDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public PipelineDescriptor Processors(IEnumerable? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PipelineDescriptor Processors(ProcessorContainerDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor Processors(Action> configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor Processors(params Action>[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - public PipelineDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public PipelineDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class PipelineDescriptor : SerializableDescriptorBase - { - internal PipelineDescriptor(Action configure) => configure.Invoke(this); - public PipelineDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private IEnumerable? ProcessorsValue { get; set; } - - private ProcessorContainerDescriptor ProcessorsDescriptor { get; set; } - - private Action ProcessorsDescriptorAction { get; set; } - - private Action[] ProcessorsDescriptorActions { get; set; } - - private string? DescriptionValue { get; set; } - - private long? VersionValue { get; set; } - - public PipelineDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public PipelineDescriptor Processors(IEnumerable? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PipelineDescriptor Processors(ProcessorContainerDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor Processors(Action configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor Processors(params Action[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - public PipelineDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public PipelineDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs deleted file mode 100644 index 7c05ca1df44..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessor.g.cs +++ /dev/null @@ -1,331 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class PipelineProcessor - { - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name Name { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class PipelineProcessorDescriptor : SerializableDescriptorBase> - { - internal PipelineProcessorDescriptor(Action> configure) => configure.Invoke(this); - public PipelineProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } - - private string? TagValue { get; set; } - - public PipelineProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public PipelineProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public PipelineProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public PipelineProcessorDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - NameValue = name; - return Self; - } - - public PipelineProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class PipelineProcessorDescriptor : SerializableDescriptorBase - { - internal PipelineProcessorDescriptor(Action configure) => configure.Invoke(this); - public PipelineProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } - - private string? TagValue { get; set; } - - public PipelineProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public PipelineProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public PipelineProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public PipelineProcessorDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - NameValue = name; - return Self; - } - - public PipelineProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs deleted file mode 100644 index a1354dc8866..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class PipelineSimulation - { - [JsonInclude] - [JsonPropertyName("doc")] - public Elastic.Clients.Elasticsearch.Ingest.DocumentSimulation? Doc { get; init; } - - [JsonInclude] - [JsonPropertyName("processor_results")] - public IReadOnlyCollection? ProcessorResults { get; init; } - - [JsonInclude] - [JsonPropertyName("processor_type")] - public string? ProcessorType { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Watcher.ActionStatusOptions? Status { get; init; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ProcessorContainer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ProcessorContainer.g.cs deleted file mode 100644 index 059a3e2d1c2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/ProcessorContainer.g.cs +++ /dev/null @@ -1,725 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - [JsonConverter(typeof(ProcessorContainerConverter))] - public sealed partial class ProcessorContainer - { - internal ProcessorContainer(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static ProcessorContainer Append(Elastic.Clients.Elasticsearch.Ingest.AppendProcessor appendProcessor) => new ProcessorContainer("append", appendProcessor); - public static ProcessorContainer Attachment(Elastic.Clients.Elasticsearch.Ingest.AttachmentProcessor attachmentProcessor) => new ProcessorContainer("attachment", attachmentProcessor); - public static ProcessorContainer Bytes(Elastic.Clients.Elasticsearch.Ingest.BytesProcessor bytesProcessor) => new ProcessorContainer("bytes", bytesProcessor); - public static ProcessorContainer Circle(Elastic.Clients.Elasticsearch.Ingest.CircleProcessor circleProcessor) => new ProcessorContainer("circle", circleProcessor); - public static ProcessorContainer Convert(Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor convertProcessor) => new ProcessorContainer("convert", convertProcessor); - public static ProcessorContainer Csv(Elastic.Clients.Elasticsearch.Ingest.CsvProcessor csvProcessor) => new ProcessorContainer("csv", csvProcessor); - public static ProcessorContainer Date(Elastic.Clients.Elasticsearch.Ingest.DateProcessor dateProcessor) => new ProcessorContainer("date", dateProcessor); - public static ProcessorContainer DateIndexName(Elastic.Clients.Elasticsearch.Ingest.DateIndexNameProcessor dateIndexNameProcessor) => new ProcessorContainer("date_index_name", dateIndexNameProcessor); - public static ProcessorContainer Dissect(Elastic.Clients.Elasticsearch.Ingest.DissectProcessor dissectProcessor) => new ProcessorContainer("dissect", dissectProcessor); - public static ProcessorContainer DotExpander(Elastic.Clients.Elasticsearch.Ingest.DotExpanderProcessor dotExpanderProcessor) => new ProcessorContainer("dot_expander", dotExpanderProcessor); - public static ProcessorContainer Drop(Elastic.Clients.Elasticsearch.Ingest.DropProcessor dropProcessor) => new ProcessorContainer("drop", dropProcessor); - public static ProcessorContainer Enrich(Elastic.Clients.Elasticsearch.Ingest.EnrichProcessor enrichProcessor) => new ProcessorContainer("enrich", enrichProcessor); - public static ProcessorContainer Fail(Elastic.Clients.Elasticsearch.Ingest.FailProcessor failProcessor) => new ProcessorContainer("fail", failProcessor); - public static ProcessorContainer Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => new ProcessorContainer("foreach", foreachProcessor); - public static ProcessorContainer Geoip(Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor geoIpProcessor) => new ProcessorContainer("geoip", geoIpProcessor); - public static ProcessorContainer Grok(Elastic.Clients.Elasticsearch.Ingest.GrokProcessor grokProcessor) => new ProcessorContainer("grok", grokProcessor); - public static ProcessorContainer Gsub(Elastic.Clients.Elasticsearch.Ingest.GsubProcessor gsubProcessor) => new ProcessorContainer("gsub", gsubProcessor); - public static ProcessorContainer Inference(Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor inferenceProcessor) => new ProcessorContainer("inference", inferenceProcessor); - public static ProcessorContainer Join(Elastic.Clients.Elasticsearch.Ingest.JoinProcessor joinProcessor) => new ProcessorContainer("join", joinProcessor); - public static ProcessorContainer Json(Elastic.Clients.Elasticsearch.Ingest.JsonProcessor jsonProcessor) => new ProcessorContainer("json", jsonProcessor); - public static ProcessorContainer Kv(Elastic.Clients.Elasticsearch.Ingest.KeyValueProcessor keyValueProcessor) => new ProcessorContainer("kv", keyValueProcessor); - public static ProcessorContainer Lowercase(Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor lowercaseProcessor) => new ProcessorContainer("lowercase", lowercaseProcessor); - public static ProcessorContainer Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => new ProcessorContainer("pipeline", pipelineProcessor); - public static ProcessorContainer Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => new ProcessorContainer("remove", removeProcessor); - public static ProcessorContainer Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => new ProcessorContainer("rename", renameProcessor); - public static ProcessorContainer Set(Elastic.Clients.Elasticsearch.Ingest.SetProcessor setProcessor) => new ProcessorContainer("set", setProcessor); - public static ProcessorContainer SetSecurityUser(Elastic.Clients.Elasticsearch.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => new ProcessorContainer("set_security_user", setSecurityUserProcessor); - public static ProcessorContainer Sort(Elastic.Clients.Elasticsearch.Ingest.SortProcessor sortProcessor) => new ProcessorContainer("sort", sortProcessor); - public static ProcessorContainer Split(Elastic.Clients.Elasticsearch.Ingest.SplitProcessor splitProcessor) => new ProcessorContainer("split", splitProcessor); - public static ProcessorContainer Trim(Elastic.Clients.Elasticsearch.Ingest.TrimProcessor trimProcessor) => new ProcessorContainer("trim", trimProcessor); - public static ProcessorContainer Uppercase(Elastic.Clients.Elasticsearch.Ingest.UppercaseProcessor uppercaseProcessor) => new ProcessorContainer("uppercase", uppercaseProcessor); - public static ProcessorContainer Urldecode(Elastic.Clients.Elasticsearch.Ingest.UrlDecodeProcessor urlDecodeProcessor) => new ProcessorContainer("urldecode", urlDecodeProcessor); - public static ProcessorContainer UserAgent(Elastic.Clients.Elasticsearch.Ingest.UserAgentProcessor userAgentProcessor) => new ProcessorContainer("user_agent", userAgentProcessor); - } - - internal sealed class ProcessorContainerConverter : JsonConverter - { - public override ProcessorContainer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "append") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "attachment") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "bytes") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "circle") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "convert") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "csv") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "date") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "date_index_name") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "dissect") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "dot_expander") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "drop") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "enrich") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "fail") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "foreach") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "geoip") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "grok") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "gsub") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "inference") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "join") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "json") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "kv") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "lowercase") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "pipeline") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "remove") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "rename") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "set") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "set_security_user") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "sort") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "split") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "trim") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "uppercase") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "urldecode") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - if (propertyName == "user_agent") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new ProcessorContainer(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, ProcessorContainer value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "append": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.AppendProcessor)value.Variant, options); - break; - case "attachment": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.AttachmentProcessor)value.Variant, options); - break; - case "bytes": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.BytesProcessor)value.Variant, options); - break; - case "circle": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.CircleProcessor)value.Variant, options); - break; - case "convert": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor)value.Variant, options); - break; - case "csv": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.CsvProcessor)value.Variant, options); - break; - case "date": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.DateProcessor)value.Variant, options); - break; - case "date_index_name": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.DateIndexNameProcessor)value.Variant, options); - break; - case "dissect": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.DissectProcessor)value.Variant, options); - break; - case "dot_expander": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.DotExpanderProcessor)value.Variant, options); - break; - case "drop": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.DropProcessor)value.Variant, options); - break; - case "enrich": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.EnrichProcessor)value.Variant, options); - break; - case "fail": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.FailProcessor)value.Variant, options); - break; - case "foreach": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor)value.Variant, options); - break; - case "geoip": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor)value.Variant, options); - break; - case "grok": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.GrokProcessor)value.Variant, options); - break; - case "gsub": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.GsubProcessor)value.Variant, options); - break; - case "inference": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor)value.Variant, options); - break; - case "join": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.JoinProcessor)value.Variant, options); - break; - case "json": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.JsonProcessor)value.Variant, options); - break; - case "kv": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.KeyValueProcessor)value.Variant, options); - break; - case "lowercase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor)value.Variant, options); - break; - case "pipeline": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor)value.Variant, options); - break; - case "remove": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor)value.Variant, options); - break; - case "rename": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RenameProcessor)value.Variant, options); - break; - case "set": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.SetProcessor)value.Variant, options); - break; - case "set_security_user": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.SetSecurityUserProcessor)value.Variant, options); - break; - case "sort": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.SortProcessor)value.Variant, options); - break; - case "split": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.SplitProcessor)value.Variant, options); - break; - case "trim": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.TrimProcessor)value.Variant, options); - break; - case "uppercase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.UppercaseProcessor)value.Variant, options); - break; - case "urldecode": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.UrlDecodeProcessor)value.Variant, options); - break; - case "user_agent": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.UserAgentProcessor)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ProcessorContainerDescriptor : SerializableDescriptorBase> - { - internal ProcessorContainerDescriptor(Action> configure) => configure.Invoke(this); - public ProcessorContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the ProcessorContainerDescriptor. Only a single ProcessorContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the ProcessorContainerDescriptor. Only a single ProcessorContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Append(AppendProcessor variant) => Set(variant, "append"); - public void Append(Action> configure) => Set(configure, "append"); - public void Attachment(AttachmentProcessor variant) => Set(variant, "attachment"); - public void Attachment(Action> configure) => Set(configure, "attachment"); - public void Bytes(BytesProcessor variant) => Set(variant, "bytes"); - public void Bytes(Action> configure) => Set(configure, "bytes"); - public void Circle(CircleProcessor variant) => Set(variant, "circle"); - public void Circle(Action> configure) => Set(configure, "circle"); - public void Convert(ConvertProcessor variant) => Set(variant, "convert"); - public void Convert(Action> configure) => Set(configure, "convert"); - public void Csv(CsvProcessor variant) => Set(variant, "csv"); - public void Csv(Action> configure) => Set(configure, "csv"); - public void Date(DateProcessor variant) => Set(variant, "date"); - public void Date(Action> configure) => Set(configure, "date"); - public void DateIndexName(DateIndexNameProcessor variant) => Set(variant, "date_index_name"); - public void DateIndexName(Action> configure) => Set(configure, "date_index_name"); - public void Dissect(DissectProcessor variant) => Set(variant, "dissect"); - public void Dissect(Action> configure) => Set(configure, "dissect"); - public void DotExpander(DotExpanderProcessor variant) => Set(variant, "dot_expander"); - public void DotExpander(Action> configure) => Set(configure, "dot_expander"); - public void Drop(DropProcessor variant) => Set(variant, "drop"); - public void Drop(Action> configure) => Set(configure, "drop"); - public void Enrich(EnrichProcessor variant) => Set(variant, "enrich"); - public void Enrich(Action> configure) => Set(configure, "enrich"); - public void Fail(FailProcessor variant) => Set(variant, "fail"); - public void Fail(Action> configure) => Set(configure, "fail"); - public void Foreach(ForeachProcessor variant) => Set(variant, "foreach"); - public void Foreach(Action> configure) => Set(configure, "foreach"); - public void Geoip(GeoIpProcessor variant) => Set(variant, "geoip"); - public void Geoip(Action> configure) => Set(configure, "geoip"); - public void Grok(GrokProcessor variant) => Set(variant, "grok"); - public void Grok(Action> configure) => Set(configure, "grok"); - public void Gsub(GsubProcessor variant) => Set(variant, "gsub"); - public void Gsub(Action> configure) => Set(configure, "gsub"); - public void Inference(InferenceProcessor variant) => Set(variant, "inference"); - public void Inference(Action> configure) => Set(configure, "inference"); - public void Join(JoinProcessor variant) => Set(variant, "join"); - public void Join(Action> configure) => Set(configure, "join"); - public void Json(JsonProcessor variant) => Set(variant, "json"); - public void Json(Action> configure) => Set(configure, "json"); - public void Kv(KeyValueProcessor variant) => Set(variant, "kv"); - public void Kv(Action> configure) => Set(configure, "kv"); - public void Lowercase(LowercaseProcessor variant) => Set(variant, "lowercase"); - public void Lowercase(Action> configure) => Set(configure, "lowercase"); - public void Pipeline(PipelineProcessor variant) => Set(variant, "pipeline"); - public void Pipeline(Action> configure) => Set(configure, "pipeline"); - public void Remove(RemoveProcessor variant) => Set(variant, "remove"); - public void Remove(Action> configure) => Set(configure, "remove"); - public void Rename(RenameProcessor variant) => Set(variant, "rename"); - public void Rename(Action> configure) => Set(configure, "rename"); - public void Set(SetProcessor variant) => Set(variant, "set"); - public void Set(Action> configure) => Set(configure, "set"); - public void SetSecurityUser(SetSecurityUserProcessor variant) => Set(variant, "set_security_user"); - public void SetSecurityUser(Action> configure) => Set(configure, "set_security_user"); - public void Sort(SortProcessor variant) => Set(variant, "sort"); - public void Sort(Action> configure) => Set(configure, "sort"); - public void Split(SplitProcessor variant) => Set(variant, "split"); - public void Split(Action> configure) => Set(configure, "split"); - public void Trim(TrimProcessor variant) => Set(variant, "trim"); - public void Trim(Action> configure) => Set(configure, "trim"); - public void Uppercase(UppercaseProcessor variant) => Set(variant, "uppercase"); - public void Uppercase(Action> configure) => Set(configure, "uppercase"); - public void Urldecode(UrlDecodeProcessor variant) => Set(variant, "urldecode"); - public void Urldecode(Action> configure) => Set(configure, "urldecode"); - public void UserAgent(UserAgentProcessor variant) => Set(variant, "user_agent"); - public void UserAgent(Action> configure) => Set(configure, "user_agent"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ProcessorContainerDescriptor : SerializableDescriptorBase - { - internal ProcessorContainerDescriptor(Action configure) => configure.Invoke(this); - public ProcessorContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the ProcessorContainerDescriptor. Only a single ProcessorContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the ProcessorContainerDescriptor. Only a single ProcessorContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Append(AppendProcessor variant) => Set(variant, "append"); - public void Append(Action configure) => Set(configure, "append"); - public void Append(Action> configure) => Set(configure, "append"); - public void Attachment(AttachmentProcessor variant) => Set(variant, "attachment"); - public void Attachment(Action configure) => Set(configure, "attachment"); - public void Attachment(Action> configure) => Set(configure, "attachment"); - public void Bytes(BytesProcessor variant) => Set(variant, "bytes"); - public void Bytes(Action configure) => Set(configure, "bytes"); - public void Bytes(Action> configure) => Set(configure, "bytes"); - public void Circle(CircleProcessor variant) => Set(variant, "circle"); - public void Circle(Action configure) => Set(configure, "circle"); - public void Circle(Action> configure) => Set(configure, "circle"); - public void Convert(ConvertProcessor variant) => Set(variant, "convert"); - public void Convert(Action configure) => Set(configure, "convert"); - public void Convert(Action> configure) => Set(configure, "convert"); - public void Csv(CsvProcessor variant) => Set(variant, "csv"); - public void Csv(Action configure) => Set(configure, "csv"); - public void Csv(Action> configure) => Set(configure, "csv"); - public void Date(DateProcessor variant) => Set(variant, "date"); - public void Date(Action configure) => Set(configure, "date"); - public void Date(Action> configure) => Set(configure, "date"); - public void DateIndexName(DateIndexNameProcessor variant) => Set(variant, "date_index_name"); - public void DateIndexName(Action configure) => Set(configure, "date_index_name"); - public void DateIndexName(Action> configure) => Set(configure, "date_index_name"); - public void Dissect(DissectProcessor variant) => Set(variant, "dissect"); - public void Dissect(Action configure) => Set(configure, "dissect"); - public void Dissect(Action> configure) => Set(configure, "dissect"); - public void DotExpander(DotExpanderProcessor variant) => Set(variant, "dot_expander"); - public void DotExpander(Action configure) => Set(configure, "dot_expander"); - public void DotExpander(Action> configure) => Set(configure, "dot_expander"); - public void Drop(DropProcessor variant) => Set(variant, "drop"); - public void Drop(Action configure) => Set(configure, "drop"); - public void Drop(Action> configure) => Set(configure, "drop"); - public void Enrich(EnrichProcessor variant) => Set(variant, "enrich"); - public void Enrich(Action configure) => Set(configure, "enrich"); - public void Enrich(Action> configure) => Set(configure, "enrich"); - public void Fail(FailProcessor variant) => Set(variant, "fail"); - public void Fail(Action configure) => Set(configure, "fail"); - public void Fail(Action> configure) => Set(configure, "fail"); - public void Foreach(ForeachProcessor variant) => Set(variant, "foreach"); - public void Foreach(Action configure) => Set(configure, "foreach"); - public void Foreach(Action> configure) => Set(configure, "foreach"); - public void Geoip(GeoIpProcessor variant) => Set(variant, "geoip"); - public void Geoip(Action configure) => Set(configure, "geoip"); - public void Geoip(Action> configure) => Set(configure, "geoip"); - public void Grok(GrokProcessor variant) => Set(variant, "grok"); - public void Grok(Action configure) => Set(configure, "grok"); - public void Grok(Action> configure) => Set(configure, "grok"); - public void Gsub(GsubProcessor variant) => Set(variant, "gsub"); - public void Gsub(Action configure) => Set(configure, "gsub"); - public void Gsub(Action> configure) => Set(configure, "gsub"); - public void Inference(InferenceProcessor variant) => Set(variant, "inference"); - public void Inference(Action configure) => Set(configure, "inference"); - public void Inference(Action> configure) => Set(configure, "inference"); - public void Join(JoinProcessor variant) => Set(variant, "join"); - public void Join(Action configure) => Set(configure, "join"); - public void Join(Action> configure) => Set(configure, "join"); - public void Json(JsonProcessor variant) => Set(variant, "json"); - public void Json(Action configure) => Set(configure, "json"); - public void Json(Action> configure) => Set(configure, "json"); - public void Kv(KeyValueProcessor variant) => Set(variant, "kv"); - public void Kv(Action configure) => Set(configure, "kv"); - public void Kv(Action> configure) => Set(configure, "kv"); - public void Lowercase(LowercaseProcessor variant) => Set(variant, "lowercase"); - public void Lowercase(Action configure) => Set(configure, "lowercase"); - public void Lowercase(Action> configure) => Set(configure, "lowercase"); - public void Pipeline(PipelineProcessor variant) => Set(variant, "pipeline"); - public void Pipeline(Action configure) => Set(configure, "pipeline"); - public void Pipeline(Action> configure) => Set(configure, "pipeline"); - public void Remove(RemoveProcessor variant) => Set(variant, "remove"); - public void Remove(Action configure) => Set(configure, "remove"); - public void Remove(Action> configure) => Set(configure, "remove"); - public void Rename(RenameProcessor variant) => Set(variant, "rename"); - public void Rename(Action configure) => Set(configure, "rename"); - public void Rename(Action> configure) => Set(configure, "rename"); - public void Set(SetProcessor variant) => Set(variant, "set"); - public void Set(Action configure) => Set(configure, "set"); - public void Set(Action> configure) => Set(configure, "set"); - public void SetSecurityUser(SetSecurityUserProcessor variant) => Set(variant, "set_security_user"); - public void SetSecurityUser(Action configure) => Set(configure, "set_security_user"); - public void SetSecurityUser(Action> configure) => Set(configure, "set_security_user"); - public void Sort(SortProcessor variant) => Set(variant, "sort"); - public void Sort(Action configure) => Set(configure, "sort"); - public void Sort(Action> configure) => Set(configure, "sort"); - public void Split(SplitProcessor variant) => Set(variant, "split"); - public void Split(Action configure) => Set(configure, "split"); - public void Split(Action> configure) => Set(configure, "split"); - public void Trim(TrimProcessor variant) => Set(variant, "trim"); - public void Trim(Action configure) => Set(configure, "trim"); - public void Trim(Action> configure) => Set(configure, "trim"); - public void Uppercase(UppercaseProcessor variant) => Set(variant, "uppercase"); - public void Uppercase(Action configure) => Set(configure, "uppercase"); - public void Uppercase(Action> configure) => Set(configure, "uppercase"); - public void Urldecode(UrlDecodeProcessor variant) => Set(variant, "urldecode"); - public void Urldecode(Action configure) => Set(configure, "urldecode"); - public void Urldecode(Action> configure) => Set(configure, "urldecode"); - public void UserAgent(UserAgentProcessor variant) => Set(variant, "user_agent"); - public void UserAgent(Action configure) => Set(configure, "user_agent"); - public void UserAgent(Action> configure) => Set(configure, "user_agent"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs deleted file mode 100644 index 833e1d54a29..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RemoveProcessor.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class RemoveProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Fields Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class RemoveProcessorDescriptor : SerializableDescriptorBase> - { - internal RemoveProcessorDescriptor(Action> configure) => configure.Invoke(this); - public RemoveProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Fields FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - public RemoveProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RemoveProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Fields field) - { - FieldValue = field; - return Self; - } - - public RemoveProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RemoveProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public RemoveProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public RemoveProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public RemoveProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class RemoveProcessorDescriptor : SerializableDescriptorBase - { - internal RemoveProcessorDescriptor(Action configure) => configure.Invoke(this); - public RemoveProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Fields FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - public RemoveProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RemoveProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Fields field) - { - FieldValue = field; - return Self; - } - - public RemoveProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RemoveProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RemoveProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public RemoveProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public RemoveProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public RemoveProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs deleted file mode 100644 index 146b002b451..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RenameProcessor.g.cs +++ /dev/null @@ -1,423 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class RenameProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class RenameProcessorDescriptor : SerializableDescriptorBase> - { - internal RenameProcessorDescriptor(Action> configure) => configure.Invoke(this); - public RenameProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public RenameProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RenameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RenameProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public RenameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public RenameProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public RenameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public RenameProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class RenameProcessorDescriptor : SerializableDescriptorBase - { - internal RenameProcessorDescriptor(Action configure) => configure.Invoke(this); - public RenameProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public RenameProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RenameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RenameProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public RenameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public RenameProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public RenameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public RenameProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs deleted file mode 100644 index d5a6b3b1a2c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetProcessor.g.cs +++ /dev/null @@ -1,401 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class SetProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("override")] - public bool? Override { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("value")] - public object Value { get; set; } - } - - public sealed partial class SetProcessorDescriptor : SerializableDescriptorBase> - { - internal SetProcessorDescriptor(Action> configure) => configure.Invoke(this); - public SetProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? OverrideValue { get; set; } - - private string? TagValue { get; set; } - - private object ValueValue { get; set; } - - public SetProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SetProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SetProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SetProcessorDescriptor Override(bool? overrideValue = true) - { - OverrideValue = overrideValue; - return Self; - } - - public SetProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SetProcessorDescriptor Value(object value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SetProcessorDescriptor : SerializableDescriptorBase - { - internal SetProcessorDescriptor(Action configure) => configure.Invoke(this); - public SetProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? OverrideValue { get; set; } - - private string? TagValue { get; set; } - - private object ValueValue { get; set; } - - public SetProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SetProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SetProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SetProcessorDescriptor Override(bool? overrideValue = true) - { - OverrideValue = overrideValue; - return Self; - } - - public SetProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SetProcessorDescriptor Value(object value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs deleted file mode 100644 index 74394e40b46..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class SetSecurityUserProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("properties")] - public IEnumerable? Properties { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - } - - public sealed partial class SetSecurityUserProcessorDescriptor : SerializableDescriptorBase> - { - internal SetSecurityUserProcessorDescriptor(Action> configure) => configure.Invoke(this); - public SetSecurityUserProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private IEnumerable? PropertiesValue { get; set; } - - private string? TagValue { get; set; } - - public SetSecurityUserProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetSecurityUserProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SetSecurityUserProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor Properties(IEnumerable? properties) - { - PropertiesValue = properties; - return Self; - } - - public SetSecurityUserProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SetSecurityUserProcessorDescriptor : SerializableDescriptorBase - { - internal SetSecurityUserProcessorDescriptor(Action configure) => configure.Invoke(this); - public SetSecurityUserProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private IEnumerable? PropertiesValue { get; set; } - - private string? TagValue { get; set; } - - public SetSecurityUserProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SetSecurityUserProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SetSecurityUserProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor Properties(IEnumerable? properties) - { - PropertiesValue = properties; - return Self; - } - - public SetSecurityUserProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs deleted file mode 100644 index b949f89d01b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SortProcessor.g.cs +++ /dev/null @@ -1,415 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class SortProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.SortOrder Order { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class SortProcessorDescriptor : SerializableDescriptorBase> - { - internal SortProcessorDescriptor(Action> configure) => configure.Invoke(this); - public SortProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.SortOrder OrderValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public SortProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SortProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SortProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SortProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SortProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SortProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SortProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SortProcessorDescriptor Order(Elastic.Clients.Elasticsearch.SortOrder order) - { - OrderValue = order; - return Self; - } - - public SortProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SortProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class SortProcessorDescriptor : SerializableDescriptorBase - { - internal SortProcessorDescriptor(Action configure) => configure.Invoke(this); - public SortProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private Elastic.Clients.Elasticsearch.SortOrder OrderValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public SortProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SortProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SortProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SortProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SortProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SortProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SortProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SortProcessorDescriptor Order(Elastic.Clients.Elasticsearch.SortOrder order) - { - OrderValue = order; - return Self; - } - - public SortProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SortProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs deleted file mode 100644 index 68331b5557b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SplitProcessor.g.cs +++ /dev/null @@ -1,487 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class SplitProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("preserve_trailing")] - public bool? PreserveTrailing { get; set; } - - [JsonInclude] - [JsonPropertyName("separator")] - public string Separator { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class SplitProcessorDescriptor : SerializableDescriptorBase> - { - internal SplitProcessorDescriptor(Action> configure) => configure.Invoke(this); - public SplitProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private bool? PreserveTrailingValue { get; set; } - - private string SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public SplitProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SplitProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SplitProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SplitProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SplitProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public SplitProcessorDescriptor PreserveTrailing(bool? preserveTrailing = true) - { - PreserveTrailingValue = preserveTrailing; - return Self; - } - - public SplitProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - public SplitProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SplitProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (PreserveTrailingValue.HasValue) - { - writer.WritePropertyName("preserve_trailing"); - writer.WriteBooleanValue(PreserveTrailingValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SplitProcessorDescriptor : SerializableDescriptorBase - { - internal SplitProcessorDescriptor(Action configure) => configure.Invoke(this); - public SplitProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private bool? PreserveTrailingValue { get; set; } - - private string SeparatorValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public SplitProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public SplitProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SplitProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public SplitProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public SplitProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public SplitProcessorDescriptor PreserveTrailing(bool? preserveTrailing = true) - { - PreserveTrailingValue = preserveTrailing; - return Self; - } - - public SplitProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - public SplitProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public SplitProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (PreserveTrailingValue.HasValue) - { - writer.WritePropertyName("preserve_trailing"); - writer.WriteBooleanValue(PreserveTrailingValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs deleted file mode 100644 index b113101df8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TrimProcessor.g.cs +++ /dev/null @@ -1,431 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class TrimProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class TrimProcessorDescriptor : SerializableDescriptorBase> - { - internal TrimProcessorDescriptor(Action> configure) => configure.Invoke(this); - public TrimProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public TrimProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public TrimProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TrimProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public TrimProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public TrimProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public TrimProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public TrimProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class TrimProcessorDescriptor : SerializableDescriptorBase - { - internal TrimProcessorDescriptor(Action configure) => configure.Invoke(this); - public TrimProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public TrimProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public TrimProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TrimProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public TrimProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public TrimProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public TrimProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public TrimProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs deleted file mode 100644 index efe53d7473c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UppercaseProcessor.g.cs +++ /dev/null @@ -1,431 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class UppercaseProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class UppercaseProcessorDescriptor : SerializableDescriptorBase> - { - internal UppercaseProcessorDescriptor(Action> configure) => configure.Invoke(this); - public UppercaseProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public UppercaseProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UppercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UppercaseProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UppercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UppercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UppercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UppercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class UppercaseProcessorDescriptor : SerializableDescriptorBase - { - internal UppercaseProcessorDescriptor(Action configure) => configure.Invoke(this); - public UppercaseProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public UppercaseProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UppercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UppercaseProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UppercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UppercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UppercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UppercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs deleted file mode 100644 index 90791131606..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs +++ /dev/null @@ -1,431 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class UrlDecodeProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } - } - - public sealed partial class UrlDecodeProcessorDescriptor : SerializableDescriptorBase> - { - internal UrlDecodeProcessorDescriptor(Action> configure) => configure.Invoke(this); - public UrlDecodeProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public UrlDecodeProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UrlDecodeProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UrlDecodeProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UrlDecodeProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UrlDecodeProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class UrlDecodeProcessorDescriptor : SerializableDescriptorBase - { - internal UrlDecodeProcessorDescriptor(Action configure) => configure.Invoke(this); - public UrlDecodeProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool? IgnoreMissingValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } - - public UrlDecodeProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UrlDecodeProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UrlDecodeProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UrlDecodeProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UrlDecodeProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs deleted file mode 100644 index c440972a749..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ingest -{ - public sealed partial class UserAgentProcessor - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("if")] - public string? If { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_missing")] - public bool IgnoreMissing { get; set; } - - [JsonInclude] - [JsonPropertyName("on_failure")] - public IEnumerable? OnFailure { get; set; } - - [JsonInclude] - [JsonPropertyName("options")] - public IEnumerable Options { get; set; } - - [JsonInclude] - [JsonPropertyName("regex_file")] - public string RegexFile { get; set; } - - [JsonInclude] - [JsonPropertyName("tag")] - public string? Tag { get; set; } - - [JsonInclude] - [JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Field TargetField { get; set; } - } - - public sealed partial class UserAgentProcessorDescriptor : SerializableDescriptorBase> - { - internal UserAgentProcessorDescriptor(Action> configure) => configure.Invoke(this); - public UserAgentProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action> OnFailureDescriptorAction { get; set; } - - private Action>[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private IEnumerable OptionsValue { get; set; } - - private string RegexFileValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public UserAgentProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UserAgentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UserAgentProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UserAgentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UserAgentProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UserAgentProcessorDescriptor Options(IEnumerable options) - { - OptionsValue = options; - return Self; - } - - public UserAgentProcessorDescriptor RegexFile(string regexFile) - { - RegexFileValue = regexFile; - return Self; - } - - public UserAgentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UserAgentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - writer.WritePropertyName("regex_file"); - writer.WriteStringValue(RegexFileValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class UserAgentProcessorDescriptor : SerializableDescriptorBase - { - internal UserAgentProcessorDescriptor(Action configure) => configure.Invoke(this); - public UserAgentProcessorDescriptor() : base() - { - } - - private IEnumerable? OnFailureValue { get; set; } - - private ProcessorContainerDescriptor OnFailureDescriptor { get; set; } - - private Action OnFailureDescriptorAction { get; set; } - - private Action[] OnFailureDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string? IfValue { get; set; } - - private bool? IgnoreFailureValue { get; set; } - - private bool IgnoreMissingValue { get; set; } - - private IEnumerable OptionsValue { get; set; } - - private string RegexFileValue { get; set; } - - private string? TagValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field TargetFieldValue { get; set; } - - public UserAgentProcessorDescriptor OnFailure(IEnumerable? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(ProcessorContainerDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public UserAgentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UserAgentProcessorDescriptor If(string? ifValue) - { - IfValue = ifValue; - return Self; - } - - public UserAgentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - public UserAgentProcessorDescriptor IgnoreMissing(bool ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - public UserAgentProcessorDescriptor Options(IEnumerable options) - { - OptionsValue = options; - return Self; - } - - public UserAgentProcessorDescriptor RegexFile(string regexFile) - { - RegexFileValue = regexFile; - return Self; - } - - public UserAgentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - public UserAgentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new ProcessorContainerDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue); - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - writer.WritePropertyName("regex_file"); - writer.WriteStringValue(RegexFileValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/Acknowledgement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/Acknowledgement.g.cs deleted file mode 100644 index d388a75f348..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/Acknowledgement.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class Acknowledgement - { - [JsonInclude] - [JsonPropertyName("license")] - public IReadOnlyCollection License { get; init; } - - [JsonInclude] - [JsonPropertyName("message")] - public string Message { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/License.g.cs deleted file mode 100644 index eb9793fa508..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/License.g.cs +++ /dev/null @@ -1,195 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class License - { - [JsonInclude] - [JsonPropertyName("expiry_date_in_millis")] - public long ExpiryDateInMillis { get; set; } - - [JsonInclude] - [JsonPropertyName("issue_date_in_millis")] - public long IssueDateInMillis { get; set; } - - [JsonInclude] - [JsonPropertyName("issued_to")] - public string IssuedTo { get; set; } - - [JsonInclude] - [JsonPropertyName("issuer")] - public string Issuer { get; set; } - - [JsonInclude] - [JsonPropertyName("max_nodes")] - public long? MaxNodes { get; set; } - - [JsonInclude] - [JsonPropertyName("max_resource_units")] - public long? MaxResourceUnits { get; set; } - - [JsonInclude] - [JsonPropertyName("signature")] - public string Signature { get; set; } - - [JsonInclude] - [JsonPropertyName("start_date_in_millis")] - public long? StartDateInMillis { get; set; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.License.LicenseType Type { get; set; } - - [JsonInclude] - [JsonPropertyName("uid")] - public string Uid { get; set; } - } - - public sealed partial class LicenseDescriptor : SerializableDescriptorBase - { - internal LicenseDescriptor(Action configure) => configure.Invoke(this); - public LicenseDescriptor() : base() - { - } - - private long ExpiryDateInMillisValue { get; set; } - - private long IssueDateInMillisValue { get; set; } - - private string IssuedToValue { get; set; } - - private string IssuerValue { get; set; } - - private long? MaxNodesValue { get; set; } - - private long? MaxResourceUnitsValue { get; set; } - - private string SignatureValue { get; set; } - - private long? StartDateInMillisValue { get; set; } - - private Elastic.Clients.Elasticsearch.License.LicenseType TypeValue { get; set; } - - private string UidValue { get; set; } - - public LicenseDescriptor ExpiryDateInMillis(long expiryDateInMillis) - { - ExpiryDateInMillisValue = expiryDateInMillis; - return Self; - } - - public LicenseDescriptor IssueDateInMillis(long issueDateInMillis) - { - IssueDateInMillisValue = issueDateInMillis; - return Self; - } - - public LicenseDescriptor IssuedTo(string issuedTo) - { - IssuedToValue = issuedTo; - return Self; - } - - public LicenseDescriptor Issuer(string issuer) - { - IssuerValue = issuer; - return Self; - } - - public LicenseDescriptor MaxNodes(long? maxNodes) - { - MaxNodesValue = maxNodes; - return Self; - } - - public LicenseDescriptor MaxResourceUnits(long? maxResourceUnits) - { - MaxResourceUnitsValue = maxResourceUnits; - return Self; - } - - public LicenseDescriptor Signature(string signature) - { - SignatureValue = signature; - return Self; - } - - public LicenseDescriptor StartDateInMillis(long? startDateInMillis) - { - StartDateInMillisValue = startDateInMillis; - return Self; - } - - public LicenseDescriptor Type(Elastic.Clients.Elasticsearch.License.LicenseType type) - { - TypeValue = type; - return Self; - } - - public LicenseDescriptor Uid(string uid) - { - UidValue = uid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("expiry_date_in_millis"); - JsonSerializer.Serialize(writer, ExpiryDateInMillisValue, options); - writer.WritePropertyName("issue_date_in_millis"); - JsonSerializer.Serialize(writer, IssueDateInMillisValue, options); - writer.WritePropertyName("issued_to"); - writer.WriteStringValue(IssuedToValue); - writer.WritePropertyName("issuer"); - writer.WriteStringValue(IssuerValue); - if (MaxNodesValue.HasValue) - { - writer.WritePropertyName("max_nodes"); - writer.WriteNumberValue(MaxNodesValue.Value); - } - - if (MaxResourceUnitsValue.HasValue) - { - writer.WritePropertyName("max_resource_units"); - writer.WriteNumberValue(MaxResourceUnitsValue.Value); - } - - writer.WritePropertyName("signature"); - writer.WriteStringValue(SignatureValue); - if (StartDateInMillisValue is not null) - { - writer.WritePropertyName("start_date_in_millis"); - JsonSerializer.Serialize(writer, StartDateInMillisValue, options); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WritePropertyName("uid"); - writer.WriteStringValue(UidValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/LicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/LicenseInformation.g.cs deleted file mode 100644 index 0e188ccf8fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/License/LicenseInformation.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.License -{ - public sealed partial class LicenseInformation - { - [JsonInclude] - [JsonPropertyName("expiry_date")] - public DateTimeOffset? ExpiryDate { get; init; } - - [JsonInclude] - [JsonPropertyName("expiry_date_in_millis")] - public long? ExpiryDateInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("issue_date")] - public DateTimeOffset IssueDate { get; init; } - - [JsonInclude] - [JsonPropertyName("issue_date_in_millis")] - public long IssueDateInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("issued_to")] - public string IssuedTo { get; init; } - - [JsonInclude] - [JsonPropertyName("issuer")] - public string Issuer { get; init; } - - [JsonInclude] - [JsonPropertyName("max_nodes")] - public long? MaxNodes { get; init; } - - [JsonInclude] - [JsonPropertyName("max_resource_units")] - public int? MaxResourceUnits { get; init; } - - [JsonInclude] - [JsonPropertyName("start_date_in_millis")] - public long StartDateInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.License.LicenseStatus Status { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.License.LicenseType Type { get; init; } - - [JsonInclude] - [JsonPropertyName("uid")] - public string Uid { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AggregateOutput.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AggregateOutput.g.cs deleted file mode 100644 index 86f31a162e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AggregateOutput.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AggregateOutput - { - [JsonInclude] - [JsonPropertyName("exponent")] - public Elastic.Clients.Elasticsearch.Ml.Weights? Exponent { get; set; } - - [JsonInclude] - [JsonPropertyName("logistic_regression")] - public Elastic.Clients.Elasticsearch.Ml.Weights? LogisticRegression { get; set; } - - [JsonInclude] - [JsonPropertyName("weighted_mode")] - public Elastic.Clients.Elasticsearch.Ml.Weights? WeightedMode { get; set; } - - [JsonInclude] - [JsonPropertyName("weighted_sum")] - public Elastic.Clients.Elasticsearch.Ml.Weights? WeightedSum { get; set; } - } - - public sealed partial class AggregateOutputDescriptor : SerializableDescriptorBase - { - internal AggregateOutputDescriptor(Action configure) => configure.Invoke(this); - public AggregateOutputDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.Weights? ExponentValue { get; set; } - - private WeightsDescriptor ExponentDescriptor { get; set; } - - private Action ExponentDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Weights? LogisticRegressionValue { get; set; } - - private WeightsDescriptor LogisticRegressionDescriptor { get; set; } - - private Action LogisticRegressionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Weights? WeightedModeValue { get; set; } - - private WeightsDescriptor WeightedModeDescriptor { get; set; } - - private Action WeightedModeDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.Weights? WeightedSumValue { get; set; } - - private WeightsDescriptor WeightedSumDescriptor { get; set; } - - private Action WeightedSumDescriptorAction { get; set; } - - public AggregateOutputDescriptor Exponent(Elastic.Clients.Elasticsearch.Ml.Weights? exponent) - { - ExponentDescriptor = null; - ExponentDescriptorAction = null; - ExponentValue = exponent; - return Self; - } - - public AggregateOutputDescriptor Exponent(WeightsDescriptor descriptor) - { - ExponentValue = null; - ExponentDescriptorAction = null; - ExponentDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor Exponent(Action configure) - { - ExponentValue = null; - ExponentDescriptor = null; - ExponentDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(Elastic.Clients.Elasticsearch.Ml.Weights? logisticRegression) - { - LogisticRegressionDescriptor = null; - LogisticRegressionDescriptorAction = null; - LogisticRegressionValue = logisticRegression; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(WeightsDescriptor descriptor) - { - LogisticRegressionValue = null; - LogisticRegressionDescriptorAction = null; - LogisticRegressionDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(Action configure) - { - LogisticRegressionValue = null; - LogisticRegressionDescriptor = null; - LogisticRegressionDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(Elastic.Clients.Elasticsearch.Ml.Weights? weightedMode) - { - WeightedModeDescriptor = null; - WeightedModeDescriptorAction = null; - WeightedModeValue = weightedMode; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(WeightsDescriptor descriptor) - { - WeightedModeValue = null; - WeightedModeDescriptorAction = null; - WeightedModeDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(Action configure) - { - WeightedModeValue = null; - WeightedModeDescriptor = null; - WeightedModeDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(Elastic.Clients.Elasticsearch.Ml.Weights? weightedSum) - { - WeightedSumDescriptor = null; - WeightedSumDescriptorAction = null; - WeightedSumValue = weightedSum; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(WeightsDescriptor descriptor) - { - WeightedSumValue = null; - WeightedSumDescriptorAction = null; - WeightedSumDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(Action configure) - { - WeightedSumValue = null; - WeightedSumDescriptor = null; - WeightedSumDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExponentDescriptor is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, ExponentDescriptor, options); - } - else if (ExponentDescriptorAction is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, new WeightsDescriptor(ExponentDescriptorAction), options); - } - else if (ExponentValue is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, ExponentValue, options); - } - - if (LogisticRegressionDescriptor is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, LogisticRegressionDescriptor, options); - } - else if (LogisticRegressionDescriptorAction is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, new WeightsDescriptor(LogisticRegressionDescriptorAction), options); - } - else if (LogisticRegressionValue is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, LogisticRegressionValue, options); - } - - if (WeightedModeDescriptor is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, WeightedModeDescriptor, options); - } - else if (WeightedModeDescriptorAction is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, new WeightsDescriptor(WeightedModeDescriptorAction), options); - } - else if (WeightedModeValue is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, WeightedModeValue, options); - } - - if (WeightedSumDescriptor is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, WeightedSumDescriptor, options); - } - else if (WeightedSumDescriptorAction is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, new WeightsDescriptor(WeightedSumDescriptorAction), options); - } - else if (WeightedSumValue is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, WeightedSumValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfig.g.cs deleted file mode 100644 index edb6e1f622d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfig.g.cs +++ /dev/null @@ -1,623 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnalysisConfig - { - [JsonInclude] - [JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Duration BucketSpan { get; set; } - - [JsonInclude] - [JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? CategorizationAnalyzer { get; set; } - - [JsonInclude] - [JsonPropertyName("categorization_field_name")] - public Elastic.Clients.Elasticsearch.Field? CategorizationFieldName { get; set; } - - [JsonInclude] - [JsonPropertyName("categorization_filters")] - public IEnumerable? CategorizationFilters { get; set; } - - [JsonInclude] - [JsonPropertyName("detectors")] - public IEnumerable Detectors { get; set; } - - [JsonInclude] - [JsonPropertyName("influencers")] - public IEnumerable? Influencers { get; set; } - - [JsonInclude] - [JsonPropertyName("latency")] - public Elastic.Clients.Elasticsearch.Duration? Latency { get; set; } - - [JsonInclude] - [JsonPropertyName("model_prune_window")] - public Elastic.Clients.Elasticsearch.Duration? ModelPruneWindow { get; set; } - - [JsonInclude] - [JsonPropertyName("multivariate_by_fields")] - public bool? MultivariateByFields { get; set; } - - [JsonInclude] - [JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorization { get; set; } - - [JsonInclude] - [JsonPropertyName("summary_count_field_name")] - public Elastic.Clients.Elasticsearch.Field? SummaryCountFieldName { get; set; } - } - - public sealed partial class AnalysisConfigDescriptor : SerializableDescriptorBase> - { - internal AnalysisConfigDescriptor(Action> configure) => configure.Invoke(this); - public AnalysisConfigDescriptor() : base() - { - } - - private IEnumerable DetectorsValue { get; set; } - - private DetectorDescriptor DetectorsDescriptor { get; set; } - - private Action> DetectorsDescriptorAction { get; set; } - - private Action>[] DetectorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Duration BucketSpanValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? CategorizationAnalyzerValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? CategorizationFieldNameValue { get; set; } - - private IEnumerable? CategorizationFiltersValue { get; set; } - - private IEnumerable? InfluencersValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? LatencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ModelPruneWindowValue { get; set; } - - private bool? MultivariateByFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - - private PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - - private Action PerPartitionCategorizationDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SummaryCountFieldNameValue { get; set; } - - public AnalysisConfigDescriptor Detectors(IEnumerable detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public AnalysisConfigDescriptor Detectors(DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Action> configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor Detectors(params Action>[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - public AnalysisConfigDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Duration bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - public AnalysisConfigDescriptor CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? categorizationAnalyzer) - { - CategorizationAnalyzerValue = categorizationAnalyzer; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFieldName(Elastic.Clients.Elasticsearch.Field? categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFilters(IEnumerable? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - public AnalysisConfigDescriptor Influencers(IEnumerable? influencers) - { - InfluencersValue = influencers; - return Self; - } - - public AnalysisConfigDescriptor Latency(Elastic.Clients.Elasticsearch.Duration? latency) - { - LatencyValue = latency; - return Self; - } - - public AnalysisConfigDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - public AnalysisConfigDescriptor MultivariateByFields(bool? multivariateByFields = true) - { - MultivariateByFieldsValue = multivariateByFields; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor SummaryCountFieldName(Elastic.Clients.Elasticsearch.Field? summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - if (CategorizationAnalyzerValue is not null) - { - writer.WritePropertyName("categorization_analyzer"); - JsonSerializer.Serialize(writer, CategorizationAnalyzerValue, options); - } - - if (CategorizationFieldNameValue is not null) - { - writer.WritePropertyName("categorization_field_name"); - JsonSerializer.Serialize(writer, CategorizationFieldNameValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (InfluencersValue is not null) - { - writer.WritePropertyName("influencers"); - JsonSerializer.Serialize(writer, InfluencersValue, options); - } - - if (LatencyValue is not null) - { - writer.WritePropertyName("latency"); - JsonSerializer.Serialize(writer, LatencyValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (MultivariateByFieldsValue.HasValue) - { - writer.WritePropertyName("multivariate_by_fields"); - writer.WriteBooleanValue(MultivariateByFieldsValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (SummaryCountFieldNameValue is not null) - { - writer.WritePropertyName("summary_count_field_name"); - JsonSerializer.Serialize(writer, SummaryCountFieldNameValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class AnalysisConfigDescriptor : SerializableDescriptorBase - { - internal AnalysisConfigDescriptor(Action configure) => configure.Invoke(this); - public AnalysisConfigDescriptor() : base() - { - } - - private IEnumerable DetectorsValue { get; set; } - - private DetectorDescriptor DetectorsDescriptor { get; set; } - - private Action DetectorsDescriptorAction { get; set; } - - private Action[] DetectorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Duration BucketSpanValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? CategorizationAnalyzerValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? CategorizationFieldNameValue { get; set; } - - private IEnumerable? CategorizationFiltersValue { get; set; } - - private IEnumerable? InfluencersValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? LatencyValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? ModelPruneWindowValue { get; set; } - - private bool? MultivariateByFieldsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - - private PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - - private Action PerPartitionCategorizationDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? SummaryCountFieldNameValue { get; set; } - - public AnalysisConfigDescriptor Detectors(IEnumerable detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public AnalysisConfigDescriptor Detectors(DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Action configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor Detectors(params Action[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - public AnalysisConfigDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Duration bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - public AnalysisConfigDescriptor CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? categorizationAnalyzer) - { - CategorizationAnalyzerValue = categorizationAnalyzer; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFieldName(Elastic.Clients.Elasticsearch.Field? categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - public AnalysisConfigDescriptor CategorizationFilters(IEnumerable? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - public AnalysisConfigDescriptor Influencers(IEnumerable? influencers) - { - InfluencersValue = influencers; - return Self; - } - - public AnalysisConfigDescriptor Latency(Elastic.Clients.Elasticsearch.Duration? latency) - { - LatencyValue = latency; - return Self; - } - - public AnalysisConfigDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - public AnalysisConfigDescriptor MultivariateByFields(bool? multivariateByFields = true) - { - MultivariateByFieldsValue = multivariateByFields; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor SummaryCountFieldName(Elastic.Clients.Elasticsearch.Field? summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - if (CategorizationAnalyzerValue is not null) - { - writer.WritePropertyName("categorization_analyzer"); - JsonSerializer.Serialize(writer, CategorizationAnalyzerValue, options); - } - - if (CategorizationFieldNameValue is not null) - { - writer.WritePropertyName("categorization_field_name"); - JsonSerializer.Serialize(writer, CategorizationFieldNameValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (InfluencersValue is not null) - { - writer.WritePropertyName("influencers"); - JsonSerializer.Serialize(writer, InfluencersValue, options); - } - - if (LatencyValue is not null) - { - writer.WritePropertyName("latency"); - JsonSerializer.Serialize(writer, LatencyValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (MultivariateByFieldsValue.HasValue) - { - writer.WritePropertyName("multivariate_by_fields"); - writer.WriteBooleanValue(MultivariateByFieldsValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (SummaryCountFieldNameValue is not null) - { - writer.WritePropertyName("summary_count_field_name"); - JsonSerializer.Serialize(writer, SummaryCountFieldNameValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfigRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfigRead.g.cs deleted file mode 100644 index 80ef0bba113..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisConfigRead.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnalysisConfigRead - { - [JsonInclude] - [JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Duration BucketSpan { get; init; } - - [JsonInclude] - [JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer? CategorizationAnalyzer { get; init; } - - [JsonInclude] - [JsonPropertyName("categorization_field_name")] - public string? CategorizationFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("categorization_filters")] - public IReadOnlyCollection? CategorizationFilters { get; init; } - - [JsonInclude] - [JsonPropertyName("detectors")] - public IReadOnlyCollection Detectors { get; init; } - - [JsonInclude] - [JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } - - [JsonInclude] - [JsonPropertyName("latency")] - public Elastic.Clients.Elasticsearch.Duration? Latency { get; init; } - - [JsonInclude] - [JsonPropertyName("model_prune_window")] - public Elastic.Clients.Elasticsearch.Duration? ModelPruneWindow { get; init; } - - [JsonInclude] - [JsonPropertyName("multivariate_by_fields")] - public bool? MultivariateByFields { get; init; } - - [JsonInclude] - [JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Ml.PerPartitionCategorization? PerPartitionCategorization { get; init; } - - [JsonInclude] - [JsonPropertyName("summary_count_field_name")] - public string? SummaryCountFieldName { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisLimits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisLimits.g.cs deleted file mode 100644 index 0a29a2dae68..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisLimits.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnalysisLimits - { - [JsonInclude] - [JsonPropertyName("categorization_examples_limit")] - public long? CategorizationExamplesLimit { get; set; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - } - - public sealed partial class AnalysisLimitsDescriptor : SerializableDescriptorBase - { - internal AnalysisLimitsDescriptor(Action configure) => configure.Invoke(this); - public AnalysisLimitsDescriptor() : base() - { - } - - private long? CategorizationExamplesLimitValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public AnalysisLimitsDescriptor CategorizationExamplesLimit(long? categorizationExamplesLimit) - { - CategorizationExamplesLimitValue = categorizationExamplesLimit; - return Self; - } - - public AnalysisLimitsDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CategorizationExamplesLimitValue.HasValue) - { - writer.WritePropertyName("categorization_examples_limit"); - writer.WriteNumberValue(CategorizationExamplesLimitValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisMemoryLimit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisMemoryLimit.g.cs deleted file mode 100644 index 1dbab8b712b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnalysisMemoryLimit.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnalysisMemoryLimit - { - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; set; } - } - - public sealed partial class AnalysisMemoryLimitDescriptor : SerializableDescriptorBase - { - internal AnalysisMemoryLimitDescriptor(Action configure) => configure.Invoke(this); - public AnalysisMemoryLimitDescriptor() : base() - { - } - - private string ModelMemoryLimitValue { get; set; } - - public AnalysisMemoryLimitDescriptor ModelMemoryLimit(string modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Anomaly.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Anomaly.g.cs deleted file mode 100644 index 5ba06dfef1d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Anomaly.g.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Anomaly - { - [JsonInclude] - [JsonPropertyName("actual")] - public IReadOnlyCollection? Actual { get; init; } - - [JsonInclude] - [JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - [JsonInclude] - [JsonPropertyName("by_field_name")] - public string? ByFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("by_field_value")] - public string? ByFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("causes")] - public IReadOnlyCollection? Causes { get; init; } - - [JsonInclude] - [JsonPropertyName("detector_index")] - public int DetectorIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("field_name")] - public string? FieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("function")] - public string? Function { get; init; } - - [JsonInclude] - [JsonPropertyName("function_description")] - public string? FunctionDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("influencers")] - public IReadOnlyCollection? Influencers { get; init; } - - [JsonInclude] - [JsonPropertyName("initial_record_score")] - public double InitialRecordScore { get; init; } - - [JsonInclude] - [JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("over_field_name")] - public string? OverFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("over_field_value")] - public string? OverFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("partition_field_name")] - public string? PartitionFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("partition_field_value")] - public string? PartitionFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("probability")] - public double Probability { get; init; } - - [JsonInclude] - [JsonPropertyName("record_score")] - public double RecordScore { get; init; } - - [JsonInclude] - [JsonPropertyName("result_type")] - public string ResultType { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("typical")] - public IReadOnlyCollection? Typical { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyCause.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyCause.g.cs deleted file mode 100644 index cff708ab821..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyCause.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnomalyCause - { - [JsonInclude] - [JsonPropertyName("actual")] - public IReadOnlyCollection Actual { get; init; } - - [JsonInclude] - [JsonPropertyName("by_field_name")] - public string ByFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("by_field_value")] - public string ByFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("correlated_by_field_value")] - public string CorrelatedByFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("field_name")] - public string FieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("function")] - public string Function { get; init; } - - [JsonInclude] - [JsonPropertyName("function_description")] - public string FunctionDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } - - [JsonInclude] - [JsonPropertyName("over_field_name")] - public string OverFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("over_field_value")] - public string OverFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("partition_field_name")] - public string PartitionFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("partition_field_value")] - public string PartitionFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("probability")] - public double Probability { get; init; } - - [JsonInclude] - [JsonPropertyName("typical")] - public IReadOnlyCollection Typical { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyDetectors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyDetectors.g.cs deleted file mode 100644 index 1f7aa79f8ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/AnomalyDetectors.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class AnomalyDetectors - { - [JsonInclude] - [JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzer CategorizationAnalyzer { get; init; } - - [JsonInclude] - [JsonPropertyName("categorization_examples_limit")] - public int CategorizationExamplesLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public int DailyModelSnapshotRetentionAfterDays { get; init; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public int ModelSnapshotRetentionDays { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ApiKeyAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ApiKeyAuthorization.g.cs deleted file mode 100644 index 2ff43a9fdf5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ApiKeyAuthorization.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ApiKeyAuthorization - { - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Calendar.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Calendar.g.cs deleted file mode 100644 index 47d7f074570..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Calendar.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Calendar - { - [JsonInclude] - [JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("job_ids")] - public IReadOnlyCollection JobIds { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CalendarEvent.g.cs deleted file mode 100644 index 0490d1da36d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CalendarEvent.g.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class CalendarEvent - { - [JsonInclude] - [JsonPropertyName("calendar_id")] - public Elastic.Clients.Elasticsearch.Id? CalendarId { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonInclude] - [JsonPropertyName("end_time")] - public DateTimeOffset EndTime { get; set; } - - [JsonInclude] - [JsonPropertyName("event_id")] - public Elastic.Clients.Elasticsearch.Id? EventId { get; set; } - - [JsonInclude] - [JsonPropertyName("start_time")] - public DateTimeOffset StartTime { get; set; } - } - - public sealed partial class CalendarEventDescriptor : SerializableDescriptorBase - { - internal CalendarEventDescriptor(Action configure) => configure.Invoke(this); - public CalendarEventDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Id? CalendarIdValue { get; set; } - - private string DescriptionValue { get; set; } - - private DateTimeOffset EndTimeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? EventIdValue { get; set; } - - private DateTimeOffset StartTimeValue { get; set; } - - public CalendarEventDescriptor CalendarId(Elastic.Clients.Elasticsearch.Id? calendarId) - { - CalendarIdValue = calendarId; - return Self; - } - - public CalendarEventDescriptor Description(string description) - { - DescriptionValue = description; - return Self; - } - - public CalendarEventDescriptor EndTime(DateTimeOffset endTime) - { - EndTimeValue = endTime; - return Self; - } - - public CalendarEventDescriptor EventId(Elastic.Clients.Elasticsearch.Id? eventId) - { - EventIdValue = eventId; - return Self; - } - - public CalendarEventDescriptor StartTime(DateTimeOffset startTime) - { - StartTimeValue = startTime; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CalendarIdValue is not null) - { - writer.WritePropertyName("calendar_id"); - JsonSerializer.Serialize(writer, CalendarIdValue, options); - } - - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - writer.WritePropertyName("end_time"); - JsonSerializer.Serialize(writer, EndTimeValue, options); - if (EventIdValue is not null) - { - writer.WritePropertyName("event_id"); - JsonSerializer.Serialize(writer, EventIdValue, options); - } - - writer.WritePropertyName("start_time"); - JsonSerializer.Serialize(writer, StartTimeValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzer.g.cs deleted file mode 100644 index 968ec2c7842..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzer.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public partial class CategorizationAnalyzer : Union - { - public CategorizationAnalyzer(string categorizationAnalyzer) : base(categorizationAnalyzer) - { - } - - public CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Ml.CategorizationAnalyzerDefinition categorizationAnalyzerDefinition) : base(categorizationAnalyzerDefinition) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzerDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzerDefinition.g.cs deleted file mode 100644 index 55a83ca1b26..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/CategorizationAnalyzerDefinition.g.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class CategorizationAnalyzerDefinition - { - [JsonInclude] - [JsonPropertyName("char_filter")] - public IEnumerable? CharFilter { get; set; } - - [JsonInclude] - [JsonPropertyName("filter")] - public IEnumerable? Filter { get; set; } - - [JsonInclude] - [JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Analysis.Tokenizer? Tokenizer { get; set; } - } - - public sealed partial class CategorizationAnalyzerDefinitionDescriptor : SerializableDescriptorBase - { - internal CategorizationAnalyzerDefinitionDescriptor(Action configure) => configure.Invoke(this); - public CategorizationAnalyzerDefinitionDescriptor() : base() - { - } - - private IEnumerable? CharFilterValue { get; set; } - - private IEnumerable? FilterValue { get; set; } - - private Elastic.Clients.Elasticsearch.Analysis.Tokenizer? TokenizerValue { get; set; } - - public CategorizationAnalyzerDefinitionDescriptor CharFilter(IEnumerable? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - public CategorizationAnalyzerDefinitionDescriptor Filter(IEnumerable? filter) - { - FilterValue = filter; - return Self; - } - - public CategorizationAnalyzerDefinitionDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Analysis.Tokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ChunkingConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ChunkingConfig.g.cs deleted file mode 100644 index 76191c62fac..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ChunkingConfig.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ChunkingConfig - { - [JsonInclude] - [JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Ml.ChunkingMode Mode { get; set; } - - [JsonInclude] - [JsonPropertyName("time_span")] - public Elastic.Clients.Elasticsearch.Duration? TimeSpan { get; set; } - } - - public sealed partial class ChunkingConfigDescriptor : SerializableDescriptorBase - { - internal ChunkingConfigDescriptor(Action configure) => configure.Invoke(this); - public ChunkingConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingMode ModeValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? TimeSpanValue { get; set; } - - public ChunkingConfigDescriptor Mode(Elastic.Clients.Elasticsearch.Ml.ChunkingMode mode) - { - ModeValue = mode; - return Self; - } - - public ChunkingConfigDescriptor TimeSpan(Elastic.Clients.Elasticsearch.Duration? timeSpan) - { - TimeSpanValue = timeSpan; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - if (TimeSpanValue is not null) - { - writer.WritePropertyName("time_span"); - JsonSerializer.Serialize(writer, TimeSpanValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixItem.g.cs deleted file mode 100644 index 749a2369fb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixItem.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ConfusionMatrixItem - { - [JsonInclude] - [JsonPropertyName("actual_class")] - public string ActualClass { get; init; } - - [JsonInclude] - [JsonPropertyName("actual_class_doc_count")] - public int ActualClassDocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("other_predicted_class_doc_count")] - public int OtherPredictedClassDocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("predicted_classes")] - public IReadOnlyCollection PredictedClasses { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixPrediction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixPrediction.g.cs deleted file mode 100644 index 6dfce8e6a92..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixPrediction.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ConfusionMatrixPrediction - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("predicted_class")] - public string PredictedClass { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixThreshold.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixThreshold.g.cs deleted file mode 100644 index d0ce6aee167..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ConfusionMatrixThreshold.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ConfusionMatrixThreshold - { - [JsonInclude] - [JsonPropertyName("fn")] - public int FalseNegative { get; init; } - - [JsonInclude] - [JsonPropertyName("fp")] - public int FalsePositive { get; init; } - - [JsonInclude] - [JsonPropertyName("tn")] - public int TrueNegative { get; init; } - - [JsonInclude] - [JsonPropertyName("tp")] - public int TruePositive { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataCounts.g.cs deleted file mode 100644 index 34d17fb77e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataCounts.g.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataCounts - { - [JsonInclude] - [JsonPropertyName("bucket_count")] - public long BucketCount { get; init; } - - [JsonInclude] - [JsonPropertyName("earliest_record_timestamp")] - public long? EarliestRecordTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("empty_bucket_count")] - public long EmptyBucketCount { get; init; } - - [JsonInclude] - [JsonPropertyName("input_bytes")] - public long InputBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("input_field_count")] - public long InputFieldCount { get; init; } - - [JsonInclude] - [JsonPropertyName("input_record_count")] - public long InputRecordCount { get; init; } - - [JsonInclude] - [JsonPropertyName("invalid_date_count")] - public long InvalidDateCount { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("last_data_time")] - public long? LastDataTime { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_bucket_timestamp")] - public long? LatestBucketTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_empty_bucket_timestamp")] - public long? LatestEmptyBucketTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_record_timestamp")] - public long? LatestRecordTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_sparse_bucket_timestamp")] - public long? LatestSparseBucketTimestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("log_time")] - public long? LogTime { get; init; } - - [JsonInclude] - [JsonPropertyName("missing_field_count")] - public long MissingFieldCount { get; init; } - - [JsonInclude] - [JsonPropertyName("out_of_order_timestamp_count")] - public long OutOfOrderTimestampCount { get; init; } - - [JsonInclude] - [JsonPropertyName("processed_field_count")] - public long ProcessedFieldCount { get; init; } - - [JsonInclude] - [JsonPropertyName("processed_record_count")] - public long ProcessedRecordCount { get; init; } - - [JsonInclude] - [JsonPropertyName("sparse_bucket_count")] - public long SparseBucketCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataDescription.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataDescription.g.cs deleted file mode 100644 index cfd272c9662..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataDescription.g.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataDescription - { - [JsonInclude] - [JsonPropertyName("field_delimiter")] - public string? FieldDelimiter { get; set; } - - [JsonInclude] - [JsonPropertyName("format")] - public string? Format { get; set; } - - [JsonInclude] - [JsonPropertyName("time_field")] - public Elastic.Clients.Elasticsearch.Field? TimeField { get; set; } - - [JsonInclude] - [JsonPropertyName("time_format")] - public string? TimeFormat { get; set; } - } - - public sealed partial class DataDescriptionDescriptor : SerializableDescriptorBase> - { - internal DataDescriptionDescriptor(Action> configure) => configure.Invoke(this); - public DataDescriptionDescriptor() : base() - { - } - - private string? FieldDelimiterValue { get; set; } - - private string? FormatValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TimeFieldValue { get; set; } - - private string? TimeFormatValue { get; set; } - - public DataDescriptionDescriptor FieldDelimiter(string? fieldDelimiter) - { - FieldDelimiterValue = fieldDelimiter; - return Self; - } - - public DataDescriptionDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DataDescriptionDescriptor TimeField(Elastic.Clients.Elasticsearch.Field? timeField) - { - TimeFieldValue = timeField; - return Self; - } - - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - public DataDescriptionDescriptor TimeFormat(string? timeFormat) - { - TimeFormatValue = timeFormat; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldDelimiterValue)) - { - writer.WritePropertyName("field_delimiter"); - writer.WriteStringValue(FieldDelimiterValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (TimeFieldValue is not null) - { - writer.WritePropertyName("time_field"); - JsonSerializer.Serialize(writer, TimeFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimeFormatValue)) - { - writer.WritePropertyName("time_format"); - writer.WriteStringValue(TimeFormatValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataDescriptionDescriptor : SerializableDescriptorBase - { - internal DataDescriptionDescriptor(Action configure) => configure.Invoke(this); - public DataDescriptionDescriptor() : base() - { - } - - private string? FieldDelimiterValue { get; set; } - - private string? FormatValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TimeFieldValue { get; set; } - - private string? TimeFormatValue { get; set; } - - public DataDescriptionDescriptor FieldDelimiter(string? fieldDelimiter) - { - FieldDelimiterValue = fieldDelimiter; - return Self; - } - - public DataDescriptionDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DataDescriptionDescriptor TimeField(Elastic.Clients.Elasticsearch.Field? timeField) - { - TimeFieldValue = timeField; - return Self; - } - - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - public DataDescriptionDescriptor TimeFormat(string? timeFormat) - { - TimeFormatValue = timeFormat; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldDelimiterValue)) - { - writer.WritePropertyName("field_delimiter"); - writer.WriteStringValue(FieldDelimiterValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (TimeFieldValue is not null) - { - writer.WritePropertyName("time_field"); - JsonSerializer.Serialize(writer, TimeFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimeFormatValue)) - { - writer.WritePropertyName("time_format"); - writer.WriteStringValue(TimeFormatValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeed.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeed.g.cs deleted file mode 100644 index ddd8e347bbb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeed.g.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - internal sealed class DatafeedConverter : JsonConverter - { - public override Datafeed Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - Dictionary? aggregations = default; - Elastic.Clients.Elasticsearch.Ml.DatafeedAuthorization? authorization = default; - Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig = default; - string datafeedId = default; - Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig delayedDataCheckConfig = default; - Elastic.Clients.Elasticsearch.Duration? frequency = default; - IReadOnlyCollection? indexes = default; - IReadOnlyCollection indices = default; - Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions = default; - string jobId = default; - int? maxEmptySearches = default; - Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query = default; - Elastic.Clients.Elasticsearch.Duration? queryDelay = default; - Dictionary? runtimeMappings = default; - Dictionary? scriptFields = default; - int? scrollSize = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations") - { - aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "authorization") - { - authorization = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - chunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "datafeed_id") - { - datafeedId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - delayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indexes") - { - indexes = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices") - { - indices = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "indices_options") - { - indicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - jobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - maxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - queryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - runtimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - scriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - scrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return new Datafeed { Aggregations = aggregations, Authorization = authorization, ChunkingConfig = chunkingConfig, DatafeedId = datafeedId, DelayedDataCheckConfig = delayedDataCheckConfig, Frequency = frequency, Indexes = indexes, Indices = indices, IndicesOptions = indicesOptions, JobId = jobId, MaxEmptySearches = maxEmptySearches, Query = query, QueryDelay = queryDelay, RuntimeMappings = runtimeMappings, ScriptFields = scriptFields, ScrollSize = scrollSize }; - } - - public override void Write(Utf8JsonWriter writer, Datafeed value, JsonSerializerOptions options) - { - throw new NotImplementedException("'Datafeed' is a readonly type, used only on responses and does not support being written to JSON."); - } - } - - [JsonConverter(typeof(DatafeedConverter))] - public sealed partial class Datafeed - { - public Dictionary? Aggregations { get; init; } - - public Elastic.Clients.Elasticsearch.Ml.DatafeedAuthorization? Authorization { get; init; } - - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfig { get; init; } - - public string DatafeedId { get; init; } - - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig DelayedDataCheckConfig { get; init; } - - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; init; } - - public IReadOnlyCollection? Indexes { get; init; } - - public IReadOnlyCollection Indices { get; init; } - - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; init; } - - public string JobId { get; init; } - - public int? MaxEmptySearches { get; init; } - - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; init; } - - public Elastic.Clients.Elasticsearch.Duration? QueryDelay { get; init; } - - public Dictionary? RuntimeMappings { get; init; } - - public Dictionary? ScriptFields { get; init; } - - public int? ScrollSize { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedAuthorization.g.cs deleted file mode 100644 index 1aaf73c8169..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedAuthorization.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DatafeedAuthorization - { - [JsonInclude] - [JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Ml.ApiKeyAuthorization? ApiKey { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedConfig.g.cs deleted file mode 100644 index 95b98b934f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DatafeedConfig.g.cs +++ /dev/null @@ -1,952 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - internal sealed class DatafeedConfigConverter : JsonConverter - { - public override DatafeedConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DatafeedConfig(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "datafeed_id") - { - variant.DatafeedId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indexes") - { - variant.Indexes = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices") - { - variant.Indices = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - variant.JobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DatafeedConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DatafeedId is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, value.DatafeedId, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Indexes is not null) - { - writer.WritePropertyName("indexes"); - JsonSerializer.Serialize(writer, value.Indexes, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.JobId is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, value.JobId, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(DatafeedConfigConverter))] - public sealed partial class DatafeedConfig - { - public Dictionary? Aggregations { get; set; } - - public Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfig { get; set; } - - public Elastic.Clients.Elasticsearch.Id? DatafeedId { get; set; } - - public Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; set; } - - public IEnumerable? Indexes { get; set; } - - public IEnumerable Indices { get; set; } - - public Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptions { get; set; } - - public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } - - public int? MaxEmptySearches { get; set; } - - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer Query { get; set; } - - public Elastic.Clients.Elasticsearch.Duration? QueryDelay { get; set; } - - public Dictionary? RuntimeMappings { get; set; } - - public Dictionary? ScriptFields { get; set; } - - public int? ScrollSize { get; set; } - } - - public sealed partial class DatafeedConfigDescriptor : SerializableDescriptorBase> - { - internal DatafeedConfigDescriptor(Action> configure) => configure.Invoke(this); - public DatafeedConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? DatafeedIdValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private IEnumerable? IndexesValue { get; set; } - - private IEnumerable IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DatafeedConfigDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id? datafeedId) - { - DatafeedIdValue = datafeedId; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public DatafeedConfigDescriptor Indexes(IEnumerable? indexes) - { - IndexesValue = indexes; - return Self; - } - - public DatafeedConfigDescriptor Indices(IEnumerable indices) - { - IndicesValue = indices; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public DatafeedConfigDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public DatafeedConfigDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public DatafeedConfigDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DatafeedIdValue is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, DatafeedIdValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndexesValue is not null) - { - writer.WritePropertyName("indexes"); - JsonSerializer.Serialize(writer, IndexesValue, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DatafeedConfigDescriptor : SerializableDescriptorBase - { - internal DatafeedConfigDescriptor(Action configure) => configure.Invoke(this); - public DatafeedConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Dictionary? AggregationsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? ChunkingConfigValue { get; set; } - - private ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - - private Action ChunkingConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? DatafeedIdValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - - private DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? FrequencyValue { get; set; } - - private IEnumerable? IndexesValue { get; set; } - - private IEnumerable IndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndicesOptions? IndicesOptionsValue { get; set; } - - private IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - - private Action IndicesOptionsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private int? MaxEmptySearchesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? QueryDelayValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - private Dictionary? ScriptFieldsValue { get; set; } - - private int? ScrollSizeValue { get; set; } - - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DatafeedConfigDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Ml.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Id? datafeedId) - { - DatafeedIdValue = datafeedId; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Ml.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor Frequency(Elastic.Clients.Elasticsearch.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public DatafeedConfigDescriptor Indexes(IEnumerable? indexes) - { - IndexesValue = indexes; - return Self; - } - - public DatafeedConfigDescriptor Indices(IEnumerable indices) - { - IndicesValue = indices; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public DatafeedConfigDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - public DatafeedConfigDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - public DatafeedConfigDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ScriptFields(Func, FluentDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatafeedConfigDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DatafeedIdValue is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, DatafeedIdValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndexesValue is not null) - { - writer.WritePropertyName("indexes"); - JsonSerializer.Serialize(writer, IndexesValue, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeeds.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeeds.g.cs deleted file mode 100644 index 225f82f62b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Datafeeds.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Datafeeds - { - [JsonInclude] - [JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisAnalyzedFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisAnalyzedFields.g.cs deleted file mode 100644 index 6d72896fb1b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisAnalyzedFields.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisAnalyzedFields - { - [JsonInclude] - [JsonPropertyName("excludes")] - public IEnumerable Excludes { get; set; } - - [JsonInclude] - [JsonPropertyName("includes")] - public IEnumerable Includes { get; set; } - } - - public sealed partial class DataframeAnalysisAnalyzedFieldsDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisAnalyzedFieldsDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisAnalyzedFieldsDescriptor() : base() - { - } - - private IEnumerable ExcludesValue { get; set; } - - private IEnumerable IncludesValue { get; set; } - - public DataframeAnalysisAnalyzedFieldsDescriptor Excludes(IEnumerable excludes) - { - ExcludesValue = excludes; - return Self; - } - - public DataframeAnalysisAnalyzedFieldsDescriptor Includes(IEnumerable includes) - { - IncludesValue = includes; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, ExcludesValue, options); - writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, IncludesValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisClassification.g.cs deleted file mode 100644 index 9451515e440..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisClassification.g.cs +++ /dev/null @@ -1,1050 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - internal sealed class DataframeAnalysisClassificationConverter : JsonConverter - { - public override DataframeAnalysisClassification Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DataframeAnalysisClassification(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "alpha") - { - variant.Alpha = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "class_assignment_objective") - { - variant.ClassAssignmentObjective = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "dependent_variable") - { - variant.DependentVariable = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "downsample_factor") - { - variant.DownsampleFactor = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "early_stopping_enabled") - { - variant.EarlyStoppingEnabled = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta") - { - variant.Eta = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta_growth_rate_per_tree") - { - variant.EtaGrowthRatePerTree = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_bag_fraction") - { - variant.FeatureBagFraction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_processors") - { - variant.FeatureProcessors = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "gamma") - { - variant.Gamma = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lambda") - { - variant.Lambda = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_optimization_rounds_per_hyperparameter") - { - variant.MaxOptimizationRoundsPerHyperparameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_trees" || property == "maximum_number_trees") - { - variant.MaxTrees = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_classes") - { - variant.NumTopClasses = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_feature_importance_values") - { - variant.NumTopFeatureImportanceValues = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prediction_field_name") - { - variant.PredictionFieldName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "randomize_seed") - { - variant.RandomizeSeed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_limit") - { - variant.SoftTreeDepthLimit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_tolerance") - { - variant.SoftTreeDepthTolerance = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "training_percent") - { - variant.TrainingPercent = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisClassification value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Alpha.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(value.Alpha.Value); - } - - if (!string.IsNullOrEmpty(value.ClassAssignmentObjective)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(value.ClassAssignmentObjective); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(value.DependentVariable); - if (value.DownsampleFactor.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(value.DownsampleFactor.Value); - } - - if (value.EarlyStoppingEnabled.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(value.EarlyStoppingEnabled.Value); - } - - if (value.Eta.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(value.Eta.Value); - } - - if (value.EtaGrowthRatePerTree.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(value.EtaGrowthRatePerTree.Value); - } - - if (value.FeatureBagFraction.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(value.FeatureBagFraction.Value); - } - - if (value.FeatureProcessors is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, value.FeatureProcessors, options); - } - - if (value.Gamma.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(value.Gamma.Value); - } - - if (value.Lambda.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(value.Lambda.Value); - } - - if (value.MaxOptimizationRoundsPerHyperparameter.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(value.MaxOptimizationRoundsPerHyperparameter.Value); - } - - if (value.MaxTrees.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(value.MaxTrees.Value); - } - - if (value.NumTopClasses.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(value.NumTopClasses.Value); - } - - if (value.NumTopFeatureImportanceValues.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(value.NumTopFeatureImportanceValues.Value); - } - - if (value.PredictionFieldName is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, value.PredictionFieldName, options); - } - - if (value.RandomizeSeed.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(value.RandomizeSeed.Value); - } - - if (value.SoftTreeDepthLimit.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(value.SoftTreeDepthLimit.Value); - } - - if (value.SoftTreeDepthTolerance.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(value.SoftTreeDepthTolerance.Value); - } - - if (value.TrainingPercent is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, value.TrainingPercent, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(DataframeAnalysisClassificationConverter))] - public sealed partial class DataframeAnalysisClassification - { - public double? Alpha { get; set; } - - public string? ClassAssignmentObjective { get; set; } - - public string DependentVariable { get; set; } - - public double? DownsampleFactor { get; set; } - - public bool? EarlyStoppingEnabled { get; set; } - - public double? Eta { get; set; } - - public double? EtaGrowthRatePerTree { get; set; } - - public double? FeatureBagFraction { get; set; } - - public IEnumerable? FeatureProcessors { get; set; } - - public double? Gamma { get; set; } - - public double? Lambda { get; set; } - - public int? MaxOptimizationRoundsPerHyperparameter { get; set; } - - public int? MaxTrees { get; set; } - - public int? NumTopClasses { get; set; } - - public int? NumTopFeatureImportanceValues { get; set; } - - public Elastic.Clients.Elasticsearch.Field? PredictionFieldName { get; set; } - - public double? RandomizeSeed { get; set; } - - public int? SoftTreeDepthLimit { get; set; } - - public double? SoftTreeDepthTolerance { get; set; } - - public Elastic.Clients.Elasticsearch.Percentage? TrainingPercent { get; set; } - } - - public sealed partial class DataframeAnalysisClassificationDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisClassificationDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisClassificationDescriptor() : base() - { - } - - private IEnumerable? FeatureProcessorsValue { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - - private Action> FeatureProcessorsDescriptorAction { get; set; } - - private Action>[] FeatureProcessorsDescriptorActions { get; set; } - - private double? AlphaValue { get; set; } - - private string? ClassAssignmentObjectiveValue { get; set; } - - private string DependentVariableValue { get; set; } - - private double? DownsampleFactorValue { get; set; } - - private bool? EarlyStoppingEnabledValue { get; set; } - - private double? EtaValue { get; set; } - - private double? EtaGrowthRatePerTreeValue { get; set; } - - private double? FeatureBagFractionValue { get; set; } - - private double? GammaValue { get; set; } - - private double? LambdaValue { get; set; } - - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - - private int? MaxTreesValue { get; set; } - - private int? NumTopClassesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictionFieldNameValue { get; set; } - - private double? RandomizeSeedValue { get; set; } - - private int? SoftTreeDepthLimitValue { get; set; } - - private double? SoftTreeDepthToleranceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Percentage? TrainingPercentValue { get; set; } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(IEnumerable? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Action> configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(params Action>[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisClassificationDescriptor ClassAssignmentObjective(string? classAssignmentObjective) - { - ClassAssignmentObjectiveValue = classAssignmentObjective; - return Self; - } - - public DataframeAnalysisClassificationDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - public DataframeAnalysisClassificationDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - public DataframeAnalysisClassificationDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - public DataframeAnalysisClassificationDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - public DataframeAnalysisClassificationDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - public DataframeAnalysisClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - public DataframeAnalysisClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisClassificationDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - public DataframeAnalysisClassificationDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - public DataframeAnalysisClassificationDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - public DataframeAnalysisClassificationDescriptor TrainingPercent(Elastic.Clients.Elasticsearch.Percentage? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - if (!string.IsNullOrEmpty(ClassAssignmentObjectiveValue)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(ClassAssignmentObjectiveValue); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, TrainingPercentValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisClassificationDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisClassificationDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisClassificationDescriptor() : base() - { - } - - private IEnumerable? FeatureProcessorsValue { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - - private Action FeatureProcessorsDescriptorAction { get; set; } - - private Action[] FeatureProcessorsDescriptorActions { get; set; } - - private double? AlphaValue { get; set; } - - private string? ClassAssignmentObjectiveValue { get; set; } - - private string DependentVariableValue { get; set; } - - private double? DownsampleFactorValue { get; set; } - - private bool? EarlyStoppingEnabledValue { get; set; } - - private double? EtaValue { get; set; } - - private double? EtaGrowthRatePerTreeValue { get; set; } - - private double? FeatureBagFractionValue { get; set; } - - private double? GammaValue { get; set; } - - private double? LambdaValue { get; set; } - - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - - private int? MaxTreesValue { get; set; } - - private int? NumTopClassesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictionFieldNameValue { get; set; } - - private double? RandomizeSeedValue { get; set; } - - private int? SoftTreeDepthLimitValue { get; set; } - - private double? SoftTreeDepthToleranceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Percentage? TrainingPercentValue { get; set; } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(IEnumerable? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Action configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(params Action[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisClassificationDescriptor ClassAssignmentObjective(string? classAssignmentObjective) - { - ClassAssignmentObjectiveValue = classAssignmentObjective; - return Self; - } - - public DataframeAnalysisClassificationDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - public DataframeAnalysisClassificationDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - public DataframeAnalysisClassificationDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - public DataframeAnalysisClassificationDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - public DataframeAnalysisClassificationDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - public DataframeAnalysisClassificationDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - public DataframeAnalysisClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - public DataframeAnalysisClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisClassificationDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - public DataframeAnalysisClassificationDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - public DataframeAnalysisClassificationDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - public DataframeAnalysisClassificationDescriptor TrainingPercent(Elastic.Clients.Elasticsearch.Percentage? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - if (!string.IsNullOrEmpty(ClassAssignmentObjectiveValue)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(ClassAssignmentObjectiveValue); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, TrainingPercentValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisContainer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisContainer.g.cs deleted file mode 100644 index 0c0da024dad..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisContainer.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - [JsonConverter(typeof(DataframeAnalysisContainerConverter))] - public sealed partial class DataframeAnalysisContainer - { - internal DataframeAnalysisContainer(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static DataframeAnalysisContainer Classification(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisClassification dataframeAnalysisClassification) => new DataframeAnalysisContainer("classification", dataframeAnalysisClassification); - public static DataframeAnalysisContainer OutlierDetection(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisOutlierDetection dataframeAnalysisOutlierDetection) => new DataframeAnalysisContainer("outlier_detection", dataframeAnalysisOutlierDetection); - public static DataframeAnalysisContainer Regression(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisRegression dataframeAnalysisRegression) => new DataframeAnalysisContainer("regression", dataframeAnalysisRegression); - } - - internal sealed class DataframeAnalysisContainerConverter : JsonConverter - { - public override DataframeAnalysisContainer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisContainer(propertyName, variant); - } - - if (propertyName == "outlier_detection") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisContainer(propertyName, variant); - } - - if (propertyName == "regression") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisContainer(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisContainer value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisClassification)value.Variant, options); - break; - case "outlier_detection": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisOutlierDetection)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisRegression)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisContainerDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisContainerDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeAnalysisContainerDescriptor. Only a single DataframeAnalysisContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeAnalysisContainerDescriptor. Only a single DataframeAnalysisContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(DataframeAnalysisClassification variant) => Set(variant, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void OutlierDetection(DataframeAnalysisOutlierDetection variant) => Set(variant, "outlier_detection"); - public void OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public void Regression(DataframeAnalysisRegression variant) => Set(variant, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisContainerDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisContainerDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeAnalysisContainerDescriptor. Only a single DataframeAnalysisContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeAnalysisContainerDescriptor. Only a single DataframeAnalysisContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(DataframeAnalysisClassification variant) => Set(variant, "classification"); - public void Classification(Action configure) => Set(configure, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void OutlierDetection(DataframeAnalysisOutlierDetection variant) => Set(variant, "outlier_detection"); - public void OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public void Regression(DataframeAnalysisRegression variant) => Set(variant, "regression"); - public void Regression(Action configure) => Set(configure, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessor.g.cs deleted file mode 100644 index ee6476a5c94..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessor.g.cs +++ /dev/null @@ -1,276 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - [JsonConverter(typeof(DataframeAnalysisFeatureProcessorConverter))] - public sealed partial class DataframeAnalysisFeatureProcessor - { - internal DataframeAnalysisFeatureProcessor(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static DataframeAnalysisFeatureProcessor FrequencyEncoding(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorFrequencyEncoding dataframeAnalysisFeatureProcessorFrequencyEncoding) => new DataframeAnalysisFeatureProcessor("frequency_encoding", dataframeAnalysisFeatureProcessorFrequencyEncoding); - public static DataframeAnalysisFeatureProcessor MultiEncoding(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorMultiEncoding dataframeAnalysisFeatureProcessorMultiEncoding) => new DataframeAnalysisFeatureProcessor("multi_encoding", dataframeAnalysisFeatureProcessorMultiEncoding); - public static DataframeAnalysisFeatureProcessor NGramEncoding(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorNGramEncoding dataframeAnalysisFeatureProcessorNGramEncoding) => new DataframeAnalysisFeatureProcessor("n_gram_encoding", dataframeAnalysisFeatureProcessorNGramEncoding); - public static DataframeAnalysisFeatureProcessor OneHotEncoding(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorOneHotEncoding dataframeAnalysisFeatureProcessorOneHotEncoding) => new DataframeAnalysisFeatureProcessor("one_hot_encoding", dataframeAnalysisFeatureProcessorOneHotEncoding); - public static DataframeAnalysisFeatureProcessor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorTargetMeanEncoding dataframeAnalysisFeatureProcessorTargetMeanEncoding) => new DataframeAnalysisFeatureProcessor("target_mean_encoding", dataframeAnalysisFeatureProcessorTargetMeanEncoding); - } - - internal sealed class DataframeAnalysisFeatureProcessorConverter : JsonConverter - { - public override DataframeAnalysisFeatureProcessor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "frequency_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisFeatureProcessor(propertyName, variant); - } - - if (propertyName == "multi_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisFeatureProcessor(propertyName, variant); - } - - if (propertyName == "n_gram_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisFeatureProcessor(propertyName, variant); - } - - if (propertyName == "one_hot_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisFeatureProcessor(propertyName, variant); - } - - if (propertyName == "target_mean_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeAnalysisFeatureProcessor(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisFeatureProcessor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "frequency_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorFrequencyEncoding)value.Variant, options); - break; - case "multi_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorMultiEncoding)value.Variant, options); - break; - case "n_gram_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorNGramEncoding)value.Variant, options); - break; - case "one_hot_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorOneHotEncoding)value.Variant, options); - break; - case "target_mean_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisFeatureProcessorTargetMeanEncoding)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisFeatureProcessorDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeAnalysisFeatureProcessorDescriptor. Only a single DataframeAnalysisFeatureProcessor variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeAnalysisFeatureProcessorDescriptor. Only a single DataframeAnalysisFeatureProcessor variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void FrequencyEncoding(DataframeAnalysisFeatureProcessorFrequencyEncoding variant) => Set(variant, "frequency_encoding"); - public void FrequencyEncoding(Action> configure) => Set(configure, "frequency_encoding"); - public void MultiEncoding(DataframeAnalysisFeatureProcessorMultiEncoding variant) => Set(variant, "multi_encoding"); - public void MultiEncoding(Action configure) => Set(configure, "multi_encoding"); - public void NGramEncoding(DataframeAnalysisFeatureProcessorNGramEncoding variant) => Set(variant, "n_gram_encoding"); - public void NGramEncoding(Action> configure) => Set(configure, "n_gram_encoding"); - public void OneHotEncoding(DataframeAnalysisFeatureProcessorOneHotEncoding variant) => Set(variant, "one_hot_encoding"); - public void OneHotEncoding(Action> configure) => Set(configure, "one_hot_encoding"); - public void TargetMeanEncoding(DataframeAnalysisFeatureProcessorTargetMeanEncoding variant) => Set(variant, "target_mean_encoding"); - public void TargetMeanEncoding(Action> configure) => Set(configure, "target_mean_encoding"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeAnalysisFeatureProcessorDescriptor. Only a single DataframeAnalysisFeatureProcessor variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeAnalysisFeatureProcessorDescriptor. Only a single DataframeAnalysisFeatureProcessor variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void FrequencyEncoding(DataframeAnalysisFeatureProcessorFrequencyEncoding variant) => Set(variant, "frequency_encoding"); - public void FrequencyEncoding(Action configure) => Set(configure, "frequency_encoding"); - public void FrequencyEncoding(Action> configure) => Set(configure, "frequency_encoding"); - public void MultiEncoding(DataframeAnalysisFeatureProcessorMultiEncoding variant) => Set(variant, "multi_encoding"); - public void MultiEncoding(Action configure) => Set(configure, "multi_encoding"); - public void NGramEncoding(DataframeAnalysisFeatureProcessorNGramEncoding variant) => Set(variant, "n_gram_encoding"); - public void NGramEncoding(Action configure) => Set(configure, "n_gram_encoding"); - public void NGramEncoding(Action> configure) => Set(configure, "n_gram_encoding"); - public void OneHotEncoding(DataframeAnalysisFeatureProcessorOneHotEncoding variant) => Set(variant, "one_hot_encoding"); - public void OneHotEncoding(Action configure) => Set(configure, "one_hot_encoding"); - public void OneHotEncoding(Action> configure) => Set(configure, "one_hot_encoding"); - public void TargetMeanEncoding(DataframeAnalysisFeatureProcessorTargetMeanEncoding variant) => Set(variant, "target_mean_encoding"); - public void TargetMeanEncoding(Action configure) => Set(configure, "target_mean_encoding"); - public void TargetMeanEncoding(Action> configure) => Set(configure, "target_mean_encoding"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs deleted file mode 100644 index e286aceecb0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncoding - { - [JsonInclude] - [JsonPropertyName("feature_name")] - public Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency_map")] - public Dictionary FrequencyMap { get; set; } - } - - public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name FeatureNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Dictionary FrequencyMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name FeatureNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Dictionary FrequencyMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs deleted file mode 100644 index 02cb86d3615..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisFeatureProcessorMultiEncoding - { - [JsonInclude] - [JsonPropertyName("processors")] - public IEnumerable Processors { get; set; } - } - - public sealed partial class DataframeAnalysisFeatureProcessorMultiEncodingDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorMultiEncodingDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorMultiEncodingDescriptor() : base() - { - } - - private IEnumerable ProcessorsValue { get; set; } - - public DataframeAnalysisFeatureProcessorMultiEncodingDescriptor Processors(IEnumerable processors) - { - ProcessorsValue = processors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs deleted file mode 100644 index 35f5605f875..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisFeatureProcessorNGramEncoding - { - [JsonInclude] - [JsonPropertyName("custom")] - public bool? Custom { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_prefix")] - public string? FeaturePrefix { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("length")] - public int? Length { get; set; } - - [JsonInclude] - [JsonPropertyName("n_grams")] - public IEnumerable NGrams { get; set; } - - [JsonInclude] - [JsonPropertyName("start")] - public int? Start { get; set; } - } - - public sealed partial class DataframeAnalysisFeatureProcessorNGramEncodingDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisFeatureProcessorNGramEncodingDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor() : base() - { - } - - private bool? CustomValue { get; set; } - - private string? FeaturePrefixValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private int? LengthValue { get; set; } - - private IEnumerable NGramsValue { get; set; } - - private int? StartValue { get; set; } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Custom(bool? custom = true) - { - CustomValue = custom; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor FeaturePrefix(string? featurePrefix) - { - FeaturePrefixValue = featurePrefix; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Length(int? length) - { - LengthValue = length; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor NGrams(IEnumerable nGrams) - { - NGramsValue = nGrams; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Start(int? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomValue.HasValue) - { - writer.WritePropertyName("custom"); - writer.WriteBooleanValue(CustomValue.Value); - } - - if (!string.IsNullOrEmpty(FeaturePrefixValue)) - { - writer.WritePropertyName("feature_prefix"); - writer.WriteStringValue(FeaturePrefixValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LengthValue.HasValue) - { - writer.WritePropertyName("length"); - writer.WriteNumberValue(LengthValue.Value); - } - - writer.WritePropertyName("n_grams"); - JsonSerializer.Serialize(writer, NGramsValue, options); - if (StartValue.HasValue) - { - writer.WritePropertyName("start"); - writer.WriteNumberValue(StartValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorNGramEncodingDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorNGramEncodingDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor() : base() - { - } - - private bool? CustomValue { get; set; } - - private string? FeaturePrefixValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private int? LengthValue { get; set; } - - private IEnumerable NGramsValue { get; set; } - - private int? StartValue { get; set; } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Custom(bool? custom = true) - { - CustomValue = custom; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor FeaturePrefix(string? featurePrefix) - { - FeaturePrefixValue = featurePrefix; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Length(int? length) - { - LengthValue = length; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor NGrams(IEnumerable nGrams) - { - NGramsValue = nGrams; - return Self; - } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Start(int? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomValue.HasValue) - { - writer.WritePropertyName("custom"); - writer.WriteBooleanValue(CustomValue.Value); - } - - if (!string.IsNullOrEmpty(FeaturePrefixValue)) - { - writer.WritePropertyName("feature_prefix"); - writer.WriteStringValue(FeaturePrefixValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LengthValue.HasValue) - { - writer.WritePropertyName("length"); - writer.WriteNumberValue(LengthValue.Value); - } - - writer.WritePropertyName("n_grams"); - JsonSerializer.Serialize(writer, NGramsValue, options); - if (StartValue.HasValue) - { - writer.WritePropertyName("start"); - writer.WriteNumberValue(StartValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs deleted file mode 100644 index e182cccfaa3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncoding - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("hot_map")] - public string HotMap { get; set; } - } - - public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string HotMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor HotMap(string hotMap) - { - HotMapValue = hotMap; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("hot_map"); - writer.WriteStringValue(HotMapValue); - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private string HotMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor HotMap(string hotMap) - { - HotMapValue = hotMap; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("hot_map"); - writer.WriteStringValue(HotMapValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs deleted file mode 100644 index 7c924f18ec3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncoding - { - [JsonInclude] - [JsonPropertyName("default_value")] - public int DefaultValue { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_name")] - public Elastic.Clients.Elasticsearch.Name FeatureName { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("target_map")] - public Dictionary TargetMap { get; set; } - } - - public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor() : base() - { - } - - private int DefaultValueValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name FeatureNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Dictionary TargetMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor DefaultValue(int defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor() : base() - { - } - - private int DefaultValueValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name FeatureNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Dictionary TargetMapValue { get; set; } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor DefaultValue(int defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisOutlierDetection.g.cs deleted file mode 100644 index 6f517ffc338..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisOutlierDetection.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalysisOutlierDetection - { - [JsonInclude] - [JsonPropertyName("compute_feature_influence")] - public bool? ComputeFeatureInfluence { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_influence_threshold")] - public double? FeatureInfluenceThreshold { get; set; } - - [JsonInclude] - [JsonPropertyName("method")] - public string? Method { get; set; } - - [JsonInclude] - [JsonPropertyName("n_neighbors")] - public int? NNeighbors { get; set; } - - [JsonInclude] - [JsonPropertyName("outlier_fraction")] - public double? OutlierFraction { get; set; } - - [JsonInclude] - [JsonPropertyName("standardization_enabled")] - public bool? StandardizationEnabled { get; set; } - } - - public sealed partial class DataframeAnalysisOutlierDetectionDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisOutlierDetectionDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisOutlierDetectionDescriptor() : base() - { - } - - private bool? ComputeFeatureInfluenceValue { get; set; } - - private double? FeatureInfluenceThresholdValue { get; set; } - - private string? MethodValue { get; set; } - - private int? NNeighborsValue { get; set; } - - private double? OutlierFractionValue { get; set; } - - private bool? StandardizationEnabledValue { get; set; } - - public DataframeAnalysisOutlierDetectionDescriptor ComputeFeatureInfluence(bool? computeFeatureInfluence = true) - { - ComputeFeatureInfluenceValue = computeFeatureInfluence; - return Self; - } - - public DataframeAnalysisOutlierDetectionDescriptor FeatureInfluenceThreshold(double? featureInfluenceThreshold) - { - FeatureInfluenceThresholdValue = featureInfluenceThreshold; - return Self; - } - - public DataframeAnalysisOutlierDetectionDescriptor Method(string? method) - { - MethodValue = method; - return Self; - } - - public DataframeAnalysisOutlierDetectionDescriptor NNeighbors(int? nNeighbors) - { - NNeighborsValue = nNeighbors; - return Self; - } - - public DataframeAnalysisOutlierDetectionDescriptor OutlierFraction(double? outlierFraction) - { - OutlierFractionValue = outlierFraction; - return Self; - } - - public DataframeAnalysisOutlierDetectionDescriptor StandardizationEnabled(bool? standardizationEnabled = true) - { - StandardizationEnabledValue = standardizationEnabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ComputeFeatureInfluenceValue.HasValue) - { - writer.WritePropertyName("compute_feature_influence"); - writer.WriteBooleanValue(ComputeFeatureInfluenceValue.Value); - } - - if (FeatureInfluenceThresholdValue.HasValue) - { - writer.WritePropertyName("feature_influence_threshold"); - writer.WriteNumberValue(FeatureInfluenceThresholdValue.Value); - } - - if (!string.IsNullOrEmpty(MethodValue)) - { - writer.WritePropertyName("method"); - writer.WriteStringValue(MethodValue); - } - - if (NNeighborsValue.HasValue) - { - writer.WritePropertyName("n_neighbors"); - writer.WriteNumberValue(NNeighborsValue.Value); - } - - if (OutlierFractionValue.HasValue) - { - writer.WritePropertyName("outlier_fraction"); - writer.WriteNumberValue(OutlierFractionValue.Value); - } - - if (StandardizationEnabledValue.HasValue) - { - writer.WritePropertyName("standardization_enabled"); - writer.WriteBooleanValue(StandardizationEnabledValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisRegression.g.cs deleted file mode 100644 index 71d698cd5bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalysisRegression.g.cs +++ /dev/null @@ -1,1050 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - internal sealed class DataframeAnalysisRegressionConverter : JsonConverter - { - public override DataframeAnalysisRegression Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DataframeAnalysisRegression(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "alpha") - { - variant.Alpha = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "dependent_variable") - { - variant.DependentVariable = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "downsample_factor") - { - variant.DownsampleFactor = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "early_stopping_enabled") - { - variant.EarlyStoppingEnabled = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta") - { - variant.Eta = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta_growth_rate_per_tree") - { - variant.EtaGrowthRatePerTree = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_bag_fraction") - { - variant.FeatureBagFraction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_processors") - { - variant.FeatureProcessors = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "gamma") - { - variant.Gamma = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lambda") - { - variant.Lambda = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "loss_function") - { - variant.LossFunction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "loss_function_parameter") - { - variant.LossFunctionParameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_optimization_rounds_per_hyperparameter") - { - variant.MaxOptimizationRoundsPerHyperparameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_trees" || property == "maximum_number_trees") - { - variant.MaxTrees = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_feature_importance_values") - { - variant.NumTopFeatureImportanceValues = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prediction_field_name") - { - variant.PredictionFieldName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "randomize_seed") - { - variant.RandomizeSeed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_limit") - { - variant.SoftTreeDepthLimit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_tolerance") - { - variant.SoftTreeDepthTolerance = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "training_percent") - { - variant.TrainingPercent = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisRegression value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Alpha.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(value.Alpha.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(value.DependentVariable); - if (value.DownsampleFactor.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(value.DownsampleFactor.Value); - } - - if (value.EarlyStoppingEnabled.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(value.EarlyStoppingEnabled.Value); - } - - if (value.Eta.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(value.Eta.Value); - } - - if (value.EtaGrowthRatePerTree.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(value.EtaGrowthRatePerTree.Value); - } - - if (value.FeatureBagFraction.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(value.FeatureBagFraction.Value); - } - - if (value.FeatureProcessors is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, value.FeatureProcessors, options); - } - - if (value.Gamma.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(value.Gamma.Value); - } - - if (value.Lambda.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(value.Lambda.Value); - } - - if (!string.IsNullOrEmpty(value.LossFunction)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(value.LossFunction); - } - - if (value.LossFunctionParameter.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(value.LossFunctionParameter.Value); - } - - if (value.MaxOptimizationRoundsPerHyperparameter.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(value.MaxOptimizationRoundsPerHyperparameter.Value); - } - - if (value.MaxTrees.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(value.MaxTrees.Value); - } - - if (value.NumTopFeatureImportanceValues.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(value.NumTopFeatureImportanceValues.Value); - } - - if (value.PredictionFieldName is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, value.PredictionFieldName, options); - } - - if (value.RandomizeSeed.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(value.RandomizeSeed.Value); - } - - if (value.SoftTreeDepthLimit.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(value.SoftTreeDepthLimit.Value); - } - - if (value.SoftTreeDepthTolerance.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(value.SoftTreeDepthTolerance.Value); - } - - if (value.TrainingPercent is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, value.TrainingPercent, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(DataframeAnalysisRegressionConverter))] - public sealed partial class DataframeAnalysisRegression - { - public double? Alpha { get; set; } - - public string DependentVariable { get; set; } - - public double? DownsampleFactor { get; set; } - - public bool? EarlyStoppingEnabled { get; set; } - - public double? Eta { get; set; } - - public double? EtaGrowthRatePerTree { get; set; } - - public double? FeatureBagFraction { get; set; } - - public IEnumerable? FeatureProcessors { get; set; } - - public double? Gamma { get; set; } - - public double? Lambda { get; set; } - - public string? LossFunction { get; set; } - - public double? LossFunctionParameter { get; set; } - - public int? MaxOptimizationRoundsPerHyperparameter { get; set; } - - public int? MaxTrees { get; set; } - - public int? NumTopFeatureImportanceValues { get; set; } - - public Elastic.Clients.Elasticsearch.Field? PredictionFieldName { get; set; } - - public double? RandomizeSeed { get; set; } - - public int? SoftTreeDepthLimit { get; set; } - - public double? SoftTreeDepthTolerance { get; set; } - - public Elastic.Clients.Elasticsearch.Percentage? TrainingPercent { get; set; } - } - - public sealed partial class DataframeAnalysisRegressionDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalysisRegressionDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalysisRegressionDescriptor() : base() - { - } - - private IEnumerable? FeatureProcessorsValue { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - - private Action> FeatureProcessorsDescriptorAction { get; set; } - - private Action>[] FeatureProcessorsDescriptorActions { get; set; } - - private double? AlphaValue { get; set; } - - private string DependentVariableValue { get; set; } - - private double? DownsampleFactorValue { get; set; } - - private bool? EarlyStoppingEnabledValue { get; set; } - - private double? EtaValue { get; set; } - - private double? EtaGrowthRatePerTreeValue { get; set; } - - private double? FeatureBagFractionValue { get; set; } - - private double? GammaValue { get; set; } - - private double? LambdaValue { get; set; } - - private string? LossFunctionValue { get; set; } - - private double? LossFunctionParameterValue { get; set; } - - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - - private int? MaxTreesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictionFieldNameValue { get; set; } - - private double? RandomizeSeedValue { get; set; } - - private int? SoftTreeDepthLimitValue { get; set; } - - private double? SoftTreeDepthToleranceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Percentage? TrainingPercentValue { get; set; } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(IEnumerable? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Action> configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(params Action>[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisRegressionDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - public DataframeAnalysisRegressionDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - public DataframeAnalysisRegressionDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - public DataframeAnalysisRegressionDescriptor LossFunction(string? lossFunction) - { - LossFunctionValue = lossFunction; - return Self; - } - - public DataframeAnalysisRegressionDescriptor LossFunctionParameter(double? lossFunctionParameter) - { - LossFunctionParameterValue = lossFunctionParameter; - return Self; - } - - public DataframeAnalysisRegressionDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - public DataframeAnalysisRegressionDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - public DataframeAnalysisRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisRegressionDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - public DataframeAnalysisRegressionDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - public DataframeAnalysisRegressionDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - public DataframeAnalysisRegressionDescriptor TrainingPercent(Elastic.Clients.Elasticsearch.Percentage? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (!string.IsNullOrEmpty(LossFunctionValue)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(LossFunctionValue); - } - - if (LossFunctionParameterValue.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(LossFunctionParameterValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, TrainingPercentValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalysisRegressionDescriptor : SerializableDescriptorBase - { - internal DataframeAnalysisRegressionDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalysisRegressionDescriptor() : base() - { - } - - private IEnumerable? FeatureProcessorsValue { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - - private Action FeatureProcessorsDescriptorAction { get; set; } - - private Action[] FeatureProcessorsDescriptorActions { get; set; } - - private double? AlphaValue { get; set; } - - private string DependentVariableValue { get; set; } - - private double? DownsampleFactorValue { get; set; } - - private bool? EarlyStoppingEnabledValue { get; set; } - - private double? EtaValue { get; set; } - - private double? EtaGrowthRatePerTreeValue { get; set; } - - private double? FeatureBagFractionValue { get; set; } - - private double? GammaValue { get; set; } - - private double? LambdaValue { get; set; } - - private string? LossFunctionValue { get; set; } - - private double? LossFunctionParameterValue { get; set; } - - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - - private int? MaxTreesValue { get; set; } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictionFieldNameValue { get; set; } - - private double? RandomizeSeedValue { get; set; } - - private int? SoftTreeDepthLimitValue { get; set; } - - private double? SoftTreeDepthToleranceValue { get; set; } - - private Elastic.Clients.Elasticsearch.Percentage? TrainingPercentValue { get; set; } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(IEnumerable? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Action configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(params Action[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisRegressionDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - public DataframeAnalysisRegressionDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - public DataframeAnalysisRegressionDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - public DataframeAnalysisRegressionDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - public DataframeAnalysisRegressionDescriptor LossFunction(string? lossFunction) - { - LossFunctionValue = lossFunction; - return Self; - } - - public DataframeAnalysisRegressionDescriptor LossFunctionParameter(double? lossFunctionParameter) - { - LossFunctionParameterValue = lossFunctionParameter; - return Self; - } - - public DataframeAnalysisRegressionDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - public DataframeAnalysisRegressionDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - public DataframeAnalysisRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - public DataframeAnalysisRegressionDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - public DataframeAnalysisRegressionDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - public DataframeAnalysisRegressionDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - public DataframeAnalysisRegressionDescriptor TrainingPercent(Elastic.Clients.Elasticsearch.Percentage? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (!string.IsNullOrEmpty(LossFunctionValue)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(LossFunctionValue); - } - - if (LossFunctionParameterValue.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(LossFunctionParameterValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue is not null) - { - writer.WritePropertyName("training_percent"); - JsonSerializer.Serialize(writer, TrainingPercentValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalytics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalytics.g.cs deleted file mode 100644 index 66dd8a1f3cc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalytics.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalytics - { - [JsonInclude] - [JsonPropertyName("assignment_explanation")] - public string? AssignmentExplanation { get; init; } - - [JsonInclude] - [JsonPropertyName("data_counts")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsStatsDataCounts DataCounts { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_usage")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsStatsMemoryUsage MemoryUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.NodeAttributes? Node { get; init; } - - [JsonInclude] - [JsonPropertyName("progress")] - public IReadOnlyCollection Progress { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Ml.DataframeState State { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsAuthorization.g.cs deleted file mode 100644 index 1318c2a58b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsAuthorization.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsAuthorization - { - [JsonInclude] - [JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Ml.ApiKeyAuthorization? ApiKey { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsDestination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsDestination.g.cs deleted file mode 100644 index cc08b0b9115..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsDestination.g.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsDestination - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } - - [JsonInclude] - [JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Field? ResultsField { get; set; } - } - - public sealed partial class DataframeAnalyticsDestinationDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalyticsDestinationDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalyticsDestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - public DataframeAnalyticsDestinationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public DataframeAnalyticsDestinationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalyticsDestinationDescriptor : SerializableDescriptorBase - { - internal DataframeAnalyticsDestinationDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalyticsDestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? ResultsFieldValue { get; set; } - - public DataframeAnalyticsDestinationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) - { - IndexValue = index; - return Self; - } - - public DataframeAnalyticsDestinationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsFieldSelection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsFieldSelection.g.cs deleted file mode 100644 index 1582137fe15..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsFieldSelection.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsFieldSelection - { - [JsonInclude] - [JsonPropertyName("feature_type")] - public string? FeatureType { get; init; } - - [JsonInclude] - [JsonPropertyName("is_included")] - public bool IsIncluded { get; init; } - - [JsonInclude] - [JsonPropertyName("is_required")] - public bool IsRequired { get; init; } - - [JsonInclude] - [JsonPropertyName("mapping_types")] - public IReadOnlyCollection MappingTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string? Reason { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsMemoryEstimation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsMemoryEstimation.g.cs deleted file mode 100644 index ce1dc681045..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsMemoryEstimation.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsMemoryEstimation - { - [JsonInclude] - [JsonPropertyName("expected_memory_with_disk")] - public string ExpectedMemoryWithDisk { get; init; } - - [JsonInclude] - [JsonPropertyName("expected_memory_without_disk")] - public string ExpectedMemoryWithoutDisk { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSource.g.cs deleted file mode 100644 index ff44a219712..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSource.g.cs +++ /dev/null @@ -1,305 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsSource - { - [JsonInclude] - [JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? Source { get; set; } - - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Indices Index { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; set; } - } - - public sealed partial class DataframeAnalyticsSourceDescriptor : SerializableDescriptorBase> - { - internal DataframeAnalyticsSourceDescriptor(Action> configure) => configure.Invoke(this); - public DataframeAnalyticsSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? SourceValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndexValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) - { - IndexValue = index; - return Self; - } - - public DataframeAnalyticsSourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeAnalyticsSourceDescriptor : SerializableDescriptorBase - { - internal DataframeAnalyticsSourceDescriptor(Action configure) => configure.Invoke(this); - public DataframeAnalyticsSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? SourceValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndexValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) - { - IndexValue = index; - return Self; - } - - public DataframeAnalyticsSourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsDataCounts.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsDataCounts.g.cs deleted file mode 100644 index e4cfb19c3dc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsDataCounts.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsStatsDataCounts - { - [JsonInclude] - [JsonPropertyName("skipped_docs_count")] - public int SkippedDocsCount { get; init; } - - [JsonInclude] - [JsonPropertyName("test_docs_count")] - public int TestDocsCount { get; init; } - - [JsonInclude] - [JsonPropertyName("training_docs_count")] - public int TrainingDocsCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsMemoryUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsMemoryUsage.g.cs deleted file mode 100644 index 9032afafe07..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsMemoryUsage.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsStatsMemoryUsage - { - [JsonInclude] - [JsonPropertyName("memory_reestimate_bytes")] - public long? MemoryReestimateBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("peak_usage_bytes")] - public long PeakUsageBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public string Status { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsProgress.g.cs deleted file mode 100644 index 9334a4e92bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsStatsProgress.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsStatsProgress - { - [JsonInclude] - [JsonPropertyName("phase")] - public string Phase { get; init; } - - [JsonInclude] - [JsonPropertyName("progress_percent")] - public int ProgressPercent { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSummary.g.cs deleted file mode 100644 index 591a4447033..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeAnalyticsSummary.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeAnalyticsSummary - { - [JsonInclude] - [JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer Analysis { get; init; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long? CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsDestination Dest { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; init; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource Source { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string? Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummary.g.cs deleted file mode 100644 index 3e2cdc003e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummary.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeClassificationSummary - { - [JsonInclude] - [JsonPropertyName("accuracy")] - public Elastic.Clients.Elasticsearch.Ml.DataframeClassificationSummaryAccuracy? Accuracy { get; init; } - - [JsonInclude] - [JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationSummaryAucRoc? AucRoc { get; init; } - - [JsonInclude] - [JsonPropertyName("multiclass_confusion_matrix")] - public Elastic.Clients.Elasticsearch.Ml.DataframeClassificationSummaryMulticlassConfusionMatrix? MulticlassConfusionMatrix { get; init; } - - [JsonInclude] - [JsonPropertyName("precision")] - public Elastic.Clients.Elasticsearch.Ml.DataframeClassificationSummaryPrecision? Precision { get; init; } - - [JsonInclude] - [JsonPropertyName("recall")] - public Elastic.Clients.Elasticsearch.Ml.DataframeClassificationSummaryRecall? Recall { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryAccuracy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryAccuracy.g.cs deleted file mode 100644 index b8d71f89421..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryAccuracy.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeClassificationSummaryAccuracy - { - [JsonInclude] - [JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - - [JsonInclude] - [JsonPropertyName("overall_accuracy")] - public double OverallAccuracy { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs deleted file mode 100644 index 321e082cb5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeClassificationSummaryMulticlassConfusionMatrix - { - [JsonInclude] - [JsonPropertyName("confusion_matrix")] - public IReadOnlyCollection ConfusionMatrix { get; init; } - - [JsonInclude] - [JsonPropertyName("other_actual_class_count")] - public int OtherActualClassCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryPrecision.g.cs deleted file mode 100644 index 6277aba401d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryPrecision.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeClassificationSummaryPrecision - { - [JsonInclude] - [JsonPropertyName("avg_precision")] - public double AvgPrecision { get; init; } - - [JsonInclude] - [JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryRecall.g.cs deleted file mode 100644 index 671c9a7a2a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeClassificationSummaryRecall.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeClassificationSummaryRecall - { - [JsonInclude] - [JsonPropertyName("avg_recall")] - public double AvgRecall { get; init; } - - [JsonInclude] - [JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClass.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClass.g.cs deleted file mode 100644 index c8e79372020..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClass.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationClass - { - [JsonInclude] - [JsonPropertyName("class_name")] - public string ClassName { get; init; } - - [JsonInclude] - [JsonPropertyName("value")] - public double Value { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassification.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassification.g.cs deleted file mode 100644 index 671048b80c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassification.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationClassification - { - [JsonInclude] - [JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Field ActualField { get; set; } - - [JsonInclude] - [JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetrics? Metrics { get; set; } - - [JsonInclude] - [JsonPropertyName("predicted_field")] - public Elastic.Clients.Elasticsearch.Field? PredictedField { get; set; } - - [JsonInclude] - [JsonPropertyName("top_classes_field")] - public Elastic.Clients.Elasticsearch.Field? TopClassesField { get; set; } - } - - public sealed partial class DataframeEvaluationClassificationDescriptor : SerializableDescriptorBase> - { - internal DataframeEvaluationClassificationDescriptor(Action> configure) => configure.Invoke(this); - public DataframeEvaluationClassificationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetrics? MetricsValue { get; set; } - - private DataframeEvaluationClassificationMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictedFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TopClassesFieldValue { get; set; } - - public DataframeEvaluationClassificationDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(DataframeEvaluationClassificationMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationClassificationDescriptor PredictedField(Elastic.Clients.Elasticsearch.Field? predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor TopClassesField(Elastic.Clients.Elasticsearch.Field? topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationClassificationMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - if (PredictedFieldValue is not null) - { - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - } - - if (TopClassesFieldValue is not null) - { - writer.WritePropertyName("top_classes_field"); - JsonSerializer.Serialize(writer, TopClassesFieldValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeEvaluationClassificationDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationClassificationDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationClassificationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetrics? MetricsValue { get; set; } - - private DataframeEvaluationClassificationMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PredictedFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TopClassesFieldValue { get; set; } - - public DataframeEvaluationClassificationDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(DataframeEvaluationClassificationMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationClassificationDescriptor PredictedField(Elastic.Clients.Elasticsearch.Field? predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor TopClassesField(Elastic.Clients.Elasticsearch.Field? topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationClassificationMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - if (PredictedFieldValue is not null) - { - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - } - - if (TopClassesFieldValue is not null) - { - writer.WritePropertyName("top_classes_field"); - JsonSerializer.Serialize(writer, TopClassesFieldValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetrics.g.cs deleted file mode 100644 index 07a8f32ba62..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetrics.g.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationClassificationMetrics - { - [JsonInclude] - [JsonPropertyName("accuracy")] - public Dictionary? Accuracy { get; set; } - - [JsonInclude] - [JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? AucRoc { get; set; } - - [JsonInclude] - [JsonPropertyName("multiclass_confusion_matrix")] - public Dictionary? MulticlassConfusionMatrix { get; set; } - - [JsonInclude] - [JsonPropertyName("precision")] - public Dictionary? Precision { get; set; } - - [JsonInclude] - [JsonPropertyName("recall")] - public Dictionary? Recall { get; set; } - } - - public sealed partial class DataframeEvaluationClassificationMetricsDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationClassificationMetricsDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationClassificationMetricsDescriptor() : base() - { - } - - private Dictionary? AccuracyValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? AucRocValue { get; set; } - - private DataframeEvaluationClassificationMetricsAucRocDescriptor AucRocDescriptor { get; set; } - - private Action AucRocDescriptorAction { get; set; } - - private Dictionary? MulticlassConfusionMatrixValue { get; set; } - - private Dictionary? PrecisionValue { get; set; } - - private Dictionary? RecallValue { get; set; } - - public DataframeEvaluationClassificationMetricsDescriptor Accuracy(Func, FluentDictionary> selector) - { - AccuracyValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? aucRoc) - { - AucRocDescriptor = null; - AucRocDescriptorAction = null; - AucRocValue = aucRoc; - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(DataframeEvaluationClassificationMetricsAucRocDescriptor descriptor) - { - AucRocValue = null; - AucRocDescriptorAction = null; - AucRocDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(Action configure) - { - AucRocValue = null; - AucRocDescriptor = null; - AucRocDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor MulticlassConfusionMatrix(Func, FluentDictionary> selector) - { - MulticlassConfusionMatrixValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor Precision(Func, FluentDictionary> selector) - { - PrecisionValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor Recall(Func, FluentDictionary> selector) - { - RecallValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AccuracyValue is not null) - { - writer.WritePropertyName("accuracy"); - JsonSerializer.Serialize(writer, AccuracyValue, options); - } - - if (AucRocDescriptor is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocDescriptor, options); - } - else if (AucRocDescriptorAction is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, new DataframeEvaluationClassificationMetricsAucRocDescriptor(AucRocDescriptorAction), options); - } - else if (AucRocValue is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocValue, options); - } - - if (MulticlassConfusionMatrixValue is not null) - { - writer.WritePropertyName("multiclass_confusion_matrix"); - JsonSerializer.Serialize(writer, MulticlassConfusionMatrixValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (RecallValue is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetricsAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetricsAucRoc.g.cs deleted file mode 100644 index df800e27ae7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationClassificationMetricsAucRoc.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationClassificationMetricsAucRoc - { - [JsonInclude] - [JsonPropertyName("class_name")] - public Elastic.Clients.Elasticsearch.Name? ClassName { get; set; } - - [JsonInclude] - [JsonPropertyName("include_curve")] - public bool? IncludeCurve { get; set; } - } - - public sealed partial class DataframeEvaluationClassificationMetricsAucRocDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationClassificationMetricsAucRocDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationClassificationMetricsAucRocDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name? ClassNameValue { get; set; } - - private bool? IncludeCurveValue { get; set; } - - public DataframeEvaluationClassificationMetricsAucRocDescriptor ClassName(Elastic.Clients.Elasticsearch.Name? className) - { - ClassNameValue = className; - return Self; - } - - public DataframeEvaluationClassificationMetricsAucRocDescriptor IncludeCurve(bool? includeCurve = true) - { - IncludeCurveValue = includeCurve; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassNameValue is not null) - { - writer.WritePropertyName("class_name"); - JsonSerializer.Serialize(writer, ClassNameValue, options); - } - - if (IncludeCurveValue.HasValue) - { - writer.WritePropertyName("include_curve"); - writer.WriteBooleanValue(IncludeCurveValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationContainer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationContainer.g.cs deleted file mode 100644 index c70805ef301..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationContainer.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - [JsonConverter(typeof(DataframeEvaluationContainerConverter))] - public sealed partial class DataframeEvaluationContainer - { - internal DataframeEvaluationContainer(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static DataframeEvaluationContainer Classification(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassification dataframeEvaluationClassification) => new DataframeEvaluationContainer("classification", dataframeEvaluationClassification); - public static DataframeEvaluationContainer OutlierDetection(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetection dataframeEvaluationOutlierDetection) => new DataframeEvaluationContainer("outlier_detection", dataframeEvaluationOutlierDetection); - public static DataframeEvaluationContainer Regression(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegression dataframeEvaluationRegression) => new DataframeEvaluationContainer("regression", dataframeEvaluationRegression); - } - - internal sealed class DataframeEvaluationContainerConverter : JsonConverter - { - public override DataframeEvaluationContainer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeEvaluationContainer(propertyName, variant); - } - - if (propertyName == "outlier_detection") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeEvaluationContainer(propertyName, variant); - } - - if (propertyName == "regression") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new DataframeEvaluationContainer(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, DataframeEvaluationContainer value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassification)value.Variant, options); - break; - case "outlier_detection": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetection)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegression)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeEvaluationContainerDescriptor : SerializableDescriptorBase> - { - internal DataframeEvaluationContainerDescriptor(Action> configure) => configure.Invoke(this); - public DataframeEvaluationContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeEvaluationContainerDescriptor. Only a single DataframeEvaluationContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeEvaluationContainerDescriptor. Only a single DataframeEvaluationContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(DataframeEvaluationClassification variant) => Set(variant, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void OutlierDetection(DataframeEvaluationOutlierDetection variant) => Set(variant, "outlier_detection"); - public void OutlierDetection(Action> configure) => Set(configure, "outlier_detection"); - public void Regression(DataframeEvaluationRegression variant) => Set(variant, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeEvaluationContainerDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationContainerDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the DataframeEvaluationContainerDescriptor. Only a single DataframeEvaluationContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the DataframeEvaluationContainerDescriptor. Only a single DataframeEvaluationContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Classification(DataframeEvaluationClassification variant) => Set(variant, "classification"); - public void Classification(Action configure) => Set(configure, "classification"); - public void Classification(Action> configure) => Set(configure, "classification"); - public void OutlierDetection(DataframeEvaluationOutlierDetection variant) => Set(variant, "outlier_detection"); - public void OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public void OutlierDetection(Action> configure) => Set(configure, "outlier_detection"); - public void Regression(DataframeEvaluationRegression variant) => Set(variant, "regression"); - public void Regression(Action configure) => Set(configure, "regression"); - public void Regression(Action> configure) => Set(configure, "regression"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetection.g.cs deleted file mode 100644 index 46a175b944f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetection.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationOutlierDetection - { - [JsonInclude] - [JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Field ActualField { get; set; } - - [JsonInclude] - [JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetectionMetrics? Metrics { get; set; } - - [JsonInclude] - [JsonPropertyName("predicted_probability_field")] - public Elastic.Clients.Elasticsearch.Field PredictedProbabilityField { get; set; } - } - - public sealed partial class DataframeEvaluationOutlierDetectionDescriptor : SerializableDescriptorBase> - { - internal DataframeEvaluationOutlierDetectionDescriptor(Action> configure) => configure.Invoke(this); - public DataframeEvaluationOutlierDetectionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetectionMetrics? MetricsValue { get; set; } - - private DataframeEvaluationOutlierDetectionMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field PredictedProbabilityFieldValue { get; set; } - - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetectionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(DataframeEvaluationOutlierDetectionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Elastic.Clients.Elasticsearch.Field predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationOutlierDetectionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_probability_field"); - JsonSerializer.Serialize(writer, PredictedProbabilityFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeEvaluationOutlierDetectionDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationOutlierDetectionDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationOutlierDetectionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetectionMetrics? MetricsValue { get; set; } - - private DataframeEvaluationOutlierDetectionMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field PredictedProbabilityFieldValue { get; set; } - - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationOutlierDetectionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(DataframeEvaluationOutlierDetectionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Elastic.Clients.Elasticsearch.Field predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationOutlierDetectionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_probability_field"); - JsonSerializer.Serialize(writer, PredictedProbabilityFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetectionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetectionMetrics.g.cs deleted file mode 100644 index 2ba68d9b878..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationOutlierDetectionMetrics.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationOutlierDetectionMetrics - { - [JsonInclude] - [JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? AucRoc { get; set; } - - [JsonInclude] - [JsonPropertyName("confusion_matrix")] - public Dictionary? ConfusionMatrix { get; set; } - - [JsonInclude] - [JsonPropertyName("precision")] - public Dictionary? Precision { get; set; } - - [JsonInclude] - [JsonPropertyName("recall")] - public Dictionary? Recall { get; set; } - } - - public sealed partial class DataframeEvaluationOutlierDetectionMetricsDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationOutlierDetectionMetricsDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationOutlierDetectionMetricsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? AucRocValue { get; set; } - - private DataframeEvaluationClassificationMetricsAucRocDescriptor AucRocDescriptor { get; set; } - - private Action AucRocDescriptorAction { get; set; } - - private Dictionary? ConfusionMatrixValue { get; set; } - - private Dictionary? PrecisionValue { get; set; } - - private Dictionary? RecallValue { get; set; } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationClassificationMetricsAucRoc? aucRoc) - { - AucRocDescriptor = null; - AucRocDescriptorAction = null; - AucRocValue = aucRoc; - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(DataframeEvaluationClassificationMetricsAucRocDescriptor descriptor) - { - AucRocValue = null; - AucRocDescriptorAction = null; - AucRocDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(Action configure) - { - AucRocValue = null; - AucRocDescriptor = null; - AucRocDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor ConfusionMatrix(Func, FluentDictionary> selector) - { - ConfusionMatrixValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor Precision(Func, FluentDictionary> selector) - { - PrecisionValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor Recall(Func, FluentDictionary> selector) - { - RecallValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AucRocDescriptor is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocDescriptor, options); - } - else if (AucRocDescriptorAction is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, new DataframeEvaluationClassificationMetricsAucRocDescriptor(AucRocDescriptorAction), options); - } - else if (AucRocValue is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocValue, options); - } - - if (ConfusionMatrixValue is not null) - { - writer.WritePropertyName("confusion_matrix"); - JsonSerializer.Serialize(writer, ConfusionMatrixValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (RecallValue is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegression.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegression.g.cs deleted file mode 100644 index 231b342356f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegression.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationRegression - { - [JsonInclude] - [JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Field ActualField { get; set; } - - [JsonInclude] - [JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetrics? Metrics { get; set; } - - [JsonInclude] - [JsonPropertyName("predicted_field")] - public Elastic.Clients.Elasticsearch.Field PredictedField { get; set; } - } - - public sealed partial class DataframeEvaluationRegressionDescriptor : SerializableDescriptorBase> - { - internal DataframeEvaluationRegressionDescriptor(Action> configure) => configure.Invoke(this); - public DataframeEvaluationRegressionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetrics? MetricsValue { get; set; } - - private DataframeEvaluationRegressionMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field PredictedFieldValue { get; set; } - - public DataframeEvaluationRegressionDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(DataframeEvaluationRegressionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationRegressionDescriptor PredictedField(Elastic.Clients.Elasticsearch.Field predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationRegressionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class DataframeEvaluationRegressionDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationRegressionDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationRegressionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field ActualFieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetrics? MetricsValue { get; set; } - - private DataframeEvaluationRegressionMetricsDescriptor MetricsDescriptor { get; set; } - - private Action MetricsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Field PredictedFieldValue { get; set; } - - public DataframeEvaluationRegressionDescriptor ActualField(Elastic.Clients.Elasticsearch.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(DataframeEvaluationRegressionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationRegressionDescriptor PredictedField(Elastic.Clients.Elasticsearch.Field predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new DataframeEvaluationRegressionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetrics.g.cs deleted file mode 100644 index 583c310acb7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetrics.g.cs +++ /dev/null @@ -1,179 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationRegressionMetrics - { - [JsonInclude] - [JsonPropertyName("huber")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsHuber? Huber { get; set; } - - [JsonInclude] - [JsonPropertyName("mse")] - public Dictionary? Mse { get; set; } - - [JsonInclude] - [JsonPropertyName("msle")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsMsle? Msle { get; set; } - - [JsonInclude] - [JsonPropertyName("r_squared")] - public Dictionary? RSquared { get; set; } - } - - public sealed partial class DataframeEvaluationRegressionMetricsDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationRegressionMetricsDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationRegressionMetricsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsHuber? HuberValue { get; set; } - - private DataframeEvaluationRegressionMetricsHuberDescriptor HuberDescriptor { get; set; } - - private Action HuberDescriptorAction { get; set; } - - private Dictionary? MseValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsMsle? MsleValue { get; set; } - - private DataframeEvaluationRegressionMetricsMsleDescriptor MsleDescriptor { get; set; } - - private Action MsleDescriptorAction { get; set; } - - private Dictionary? RSquaredValue { get; set; } - - public DataframeEvaluationRegressionMetricsDescriptor Huber(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsHuber? huber) - { - HuberDescriptor = null; - HuberDescriptorAction = null; - HuberValue = huber; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Huber(DataframeEvaluationRegressionMetricsHuberDescriptor descriptor) - { - HuberValue = null; - HuberDescriptorAction = null; - HuberDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Huber(Action configure) - { - HuberValue = null; - HuberDescriptor = null; - HuberDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Mse(Func, FluentDictionary> selector) - { - MseValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Msle(Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationRegressionMetricsMsle? msle) - { - MsleDescriptor = null; - MsleDescriptorAction = null; - MsleValue = msle; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Msle(DataframeEvaluationRegressionMetricsMsleDescriptor descriptor) - { - MsleValue = null; - MsleDescriptorAction = null; - MsleDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Msle(Action configure) - { - MsleValue = null; - MsleDescriptor = null; - MsleDescriptorAction = configure; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor RSquared(Func, FluentDictionary> selector) - { - RSquaredValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (HuberDescriptor is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, HuberDescriptor, options); - } - else if (HuberDescriptorAction is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, new DataframeEvaluationRegressionMetricsHuberDescriptor(HuberDescriptorAction), options); - } - else if (HuberValue is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, HuberValue, options); - } - - if (MseValue is not null) - { - writer.WritePropertyName("mse"); - JsonSerializer.Serialize(writer, MseValue, options); - } - - if (MsleDescriptor is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, MsleDescriptor, options); - } - else if (MsleDescriptorAction is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, new DataframeEvaluationRegressionMetricsMsleDescriptor(MsleDescriptorAction), options); - } - else if (MsleValue is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, MsleValue, options); - } - - if (RSquaredValue is not null) - { - writer.WritePropertyName("r_squared"); - JsonSerializer.Serialize(writer, RSquaredValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsHuber.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsHuber.g.cs deleted file mode 100644 index 7e161b28f17..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsHuber.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationRegressionMetricsHuber - { - [JsonInclude] - [JsonPropertyName("delta")] - public double? Delta { get; set; } - } - - public sealed partial class DataframeEvaluationRegressionMetricsHuberDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationRegressionMetricsHuberDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationRegressionMetricsHuberDescriptor() : base() - { - } - - private double? DeltaValue { get; set; } - - public DataframeEvaluationRegressionMetricsHuberDescriptor Delta(double? delta) - { - DeltaValue = delta; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeltaValue.HasValue) - { - writer.WritePropertyName("delta"); - writer.WriteNumberValue(DeltaValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsMsle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsMsle.g.cs deleted file mode 100644 index a7e6dd28abd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationRegressionMetricsMsle.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationRegressionMetricsMsle - { - [JsonInclude] - [JsonPropertyName("offset")] - public double? Offset { get; set; } - } - - public sealed partial class DataframeEvaluationRegressionMetricsMsleDescriptor : SerializableDescriptorBase - { - internal DataframeEvaluationRegressionMetricsMsleDescriptor(Action configure) => configure.Invoke(this); - public DataframeEvaluationRegressionMetricsMsleDescriptor() : base() - { - } - - private double? OffsetValue { get; set; } - - public DataframeEvaluationRegressionMetricsMsleDescriptor Offset(double? offset) - { - OffsetValue = offset; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OffsetValue.HasValue) - { - writer.WritePropertyName("offset"); - writer.WriteNumberValue(OffsetValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRoc.g.cs deleted file mode 100644 index 64bb984c261..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRoc.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationSummaryAucRoc - { - [JsonInclude] - [JsonPropertyName("curve")] - public IReadOnlyCollection? Curve { get; init; } - - [JsonInclude] - [JsonPropertyName("value")] - public double Value { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRocCurveItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRocCurveItem.g.cs deleted file mode 100644 index 2c9345e9dd0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationSummaryAucRocCurveItem.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationSummaryAucRocCurveItem - { - [JsonInclude] - [JsonPropertyName("fpr")] - public double Fpr { get; init; } - - [JsonInclude] - [JsonPropertyName("threshold")] - public double Threshold { get; init; } - - [JsonInclude] - [JsonPropertyName("tpr")] - public double Tpr { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationValue.g.cs deleted file mode 100644 index ea5d28d0f30..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeEvaluationValue.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeEvaluationValue - { - [JsonInclude] - [JsonPropertyName("value")] - public double Value { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeOutlierDetectionSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeOutlierDetectionSummary.g.cs deleted file mode 100644 index 923c3ed571a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeOutlierDetectionSummary.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeOutlierDetectionSummary - { - [JsonInclude] - [JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationSummaryAucRoc? AucRoc { get; init; } - - [JsonInclude] - [JsonPropertyName("confusion_matrix")] - public Dictionary? ConfusionMatrix { get; init; } - - [JsonInclude] - [JsonPropertyName("precision")] - public Dictionary? Precision { get; init; } - - [JsonInclude] - [JsonPropertyName("recall")] - public Dictionary? Recall { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframePreviewConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframePreviewConfig.g.cs deleted file mode 100644 index a25b9f33dba..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframePreviewConfig.g.cs +++ /dev/null @@ -1,409 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframePreviewConfig - { - [JsonInclude] - [JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer Analysis { get; set; } - - [JsonInclude] - [JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - - [JsonInclude] - [JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - [JsonInclude] - [JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource Source { get; set; } - } - - public sealed partial class DataframePreviewConfigDescriptor : SerializableDescriptorBase> - { - internal DataframePreviewConfigDescriptor(Action> configure) => configure.Invoke(this); - public DataframePreviewConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action> AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action> SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframePreviewConfigDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public DataframePreviewConfigDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DataframePreviewConfigDescriptor : SerializableDescriptorBase - { - internal DataframePreviewConfigDescriptor(Action configure) => configure.Invoke(this); - public DataframePreviewConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer AnalysisValue { get; set; } - - private DataframeAnalysisContainerDescriptor AnalysisDescriptor { get; set; } - - private Action AnalysisDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource SourceValue { get; set; } - - private DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - - private Action SourceDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - - private DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - - private Action AnalyzedFieldsDescriptorAction { get; set; } - - private int? MaxNumThreadsValue { get; set; } - - private string? ModelMemoryLimitValue { get; set; } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisContainer analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(DataframeAnalysisContainerDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Ml.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframePreviewConfigDescriptor Source(DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Ml.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public DataframePreviewConfigDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new DataframeAnalysisContainerDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeRegressionSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeRegressionSummary.g.cs deleted file mode 100644 index dd59b4c9a6e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DataframeRegressionSummary.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DataframeRegressionSummary - { - [JsonInclude] - [JsonPropertyName("huber")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationValue? Huber { get; init; } - - [JsonInclude] - [JsonPropertyName("mse")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationValue? Mse { get; init; } - - [JsonInclude] - [JsonPropertyName("msle")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationValue? Msle { get; init; } - - [JsonInclude] - [JsonPropertyName("r_squared")] - public Elastic.Clients.Elasticsearch.Ml.DataframeEvaluationValue? RSquared { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Defaults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Defaults.g.cs deleted file mode 100644 index 86dcb4f039b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Defaults.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Defaults - { - [JsonInclude] - [JsonPropertyName("anomaly_detectors")] - public Elastic.Clients.Elasticsearch.Ml.AnomalyDetectors AnomalyDetectors { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeeds")] - public Elastic.Clients.Elasticsearch.Ml.Datafeeds Datafeeds { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Definition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Definition.g.cs deleted file mode 100644 index 5353b2e6cf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Definition.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Definition - { - [JsonInclude] - [JsonPropertyName("preprocessors")] - public IEnumerable? Preprocessors { get; set; } - - [JsonInclude] - [JsonPropertyName("trained_model")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModel TrainedModel { get; set; } - } - - public sealed partial class DefinitionDescriptor : SerializableDescriptorBase> - { - internal DefinitionDescriptor(Action> configure) => configure.Invoke(this); - public DefinitionDescriptor() : base() - { - } - - private IEnumerable? PreprocessorsValue { get; set; } - - private PreprocessorDescriptor PreprocessorsDescriptor { get; set; } - - private Action> PreprocessorsDescriptorAction { get; set; } - - private Action>[] PreprocessorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModel TrainedModelValue { get; set; } - - private TrainedModelDescriptor TrainedModelDescriptor { get; set; } - - private Action TrainedModelDescriptorAction { get; set; } - - public DefinitionDescriptor Preprocessors(IEnumerable? preprocessors) - { - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsValue = preprocessors; - return Self; - } - - public DefinitionDescriptor Preprocessors(PreprocessorDescriptor descriptor) - { - PreprocessorsValue = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor Preprocessors(Action> configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptorAction = configure; - return Self; - } - - public DefinitionDescriptor Preprocessors(params Action>[] configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = configure; - return Self; - } - - public DefinitionDescriptor TrainedModel(Elastic.Clients.Elasticsearch.Ml.TrainedModel trainedModel) - { - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = null; - TrainedModelValue = trainedModel; - return Self; - } - - public DefinitionDescriptor TrainedModel(TrainedModelDescriptor descriptor) - { - TrainedModelValue = null; - TrainedModelDescriptorAction = null; - TrainedModelDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor TrainedModel(Action configure) - { - TrainedModelValue = null; - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PreprocessorsDescriptor is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, PreprocessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorAction is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new PreprocessorDescriptor(PreprocessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorActions is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - foreach (var action in PreprocessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new PreprocessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (PreprocessorsValue is not null) - { - writer.WritePropertyName("preprocessors"); - JsonSerializer.Serialize(writer, PreprocessorsValue, options); - } - - if (TrainedModelDescriptor is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelDescriptor, options); - } - else if (TrainedModelDescriptorAction is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, new TrainedModelDescriptor(TrainedModelDescriptorAction), options); - } - else - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DefinitionDescriptor : SerializableDescriptorBase - { - internal DefinitionDescriptor(Action configure) => configure.Invoke(this); - public DefinitionDescriptor() : base() - { - } - - private IEnumerable? PreprocessorsValue { get; set; } - - private PreprocessorDescriptor PreprocessorsDescriptor { get; set; } - - private Action PreprocessorsDescriptorAction { get; set; } - - private Action[] PreprocessorsDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModel TrainedModelValue { get; set; } - - private TrainedModelDescriptor TrainedModelDescriptor { get; set; } - - private Action TrainedModelDescriptorAction { get; set; } - - public DefinitionDescriptor Preprocessors(IEnumerable? preprocessors) - { - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsValue = preprocessors; - return Self; - } - - public DefinitionDescriptor Preprocessors(PreprocessorDescriptor descriptor) - { - PreprocessorsValue = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor Preprocessors(Action configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptorAction = configure; - return Self; - } - - public DefinitionDescriptor Preprocessors(params Action[] configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = configure; - return Self; - } - - public DefinitionDescriptor TrainedModel(Elastic.Clients.Elasticsearch.Ml.TrainedModel trainedModel) - { - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = null; - TrainedModelValue = trainedModel; - return Self; - } - - public DefinitionDescriptor TrainedModel(TrainedModelDescriptor descriptor) - { - TrainedModelValue = null; - TrainedModelDescriptorAction = null; - TrainedModelDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor TrainedModel(Action configure) - { - TrainedModelValue = null; - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PreprocessorsDescriptor is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, PreprocessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorAction is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new PreprocessorDescriptor(PreprocessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorActions is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - foreach (var action in PreprocessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new PreprocessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (PreprocessorsValue is not null) - { - writer.WritePropertyName("preprocessors"); - JsonSerializer.Serialize(writer, PreprocessorsValue, options); - } - - if (TrainedModelDescriptor is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelDescriptor, options); - } - else if (TrainedModelDescriptorAction is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, new TrainedModelDescriptor(TrainedModelDescriptorAction), options); - } - else - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DelayedDataCheckConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DelayedDataCheckConfig.g.cs deleted file mode 100644 index c90f0d69102..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DelayedDataCheckConfig.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DelayedDataCheckConfig - { - [JsonInclude] - [JsonPropertyName("check_window")] - public Elastic.Clients.Elasticsearch.Duration? CheckWindow { get; set; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; set; } - } - - public sealed partial class DelayedDataCheckConfigDescriptor : SerializableDescriptorBase - { - internal DelayedDataCheckConfigDescriptor(Action configure) => configure.Invoke(this); - public DelayedDataCheckConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Duration? CheckWindowValue { get; set; } - - private bool EnabledValue { get; set; } - - public DelayedDataCheckConfigDescriptor CheckWindow(Elastic.Clients.Elasticsearch.Duration? checkWindow) - { - CheckWindowValue = checkWindow; - return Self; - } - - public DelayedDataCheckConfigDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CheckWindowValue is not null) - { - writer.WritePropertyName("check_window"); - JsonSerializer.Serialize(writer, CheckWindowValue, options); - } - - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectionRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectionRule.g.cs deleted file mode 100644 index c72897184a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectionRule.g.cs +++ /dev/null @@ -1,158 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DetectionRule - { - [JsonInclude] - [JsonPropertyName("actions")] - public IEnumerable? Actions { get; set; } - - [JsonInclude] - [JsonPropertyName("conditions")] - public IEnumerable? Conditions { get; set; } - - [JsonInclude] - [JsonPropertyName("scope")] - public Dictionary? Scope { get; set; } - } - - public sealed partial class DetectionRuleDescriptor : SerializableDescriptorBase - { - internal DetectionRuleDescriptor(Action configure) => configure.Invoke(this); - public DetectionRuleDescriptor() : base() - { - } - - private IEnumerable? ActionsValue { get; set; } - - private IEnumerable? ConditionsValue { get; set; } - - private RuleConditionDescriptor ConditionsDescriptor { get; set; } - - private Action ConditionsDescriptorAction { get; set; } - - private Action[] ConditionsDescriptorActions { get; set; } - - private Dictionary? ScopeValue { get; set; } - - public DetectionRuleDescriptor Actions(IEnumerable? actions) - { - ActionsValue = actions; - return Self; - } - - public DetectionRuleDescriptor Conditions(IEnumerable? conditions) - { - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsValue = conditions; - return Self; - } - - public DetectionRuleDescriptor Conditions(RuleConditionDescriptor descriptor) - { - ConditionsValue = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsDescriptor = descriptor; - return Self; - } - - public DetectionRuleDescriptor Conditions(Action configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorActions = null; - ConditionsDescriptorAction = configure; - return Self; - } - - public DetectionRuleDescriptor Conditions(params Action[] configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = configure; - return Self; - } - - public DetectionRuleDescriptor Scope(Func, FluentDictionary> selector) - { - ScopeValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - if (ConditionsDescriptor is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ConditionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorAction is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new RuleConditionDescriptor(ConditionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorActions is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - foreach (var action in ConditionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new RuleConditionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ConditionsValue is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsValue, options); - } - - if (ScopeValue is not null) - { - writer.WritePropertyName("scope"); - JsonSerializer.Serialize(writer, ScopeValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Detector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Detector.g.cs deleted file mode 100644 index 9e69cc73b74..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Detector.g.cs +++ /dev/null @@ -1,563 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Detector - { - [JsonInclude] - [JsonPropertyName("by_field_name")] - public Elastic.Clients.Elasticsearch.Field? ByFieldName { get; set; } - - [JsonInclude] - [JsonPropertyName("custom_rules")] - public IEnumerable? CustomRules { get; set; } - - [JsonInclude] - [JsonPropertyName("detector_description")] - public string? DetectorDescription { get; set; } - - [JsonInclude] - [JsonPropertyName("detector_index")] - public int? DetectorIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("exclude_frequent")] - public Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? ExcludeFrequent { get; set; } - - [JsonInclude] - [JsonPropertyName("field_name")] - public Elastic.Clients.Elasticsearch.Field? FieldName { get; set; } - - [JsonInclude] - [JsonPropertyName("function")] - public string Function { get; set; } - - [JsonInclude] - [JsonPropertyName("over_field_name")] - public Elastic.Clients.Elasticsearch.Field? OverFieldName { get; set; } - - [JsonInclude] - [JsonPropertyName("partition_field_name")] - public Elastic.Clients.Elasticsearch.Field? PartitionFieldName { get; set; } - - [JsonInclude] - [JsonPropertyName("use_null")] - public bool? UseNull { get; set; } - } - - public sealed partial class DetectorDescriptor : SerializableDescriptorBase> - { - internal DetectorDescriptor(Action> configure) => configure.Invoke(this); - public DetectorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field? ByFieldNameValue { get; set; } - - private IEnumerable? CustomRulesValue { get; set; } - - private DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - - private Action CustomRulesDescriptorAction { get; set; } - - private Action[] CustomRulesDescriptorActions { get; set; } - - private string? DetectorDescriptionValue { get; set; } - - private int? DetectorIndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? ExcludeFrequentValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? FieldNameValue { get; set; } - - private string FunctionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? OverFieldNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PartitionFieldNameValue { get; set; } - - private bool? UseNullValue { get; set; } - - public DetectorDescriptor ByFieldName(Elastic.Clients.Elasticsearch.Field? byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - public DetectorDescriptor CustomRules(IEnumerable? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorDescriptor CustomRules(DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorDescriptor CustomRules(Action configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorDescriptor CustomRules(params Action[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - public DetectorDescriptor DetectorDescription(string? detectorDescription) - { - DetectorDescriptionValue = detectorDescription; - return Self; - } - - public DetectorDescriptor DetectorIndex(int? detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - public DetectorDescriptor ExcludeFrequent(Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? excludeFrequent) - { - ExcludeFrequentValue = excludeFrequent; - return Self; - } - - public DetectorDescriptor FieldName(Elastic.Clients.Elasticsearch.Field? fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - public DetectorDescriptor Function(string function) - { - FunctionValue = function; - return Self; - } - - public DetectorDescriptor OverFieldName(Elastic.Clients.Elasticsearch.Field? overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - public DetectorDescriptor PartitionFieldName(Elastic.Clients.Elasticsearch.Field? partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - public DetectorDescriptor UseNull(bool? useNull = true) - { - UseNullValue = useNull; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ByFieldNameValue is not null) - { - writer.WritePropertyName("by_field_name"); - JsonSerializer.Serialize(writer, ByFieldNameValue, options); - } - - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DetectorDescriptionValue)) - { - writer.WritePropertyName("detector_description"); - writer.WriteStringValue(DetectorDescriptionValue); - } - - if (DetectorIndexValue.HasValue) - { - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue.Value); - } - - if (ExcludeFrequentValue is not null) - { - writer.WritePropertyName("exclude_frequent"); - JsonSerializer.Serialize(writer, ExcludeFrequentValue, options); - } - - if (FieldNameValue is not null) - { - writer.WritePropertyName("field_name"); - JsonSerializer.Serialize(writer, FieldNameValue, options); - } - - writer.WritePropertyName("function"); - writer.WriteStringValue(FunctionValue); - if (OverFieldNameValue is not null) - { - writer.WritePropertyName("over_field_name"); - JsonSerializer.Serialize(writer, OverFieldNameValue, options); - } - - if (PartitionFieldNameValue is not null) - { - writer.WritePropertyName("partition_field_name"); - JsonSerializer.Serialize(writer, PartitionFieldNameValue, options); - } - - if (UseNullValue.HasValue) - { - writer.WritePropertyName("use_null"); - writer.WriteBooleanValue(UseNullValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class DetectorDescriptor : SerializableDescriptorBase - { - internal DetectorDescriptor(Action configure) => configure.Invoke(this); - public DetectorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field? ByFieldNameValue { get; set; } - - private IEnumerable? CustomRulesValue { get; set; } - - private DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - - private Action CustomRulesDescriptorAction { get; set; } - - private Action[] CustomRulesDescriptorActions { get; set; } - - private string? DetectorDescriptionValue { get; set; } - - private int? DetectorIndexValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? ExcludeFrequentValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? FieldNameValue { get; set; } - - private string FunctionValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? OverFieldNameValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? PartitionFieldNameValue { get; set; } - - private bool? UseNullValue { get; set; } - - public DetectorDescriptor ByFieldName(Elastic.Clients.Elasticsearch.Field? byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - public DetectorDescriptor CustomRules(IEnumerable? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorDescriptor CustomRules(DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorDescriptor CustomRules(Action configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorDescriptor CustomRules(params Action[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - public DetectorDescriptor DetectorDescription(string? detectorDescription) - { - DetectorDescriptionValue = detectorDescription; - return Self; - } - - public DetectorDescriptor DetectorIndex(int? detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - public DetectorDescriptor ExcludeFrequent(Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? excludeFrequent) - { - ExcludeFrequentValue = excludeFrequent; - return Self; - } - - public DetectorDescriptor FieldName(Elastic.Clients.Elasticsearch.Field? fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - public DetectorDescriptor Function(string function) - { - FunctionValue = function; - return Self; - } - - public DetectorDescriptor OverFieldName(Elastic.Clients.Elasticsearch.Field? overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - public DetectorDescriptor PartitionFieldName(Elastic.Clients.Elasticsearch.Field? partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - public DetectorDescriptor UseNull(bool? useNull = true) - { - UseNullValue = useNull; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ByFieldNameValue is not null) - { - writer.WritePropertyName("by_field_name"); - JsonSerializer.Serialize(writer, ByFieldNameValue, options); - } - - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DetectorDescriptionValue)) - { - writer.WritePropertyName("detector_description"); - writer.WriteStringValue(DetectorDescriptionValue); - } - - if (DetectorIndexValue.HasValue) - { - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue.Value); - } - - if (ExcludeFrequentValue is not null) - { - writer.WritePropertyName("exclude_frequent"); - JsonSerializer.Serialize(writer, ExcludeFrequentValue, options); - } - - if (FieldNameValue is not null) - { - writer.WritePropertyName("field_name"); - JsonSerializer.Serialize(writer, FieldNameValue, options); - } - - writer.WritePropertyName("function"); - writer.WriteStringValue(FunctionValue); - if (OverFieldNameValue is not null) - { - writer.WritePropertyName("over_field_name"); - JsonSerializer.Serialize(writer, OverFieldNameValue, options); - } - - if (PartitionFieldNameValue is not null) - { - writer.WritePropertyName("partition_field_name"); - JsonSerializer.Serialize(writer, PartitionFieldNameValue, options); - } - - if (UseNullValue.HasValue) - { - writer.WritePropertyName("use_null"); - writer.WriteBooleanValue(UseNullValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectorRead.g.cs deleted file mode 100644 index fbe1aeac2f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DetectorRead.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DetectorRead - { - [JsonInclude] - [JsonPropertyName("by_field_name")] - public string? ByFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("custom_rules")] - public IReadOnlyCollection? CustomRules { get; init; } - - [JsonInclude] - [JsonPropertyName("detector_description")] - public string? DetectorDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("detector_index")] - public int? DetectorIndex { get; init; } - - [JsonInclude] - [JsonPropertyName("exclude_frequent")] - public Elastic.Clients.Elasticsearch.Ml.ExcludeFrequent? ExcludeFrequent { get; init; } - - [JsonInclude] - [JsonPropertyName("field_name")] - public string? FieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("function")] - public string Function { get; init; } - - [JsonInclude] - [JsonPropertyName("over_field_name")] - public string? OverFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("partition_field_name")] - public string? PartitionFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("use_null")] - public bool? UseNull { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DiscoveryNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DiscoveryNode.g.cs deleted file mode 100644 index 89846926c8d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/DiscoveryNode.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class DiscoveryNode - { - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("ephemeral_id")] - public string EphemeralId { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Ensemble.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Ensemble.g.cs deleted file mode 100644 index aaf1fcc6b5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Ensemble.g.cs +++ /dev/null @@ -1,226 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Ensemble - { - [JsonInclude] - [JsonPropertyName("aggregate_output")] - public Elastic.Clients.Elasticsearch.Ml.AggregateOutput? AggregateOutput { get; set; } - - [JsonInclude] - [JsonPropertyName("classification_labels")] - public IEnumerable? ClassificationLabels { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_names")] - public IEnumerable? FeatureNames { get; set; } - - [JsonInclude] - [JsonPropertyName("target_type")] - public string? TargetType { get; set; } - - [JsonInclude] - [JsonPropertyName("trained_models")] - public IEnumerable TrainedModels { get; set; } - } - - public sealed partial class EnsembleDescriptor : SerializableDescriptorBase - { - internal EnsembleDescriptor(Action configure) => configure.Invoke(this); - public EnsembleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.AggregateOutput? AggregateOutputValue { get; set; } - - private AggregateOutputDescriptor AggregateOutputDescriptor { get; set; } - - private Action AggregateOutputDescriptorAction { get; set; } - - private IEnumerable? ClassificationLabelsValue { get; set; } - - private IEnumerable? FeatureNamesValue { get; set; } - - private string? TargetTypeValue { get; set; } - - private IEnumerable TrainedModelsValue { get; set; } - - private TrainedModelDescriptor TrainedModelsDescriptor { get; set; } - - private Action TrainedModelsDescriptorAction { get; set; } - - private Action[] TrainedModelsDescriptorActions { get; set; } - - public EnsembleDescriptor AggregateOutput(Elastic.Clients.Elasticsearch.Ml.AggregateOutput? aggregateOutput) - { - AggregateOutputDescriptor = null; - AggregateOutputDescriptorAction = null; - AggregateOutputValue = aggregateOutput; - return Self; - } - - public EnsembleDescriptor AggregateOutput(AggregateOutputDescriptor descriptor) - { - AggregateOutputValue = null; - AggregateOutputDescriptorAction = null; - AggregateOutputDescriptor = descriptor; - return Self; - } - - public EnsembleDescriptor AggregateOutput(Action configure) - { - AggregateOutputValue = null; - AggregateOutputDescriptor = null; - AggregateOutputDescriptorAction = configure; - return Self; - } - - public EnsembleDescriptor ClassificationLabels(IEnumerable? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - public EnsembleDescriptor FeatureNames(IEnumerable? featureNames) - { - FeatureNamesValue = featureNames; - return Self; - } - - public EnsembleDescriptor TargetType(string? targetType) - { - TargetTypeValue = targetType; - return Self; - } - - public EnsembleDescriptor TrainedModels(IEnumerable trainedModels) - { - TrainedModelsDescriptor = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = null; - TrainedModelsValue = trainedModels; - return Self; - } - - public EnsembleDescriptor TrainedModels(TrainedModelDescriptor descriptor) - { - TrainedModelsValue = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = null; - TrainedModelsDescriptor = descriptor; - return Self; - } - - public EnsembleDescriptor TrainedModels(Action configure) - { - TrainedModelsValue = null; - TrainedModelsDescriptor = null; - TrainedModelsDescriptorActions = null; - TrainedModelsDescriptorAction = configure; - return Self; - } - - public EnsembleDescriptor TrainedModels(params Action[] configure) - { - TrainedModelsValue = null; - TrainedModelsDescriptor = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregateOutputDescriptor is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, AggregateOutputDescriptor, options); - } - else if (AggregateOutputDescriptorAction is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, new AggregateOutputDescriptor(AggregateOutputDescriptorAction), options); - } - else if (AggregateOutputValue is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, AggregateOutputValue, options); - } - - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - if (FeatureNamesValue is not null) - { - writer.WritePropertyName("feature_names"); - JsonSerializer.Serialize(writer, FeatureNamesValue, options); - } - - if (!string.IsNullOrEmpty(TargetTypeValue)) - { - writer.WritePropertyName("target_type"); - writer.WriteStringValue(TargetTypeValue); - } - - if (TrainedModelsDescriptor is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TrainedModelsDescriptor, options); - writer.WriteEndArray(); - } - else if (TrainedModelsDescriptorAction is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new TrainedModelDescriptor(TrainedModelsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TrainedModelsDescriptorActions is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - foreach (var action in TrainedModelsDescriptorActions) - { - JsonSerializer.Serialize(writer, new TrainedModelDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("trained_models"); - JsonSerializer.Serialize(writer, TrainedModelsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FilterRef.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FilterRef.g.cs deleted file mode 100644 index c95a246def4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FilterRef.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class FilterRef - { - [JsonInclude] - [JsonPropertyName("filter_id")] - public Elastic.Clients.Elasticsearch.Id FilterId { get; set; } - - [JsonInclude] - [JsonPropertyName("filter_type")] - public Elastic.Clients.Elasticsearch.Ml.FilterType? FilterType { get; set; } - } - - public sealed partial class FilterRefDescriptor : SerializableDescriptorBase - { - internal FilterRefDescriptor(Action configure) => configure.Invoke(this); - public FilterRefDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Id FilterIdValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.FilterType? FilterTypeValue { get; set; } - - public FilterRefDescriptor FilterId(Elastic.Clients.Elasticsearch.Id filterId) - { - FilterIdValue = filterId; - return Self; - } - - public FilterRefDescriptor FilterType(Elastic.Clients.Elasticsearch.Ml.FilterType? filterType) - { - FilterTypeValue = filterType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("filter_id"); - JsonSerializer.Serialize(writer, FilterIdValue, options); - if (FilterTypeValue is not null) - { - writer.WritePropertyName("filter_type"); - JsonSerializer.Serialize(writer, FilterTypeValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FrequencyEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FrequencyEncodingPreprocessor.g.cs deleted file mode 100644 index dd1d0985822..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/FrequencyEncodingPreprocessor.g.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class FrequencyEncodingPreprocessor - { - [JsonInclude] - [JsonPropertyName("feature_name")] - public string FeatureName { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public string Field { get; set; } - - [JsonInclude] - [JsonPropertyName("frequency_map")] - public Dictionary FrequencyMap { get; set; } - } - - public sealed partial class FrequencyEncodingPreprocessorDescriptor : SerializableDescriptorBase> - { - internal FrequencyEncodingPreprocessorDescriptor(Action> configure) => configure.Invoke(this); - public FrequencyEncodingPreprocessorDescriptor() : base() - { - } - - private string FeatureNameValue { get; set; } - - private string FieldValue { get; set; } - - private Dictionary FrequencyMapValue { get; set; } - - public FrequencyEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class FrequencyEncodingPreprocessorDescriptor : SerializableDescriptorBase - { - internal FrequencyEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - public FrequencyEncodingPreprocessorDescriptor() : base() - { - } - - private string FeatureNameValue { get; set; } - - private string FieldValue { get; set; } - - private Dictionary FrequencyMapValue { get; set; } - - public FrequencyEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Hyperparameter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Hyperparameter.g.cs deleted file mode 100644 index 1c0137eaaf3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Hyperparameter.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Hyperparameter - { - [JsonInclude] - [JsonPropertyName("absolute_importance")] - public double? AbsoluteImportance { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("relative_importance")] - public double? RelativeImportance { get; init; } - - [JsonInclude] - [JsonPropertyName("supplied")] - public bool Supplied { get; init; } - - [JsonInclude] - [JsonPropertyName("value")] - public double Value { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influence.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influence.g.cs deleted file mode 100644 index 39fe122abeb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influence.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Influence - { - [JsonInclude] - [JsonPropertyName("influencer_field_name")] - public string InfluencerFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("influencer_field_values")] - public IReadOnlyCollection InfluencerFieldValues { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influencer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influencer.g.cs deleted file mode 100644 index 67fb37a3790..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Influencer.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Influencer - { - [JsonInclude] - [JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - [JsonInclude] - [JsonPropertyName("foo")] - public string? Foo { get; init; } - - [JsonInclude] - [JsonPropertyName("influencer_field_name")] - public string InfluencerFieldName { get; init; } - - [JsonInclude] - [JsonPropertyName("influencer_field_value")] - public string InfluencerFieldValue { get; init; } - - [JsonInclude] - [JsonPropertyName("influencer_score")] - public double InfluencerScore { get; init; } - - [JsonInclude] - [JsonPropertyName("initial_influencer_score")] - public double InitialInfluencerScore { get; init; } - - [JsonInclude] - [JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("probability")] - public double Probability { get; init; } - - [JsonInclude] - [JsonPropertyName("result_type")] - public string ResultType { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Input.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Input.g.cs deleted file mode 100644 index 1c175d24569..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Input.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Input - { - [JsonInclude] - [JsonPropertyName("field_names")] - public Elastic.Clients.Elasticsearch.Names FieldNames { get; set; } - } - - public sealed partial class InputDescriptor : SerializableDescriptorBase - { - internal InputDescriptor(Action configure) => configure.Invoke(this); - public InputDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Names FieldNamesValue { get; set; } - - public InputDescriptor FieldNames(Elastic.Clients.Elasticsearch.Names fieldNames) - { - FieldNamesValue = fieldNames; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Job.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Job.g.cs deleted file mode 100644 index 94ac14699e9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Job.g.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Job - { - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimits { get; init; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; init; } - - [JsonInclude] - [JsonPropertyName("blocked")] - public Elastic.Clients.Elasticsearch.Ml.JobBlocked? Blocked { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public DateTimeOffset? CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public object? CustomSettings { get; init; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; init; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescription { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.Datafeed? DatafeedConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("deleting")] - public bool? Deleting { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("finished_time")] - public DateTimeOffset? FinishedTime { get; init; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("job_type")] - public string? JobType { get; init; } - - [JsonInclude] - [JsonPropertyName("job_version")] - public string? JobVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobBlocked.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobBlocked.g.cs deleted file mode 100644 index 5bd20ab61a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobBlocked.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobBlocked - { - [JsonInclude] - [JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.Ml.JobBlockedReason Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("task_id")] - public Elastic.Clients.Elasticsearch.TaskId? TaskId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobConfig.g.cs deleted file mode 100644 index 910dd3f66cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobConfig.g.cs +++ /dev/null @@ -1,921 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobConfig - { - [JsonInclude] - [JsonPropertyName("allow_lazy_open")] - public bool? AllowLazyOpen { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimits { get; set; } - - [JsonInclude] - [JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Duration? BackgroundPersistInterval { get; set; } - - [JsonInclude] - [JsonPropertyName("custom_settings")] - public object? CustomSettings { get; set; } - - [JsonInclude] - [JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; set; } - - [JsonInclude] - [JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescription { get; set; } - - [JsonInclude] - [JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonInclude] - [JsonPropertyName("groups")] - public IEnumerable? Groups { get; set; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } - - [JsonInclude] - [JsonPropertyName("job_type")] - public string? JobType { get; set; } - - [JsonInclude] - [JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfig { get; set; } - - [JsonInclude] - [JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - [JsonInclude] - [JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; set; } - - [JsonInclude] - [JsonPropertyName("results_index_name")] - public Elastic.Clients.Elasticsearch.IndexName? ResultsIndexName { get; set; } - - [JsonInclude] - [JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; set; } - } - - public sealed partial class JobConfigDescriptor : SerializableDescriptorBase> - { - internal JobConfigDescriptor(Action> configure) => configure.Invoke(this); - public JobConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action> AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action> DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action> DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action> ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private object? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private string? JobTypeValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public JobConfigDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public JobConfigDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public JobConfigDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor DataDescription(Action> configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(Action> configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(Action> configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public JobConfigDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - public JobConfigDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public JobConfigDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public JobConfigDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public JobConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public JobConfigDescriptor JobType(string? jobType) - { - JobTypeValue = jobType; - return Self; - } - - public JobConfigDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public JobConfigDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public JobConfigDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - public JobConfigDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (!string.IsNullOrEmpty(JobTypeValue)) - { - writer.WritePropertyName("job_type"); - writer.WriteStringValue(JobTypeValue); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class JobConfigDescriptor : SerializableDescriptorBase - { - internal JobConfigDescriptor(Action configure) => configure.Invoke(this); - public JobConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisConfig AnalysisConfigValue { get; set; } - - private AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - - private Action AnalysisConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DataDescription DataDescriptionValue { get; set; } - - private DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - - private Action DataDescriptionDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? DatafeedConfigValue { get; set; } - - private DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - - private Action DatafeedConfigDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? ModelPlotConfigValue { get; set; } - - private ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - - private Action ModelPlotConfigDescriptorAction { get; set; } - - private bool? AllowLazyOpenValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? AnalysisLimitsValue { get; set; } - - private AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - - private Action AnalysisLimitsDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Duration? BackgroundPersistIntervalValue { get; set; } - - private object? CustomSettingsValue { get; set; } - - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - - private string? DescriptionValue { get; set; } - - private IEnumerable? GroupsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } - - private string? JobTypeValue { get; set; } - - private long? ModelSnapshotRetentionDaysValue { get; set; } - - private long? RenormalizationWindowDaysValue { get; set; } - - private Elastic.Clients.Elasticsearch.IndexName? ResultsIndexNameValue { get; set; } - - private long? ResultsRetentionDaysValue { get; set; } - - public JobConfigDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Ml.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public JobConfigDescriptor AnalysisConfig(AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor DataDescription(Elastic.Clients.Elasticsearch.Ml.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public JobConfigDescriptor DataDescription(DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor DataDescription(Action configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Ml.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor DatafeedConfig(Action configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Ml.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor ModelPlotConfig(Action configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Ml.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public JobConfigDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public JobConfigDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public JobConfigDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - public JobConfigDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - public JobConfigDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public JobConfigDescriptor Groups(IEnumerable? groups) - { - GroupsValue = groups; - return Self; - } - - public JobConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public JobConfigDescriptor JobType(string? jobType) - { - JobTypeValue = jobType; - return Self; - } - - public JobConfigDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public JobConfigDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - public JobConfigDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - public JobConfigDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (!string.IsNullOrEmpty(JobTypeValue)) - { - writer.WritePropertyName("job_type"); - writer.WriteStringValue(JobTypeValue); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobForecastStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobForecastStatistics.g.cs deleted file mode 100644 index cf092b2c4c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobForecastStatistics.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobForecastStatistics - { - [JsonInclude] - [JsonPropertyName("forecasted_jobs")] - public int ForecastedJobs { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_bytes")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? MemoryBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("processing_time_ms")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? ProcessingTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("records")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? Records { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Dictionary? Status { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStatistics.g.cs deleted file mode 100644 index 0771ce63cbf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStatistics.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobStatistics - { - [JsonInclude] - [JsonPropertyName("avg")] - public double Avg { get; init; } - - [JsonInclude] - [JsonPropertyName("max")] - public double Max { get; init; } - - [JsonInclude] - [JsonPropertyName("min")] - public double Min { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public double Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStats.g.cs deleted file mode 100644 index 738131cf2ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobStats.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobStats - { - [JsonInclude] - [JsonPropertyName("assignment_explanation")] - public string? AssignmentExplanation { get; init; } - - [JsonInclude] - [JsonPropertyName("data_counts")] - public Elastic.Clients.Elasticsearch.Ml.DataCounts DataCounts { get; init; } - - [JsonInclude] - [JsonPropertyName("deleting")] - public bool? Deleting { get; init; } - - [JsonInclude] - [JsonPropertyName("forecasts_stats")] - public Elastic.Clients.Elasticsearch.Ml.JobForecastStatistics ForecastsStats { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Ml.ModelSizeStats ModelSizeStats { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.Ml.DiscoveryNode? Node { get; init; } - - [JsonInclude] - [JsonPropertyName("open_time")] - public DateTimeOffset? OpenTime { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Ml.JobState State { get; init; } - - [JsonInclude] - [JsonPropertyName("timing_stats")] - public Elastic.Clients.Elasticsearch.Ml.JobTimingStats TimingStats { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobTimingStats.g.cs deleted file mode 100644 index 515a51cf466..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JobTimingStats.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JobTimingStats - { - [JsonInclude] - [JsonPropertyName("average_bucket_processing_time_ms")] - public double? AverageBucketProcessingTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("bucket_count")] - public long BucketCount { get; init; } - - [JsonInclude] - [JsonPropertyName("exponential_average_bucket_processing_time_ms")] - public double? ExponentialAverageBucketProcessingTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("exponential_average_bucket_processing_time_per_hour_ms")] - public double ExponentialAverageBucketProcessingTimePerHourMs { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("maximum_bucket_processing_time_ms")] - public double? MaximumBucketProcessingTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("minimum_bucket_processing_time_ms")] - public double? MinimumBucketProcessingTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("total_bucket_processing_time_ms")] - public double TotalBucketProcessingTimeMs { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JvmStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JvmStats.g.cs deleted file mode 100644 index 30e4a2cd050..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/JvmStats.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class JvmStats - { - [JsonInclude] - [JsonPropertyName("heap_max")] - public Elastic.Clients.Elasticsearch.ByteSize? HeapMax { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_max_in_bytes")] - public int HeapMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("java_inference")] - public Elastic.Clients.Elasticsearch.ByteSize? JavaInference { get; init; } - - [JsonInclude] - [JsonPropertyName("java_inference_in_bytes")] - public int JavaInferenceInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("java_inference_max")] - public Elastic.Clients.Elasticsearch.ByteSize? JavaInferenceMax { get; init; } - - [JsonInclude] - [JsonPropertyName("java_inference_max_in_bytes")] - public int JavaInferenceMaxInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Limits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Limits.g.cs deleted file mode 100644 index 58ac74c9952..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Limits.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Limits - { - [JsonInclude] - [JsonPropertyName("effective_max_model_memory_limit")] - public string EffectiveMaxModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("max_model_memory_limit")] - public string? MaxModelMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("total_ml_memory")] - public string TotalMlMemory { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemMlStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemMlStats.g.cs deleted file mode 100644 index 60121c0e3cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemMlStats.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MemMlStats - { - [JsonInclude] - [JsonPropertyName("anomaly_detectors")] - public Elastic.Clients.Elasticsearch.ByteSize? AnomalyDetectors { get; init; } - - [JsonInclude] - [JsonPropertyName("anomaly_detectors_in_bytes")] - public int AnomalyDetectorsInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame_analytics")] - public Elastic.Clients.Elasticsearch.ByteSize? DataFrameAnalytics { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame_analytics_in_bytes")] - public int DataFrameAnalyticsInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("max")] - public Elastic.Clients.Elasticsearch.ByteSize? Max { get; init; } - - [JsonInclude] - [JsonPropertyName("max_in_bytes")] - public int MaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("native_code_overhead")] - public Elastic.Clients.Elasticsearch.ByteSize? NativeCodeOverhead { get; init; } - - [JsonInclude] - [JsonPropertyName("native_code_overhead_in_bytes")] - public int NativeCodeOverheadInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("native_inference")] - public Elastic.Clients.Elasticsearch.ByteSize? NativeInference { get; init; } - - [JsonInclude] - [JsonPropertyName("native_inference_in_bytes")] - public int NativeInferenceInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemStats.g.cs deleted file mode 100644 index 4a779d39ac3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/MemStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class MemStats - { - [JsonInclude] - [JsonPropertyName("adjusted_total")] - public Elastic.Clients.Elasticsearch.ByteSize? AdjustedTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("adjusted_total_in_bytes")] - public int AdjustedTotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Ml.MemMlStats Ml { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.ByteSize? Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public int TotalInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Memory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Memory.g.cs deleted file mode 100644 index 224eee8c06b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Memory.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Memory - { - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("ephemeral_id")] - public string EphemeralId { get; init; } - - [JsonInclude] - [JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Ml.JvmStats Jvm { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Ml.MemStats Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelPlotConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelPlotConfig.g.cs deleted file mode 100644 index ae29cdddb2b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelPlotConfig.g.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ModelPlotConfig - { - [JsonInclude] - [JsonPropertyName("annotations_enabled")] - public bool? AnnotationsEnabled { get; set; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonInclude] - [JsonPropertyName("terms")] - public Elastic.Clients.Elasticsearch.Field? Terms { get; set; } - } - - public sealed partial class ModelPlotConfigDescriptor : SerializableDescriptorBase> - { - internal ModelPlotConfigDescriptor(Action> configure) => configure.Invoke(this); - public ModelPlotConfigDescriptor() : base() - { - } - - private bool? AnnotationsEnabledValue { get; set; } - - private bool? EnabledValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TermsValue { get; set; } - - public ModelPlotConfigDescriptor AnnotationsEnabled(bool? annotationsEnabled = true) - { - AnnotationsEnabledValue = annotationsEnabled; - return Self; - } - - public ModelPlotConfigDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public ModelPlotConfigDescriptor Terms(Elastic.Clients.Elasticsearch.Field? terms) - { - TermsValue = terms; - return Self; - } - - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnnotationsEnabledValue.HasValue) - { - writer.WritePropertyName("annotations_enabled"); - writer.WriteBooleanValue(AnnotationsEnabledValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class ModelPlotConfigDescriptor : SerializableDescriptorBase - { - internal ModelPlotConfigDescriptor(Action configure) => configure.Invoke(this); - public ModelPlotConfigDescriptor() : base() - { - } - - private bool? AnnotationsEnabledValue { get; set; } - - private bool? EnabledValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field? TermsValue { get; set; } - - public ModelPlotConfigDescriptor AnnotationsEnabled(bool? annotationsEnabled = true) - { - AnnotationsEnabledValue = annotationsEnabled; - return Self; - } - - public ModelPlotConfigDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public ModelPlotConfigDescriptor Terms(Elastic.Clients.Elasticsearch.Field? terms) - { - TermsValue = terms; - return Self; - } - - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnnotationsEnabledValue.HasValue) - { - writer.WritePropertyName("annotations_enabled"); - writer.WriteBooleanValue(AnnotationsEnabledValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSizeStats.g.cs deleted file mode 100644 index c48828b6b67..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSizeStats.g.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ModelSizeStats - { - [JsonInclude] - [JsonPropertyName("assignment_memory_basis")] - public string? AssignmentMemoryBasis { get; init; } - - [JsonInclude] - [JsonPropertyName("bucket_allocation_failures_count")] - public long BucketAllocationFailuresCount { get; init; } - - [JsonInclude] - [JsonPropertyName("categorization_status")] - public Elastic.Clients.Elasticsearch.Ml.CategorizationStatus CategorizationStatus { get; init; } - - [JsonInclude] - [JsonPropertyName("categorized_doc_count")] - public int CategorizedDocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("dead_category_count")] - public int DeadCategoryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("failed_category_count")] - public int FailedCategoryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("frequent_category_count")] - public int FrequentCategoryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("log_time")] - public DateTimeOffset LogTime { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_status")] - public Elastic.Clients.Elasticsearch.Ml.MemoryStatus MemoryStatus { get; init; } - - [JsonInclude] - [JsonPropertyName("model_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("model_bytes_exceeded")] - public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesExceeded { get; init; } - - [JsonInclude] - [JsonPropertyName("model_bytes_memory_limit")] - public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesMemoryLimit { get; init; } - - [JsonInclude] - [JsonPropertyName("peak_model_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize? PeakModelBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("rare_category_count")] - public int RareCategoryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("result_type")] - public string ResultType { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("total_by_field_count")] - public long TotalByFieldCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_category_count")] - public int TotalCategoryCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_over_field_count")] - public long TotalOverFieldCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_partition_field_count")] - public long TotalPartitionFieldCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSnapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSnapshot.g.cs deleted file mode 100644 index 14f40865c0b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ModelSnapshot.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class ModelSnapshot - { - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_record_time_stamp")] - public int? LatestRecordTimeStamp { get; init; } - - [JsonInclude] - [JsonPropertyName("latest_result_time_stamp")] - public int? LatestResultTimeStamp { get; init; } - - [JsonInclude] - [JsonPropertyName("min_version")] - public string MinVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Ml.ModelSizeStats? ModelSizeStats { get; init; } - - [JsonInclude] - [JsonPropertyName("retain")] - public bool Retain { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot_doc_count")] - public long SnapshotDocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot_id")] - public string SnapshotId { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NativeCode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NativeCode.g.cs deleted file mode 100644 index c9429749d32..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NativeCode.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class NativeCode - { - [JsonInclude] - [JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OneHotEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OneHotEncodingPreprocessor.g.cs deleted file mode 100644 index 8afde6bb6b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OneHotEncodingPreprocessor.g.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class OneHotEncodingPreprocessor - { - [JsonInclude] - [JsonPropertyName("field")] - public string Field { get; set; } - - [JsonInclude] - [JsonPropertyName("hot_map")] - public Dictionary HotMap { get; set; } - } - - public sealed partial class OneHotEncodingPreprocessorDescriptor : SerializableDescriptorBase> - { - internal OneHotEncodingPreprocessorDescriptor(Action> configure) => configure.Invoke(this); - public OneHotEncodingPreprocessorDescriptor() : base() - { - } - - private string FieldValue { get; set; } - - private Dictionary HotMapValue { get; set; } - - public OneHotEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public OneHotEncodingPreprocessorDescriptor HotMap(Func, FluentDictionary> selector) - { - HotMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("hot_map"); - JsonSerializer.Serialize(writer, HotMapValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class OneHotEncodingPreprocessorDescriptor : SerializableDescriptorBase - { - internal OneHotEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - public OneHotEncodingPreprocessorDescriptor() : base() - { - } - - private string FieldValue { get; set; } - - private Dictionary HotMapValue { get; set; } - - public OneHotEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public OneHotEncodingPreprocessorDescriptor HotMap(Func, FluentDictionary> selector) - { - HotMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("hot_map"); - JsonSerializer.Serialize(writer, HotMapValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucket.g.cs deleted file mode 100644 index e310cd16b3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucket.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class OverallBucket - { - [JsonInclude] - [JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - [JsonInclude] - [JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - [JsonInclude] - [JsonPropertyName("jobs")] - public IReadOnlyCollection Jobs { get; init; } - - [JsonInclude] - [JsonPropertyName("overall_score")] - public double OverallScore { get; init; } - - [JsonInclude] - [JsonPropertyName("result_type")] - public string ResultType { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp_string")] - public DateTimeOffset TimestampString { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucketJob.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucketJob.g.cs deleted file mode 100644 index 610828ffc78..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/OverallBucketJob.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class OverallBucketJob - { - [JsonInclude] - [JsonPropertyName("job_id")] - public string JobId { get; init; } - - [JsonInclude] - [JsonPropertyName("max_anomaly_score")] - public double MaxAnomalyScore { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Page.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Page.g.cs deleted file mode 100644 index c8e3c55aa57..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Page.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Page - { - [JsonInclude] - [JsonPropertyName("from")] - public int? From { get; set; } - - [JsonInclude] - [JsonPropertyName("size")] - public int? Size { get; set; } - } - - public sealed partial class PageDescriptor : SerializableDescriptorBase - { - internal PageDescriptor(Action configure) => configure.Invoke(this); - public PageDescriptor() : base() - { - } - - private int? FromValue { get; set; } - - private int? SizeValue { get; set; } - - public PageDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public PageDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PerPartitionCategorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PerPartitionCategorization.g.cs deleted file mode 100644 index 4d43a2eb261..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/PerPartitionCategorization.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class PerPartitionCategorization - { - [JsonInclude] - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonInclude] - [JsonPropertyName("stop_on_warn")] - public bool? StopOnWarn { get; set; } - } - - public sealed partial class PerPartitionCategorizationDescriptor : SerializableDescriptorBase - { - internal PerPartitionCategorizationDescriptor(Action configure) => configure.Invoke(this); - public PerPartitionCategorizationDescriptor() : base() - { - } - - private bool? EnabledValue { get; set; } - - private bool? StopOnWarnValue { get; set; } - - public PerPartitionCategorizationDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PerPartitionCategorizationDescriptor StopOnWarn(bool? stopOnWarn = true) - { - StopOnWarnValue = stopOnWarn; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (StopOnWarnValue.HasValue) - { - writer.WritePropertyName("stop_on_warn"); - writer.WriteBooleanValue(StopOnWarnValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Preprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Preprocessor.g.cs deleted file mode 100644 index f2b5f54b1a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Preprocessor.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - [JsonConverter(typeof(PreprocessorConverter))] - public sealed partial class Preprocessor - { - internal Preprocessor(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static Preprocessor FrequencyEncoding(Elastic.Clients.Elasticsearch.Ml.FrequencyEncodingPreprocessor frequencyEncodingPreprocessor) => new Preprocessor("frequency_encoding", frequencyEncodingPreprocessor); - public static Preprocessor OneHotEncoding(Elastic.Clients.Elasticsearch.Ml.OneHotEncodingPreprocessor oneHotEncodingPreprocessor) => new Preprocessor("one_hot_encoding", oneHotEncodingPreprocessor); - public static Preprocessor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Ml.TargetMeanEncodingPreprocessor targetMeanEncodingPreprocessor) => new Preprocessor("target_mean_encoding", targetMeanEncodingPreprocessor); - } - - internal sealed class PreprocessorConverter : JsonConverter - { - public override Preprocessor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "frequency_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new Preprocessor(propertyName, variant); - } - - if (propertyName == "one_hot_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new Preprocessor(propertyName, variant); - } - - if (propertyName == "target_mean_encoding") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new Preprocessor(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, Preprocessor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "frequency_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.FrequencyEncodingPreprocessor)value.Variant, options); - break; - case "one_hot_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.OneHotEncodingPreprocessor)value.Variant, options); - break; - case "target_mean_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ml.TargetMeanEncodingPreprocessor)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class PreprocessorDescriptor : SerializableDescriptorBase> - { - internal PreprocessorDescriptor(Action> configure) => configure.Invoke(this); - public PreprocessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the PreprocessorDescriptor. Only a single Preprocessor variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the PreprocessorDescriptor. Only a single Preprocessor variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void FrequencyEncoding(FrequencyEncodingPreprocessor variant) => Set(variant, "frequency_encoding"); - public void FrequencyEncoding(Action> configure) => Set(configure, "frequency_encoding"); - public void OneHotEncoding(OneHotEncodingPreprocessor variant) => Set(variant, "one_hot_encoding"); - public void OneHotEncoding(Action> configure) => Set(configure, "one_hot_encoding"); - public void TargetMeanEncoding(TargetMeanEncodingPreprocessor variant) => Set(variant, "target_mean_encoding"); - public void TargetMeanEncoding(Action> configure) => Set(configure, "target_mean_encoding"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class PreprocessorDescriptor : SerializableDescriptorBase - { - internal PreprocessorDescriptor(Action configure) => configure.Invoke(this); - public PreprocessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the PreprocessorDescriptor. Only a single Preprocessor variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the PreprocessorDescriptor. Only a single Preprocessor variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void FrequencyEncoding(FrequencyEncodingPreprocessor variant) => Set(variant, "frequency_encoding"); - public void FrequencyEncoding(Action configure) => Set(configure, "frequency_encoding"); - public void FrequencyEncoding(Action> configure) => Set(configure, "frequency_encoding"); - public void OneHotEncoding(OneHotEncodingPreprocessor variant) => Set(variant, "one_hot_encoding"); - public void OneHotEncoding(Action configure) => Set(configure, "one_hot_encoding"); - public void OneHotEncoding(Action> configure) => Set(configure, "one_hot_encoding"); - public void TargetMeanEncoding(TargetMeanEncodingPreprocessor variant) => Set(variant, "target_mean_encoding"); - public void TargetMeanEncoding(Action configure) => Set(configure, "target_mean_encoding"); - public void TargetMeanEncoding(Action> configure) => Set(configure, "target_mean_encoding"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/RuleCondition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/RuleCondition.g.cs deleted file mode 100644 index 2fdb64aaf2c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/RuleCondition.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class RuleCondition - { - [JsonInclude] - [JsonPropertyName("applies_to")] - public Elastic.Clients.Elasticsearch.Ml.AppliesTo AppliesTo { get; set; } - - [JsonInclude] - [JsonPropertyName("operator")] - public Elastic.Clients.Elasticsearch.Ml.ConditionOperator Operator { get; set; } - - [JsonInclude] - [JsonPropertyName("value")] - public double Value { get; set; } - } - - public sealed partial class RuleConditionDescriptor : SerializableDescriptorBase - { - internal RuleConditionDescriptor(Action configure) => configure.Invoke(this); - public RuleConditionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.AppliesTo AppliesToValue { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.ConditionOperator OperatorValue { get; set; } - - private double ValueValue { get; set; } - - public RuleConditionDescriptor AppliesTo(Elastic.Clients.Elasticsearch.Ml.AppliesTo appliesTo) - { - AppliesToValue = appliesTo; - return Self; - } - - public RuleConditionDescriptor Operator(Elastic.Clients.Elasticsearch.Ml.ConditionOperator op) - { - OperatorValue = op; - return Self; - } - - public RuleConditionDescriptor Value(double value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("applies_to"); - JsonSerializer.Serialize(writer, AppliesToValue, options); - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - writer.WritePropertyName("value"); - writer.WriteNumberValue(ValueValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TargetMeanEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TargetMeanEncodingPreprocessor.g.cs deleted file mode 100644 index 971b4d1fdd5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TargetMeanEncodingPreprocessor.g.cs +++ /dev/null @@ -1,153 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TargetMeanEncodingPreprocessor - { - [JsonInclude] - [JsonPropertyName("default_value")] - public double DefaultValue { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_name")] - public string FeatureName { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public string Field { get; set; } - - [JsonInclude] - [JsonPropertyName("target_map")] - public Dictionary TargetMap { get; set; } - } - - public sealed partial class TargetMeanEncodingPreprocessorDescriptor : SerializableDescriptorBase> - { - internal TargetMeanEncodingPreprocessorDescriptor(Action> configure) => configure.Invoke(this); - public TargetMeanEncodingPreprocessorDescriptor() : base() - { - } - - private double DefaultValueValue { get; set; } - - private string FeatureNameValue { get; set; } - - private string FieldValue { get; set; } - - private Dictionary TargetMapValue { get; set; } - - public TargetMeanEncodingPreprocessorDescriptor DefaultValue(double defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class TargetMeanEncodingPreprocessorDescriptor : SerializableDescriptorBase - { - internal TargetMeanEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - public TargetMeanEncodingPreprocessorDescriptor() : base() - { - } - - private double DefaultValueValue { get; set; } - - private string FeatureNameValue { get; set; } - - private string FieldValue { get; set; } - - private Dictionary TargetMapValue { get; set; } - - public TargetMeanEncodingPreprocessorDescriptor DefaultValue(double defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportance.g.cs deleted file mode 100644 index 7aa3abc95aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportance.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TotalFeatureImportance - { - [JsonInclude] - [JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - - [JsonInclude] - [JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - - [JsonInclude] - [JsonPropertyName("importance")] - public IReadOnlyCollection Importance { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceClass.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceClass.g.cs deleted file mode 100644 index 08a4de00124..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceClass.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TotalFeatureImportanceClass - { - [JsonInclude] - [JsonPropertyName("class_name")] - public string ClassName { get; init; } - - [JsonInclude] - [JsonPropertyName("importance")] - public IReadOnlyCollection Importance { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceStatistics.g.cs deleted file mode 100644 index 4eb989eb6cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TotalFeatureImportanceStatistics.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TotalFeatureImportanceStatistics - { - [JsonInclude] - [JsonPropertyName("max")] - public int Max { get; init; } - - [JsonInclude] - [JsonPropertyName("mean_magnitude")] - public double MeanMagnitude { get; init; } - - [JsonInclude] - [JsonPropertyName("min")] - public int Min { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModel.g.cs deleted file mode 100644 index e733f933d13..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModel.g.cs +++ /dev/null @@ -1,193 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModel - { - [JsonInclude] - [JsonPropertyName("ensemble")] - public Elastic.Clients.Elasticsearch.Ml.Ensemble? Ensemble { get; set; } - - [JsonInclude] - [JsonPropertyName("tree")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelTree? Tree { get; set; } - - [JsonInclude] - [JsonPropertyName("tree_node")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelTreeNode? TreeNode { get; set; } - } - - public sealed partial class TrainedModelDescriptor : SerializableDescriptorBase - { - internal TrainedModelDescriptor(Action configure) => configure.Invoke(this); - public TrainedModelDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Ml.Ensemble? EnsembleValue { get; set; } - - private EnsembleDescriptor EnsembleDescriptor { get; set; } - - private Action EnsembleDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModelTree? TreeValue { get; set; } - - private TrainedModelTreeDescriptor TreeDescriptor { get; set; } - - private Action TreeDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Ml.TrainedModelTreeNode? TreeNodeValue { get; set; } - - private TrainedModelTreeNodeDescriptor TreeNodeDescriptor { get; set; } - - private Action TreeNodeDescriptorAction { get; set; } - - public TrainedModelDescriptor Ensemble(Elastic.Clients.Elasticsearch.Ml.Ensemble? ensemble) - { - EnsembleDescriptor = null; - EnsembleDescriptorAction = null; - EnsembleValue = ensemble; - return Self; - } - - public TrainedModelDescriptor Ensemble(EnsembleDescriptor descriptor) - { - EnsembleValue = null; - EnsembleDescriptorAction = null; - EnsembleDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor Ensemble(Action configure) - { - EnsembleValue = null; - EnsembleDescriptor = null; - EnsembleDescriptorAction = configure; - return Self; - } - - public TrainedModelDescriptor Tree(Elastic.Clients.Elasticsearch.Ml.TrainedModelTree? tree) - { - TreeDescriptor = null; - TreeDescriptorAction = null; - TreeValue = tree; - return Self; - } - - public TrainedModelDescriptor Tree(TrainedModelTreeDescriptor descriptor) - { - TreeValue = null; - TreeDescriptorAction = null; - TreeDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor Tree(Action configure) - { - TreeValue = null; - TreeDescriptor = null; - TreeDescriptorAction = configure; - return Self; - } - - public TrainedModelDescriptor TreeNode(Elastic.Clients.Elasticsearch.Ml.TrainedModelTreeNode? treeNode) - { - TreeNodeDescriptor = null; - TreeNodeDescriptorAction = null; - TreeNodeValue = treeNode; - return Self; - } - - public TrainedModelDescriptor TreeNode(TrainedModelTreeNodeDescriptor descriptor) - { - TreeNodeValue = null; - TreeNodeDescriptorAction = null; - TreeNodeDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor TreeNode(Action configure) - { - TreeNodeValue = null; - TreeNodeDescriptor = null; - TreeNodeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnsembleDescriptor is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, EnsembleDescriptor, options); - } - else if (EnsembleDescriptorAction is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, new EnsembleDescriptor(EnsembleDescriptorAction), options); - } - else if (EnsembleValue is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, EnsembleValue, options); - } - - if (TreeDescriptor is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, TreeDescriptor, options); - } - else if (TreeDescriptorAction is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, new TrainedModelTreeDescriptor(TreeDescriptorAction), options); - } - else if (TreeValue is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, TreeValue, options); - } - - if (TreeNodeDescriptor is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, TreeNodeDescriptor, options); - } - else if (TreeNodeDescriptorAction is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, new TrainedModelTreeNodeDescriptor(TreeNodeDescriptorAction), options); - } - else if (TreeNodeValue is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, TreeNodeValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAssignmentRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAssignmentRoutingTable.g.cs deleted file mode 100644 index e761b70289e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelAssignmentRoutingTable.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelAssignmentRoutingTable - { - [JsonInclude] - [JsonPropertyName("current_allocations")] - public int CurrentAllocations { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.Ml.RoutingState RoutingState { get; init; } - - [JsonInclude] - [JsonPropertyName("target_allocations")] - public int TargetAllocations { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigInput.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigInput.g.cs deleted file mode 100644 index 1477369f590..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigInput.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelConfigInput - { - [JsonInclude] - [JsonPropertyName("field_names")] - public IReadOnlyCollection FieldNames { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigMetadata.g.cs deleted file mode 100644 index c8177c5cb83..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelConfigMetadata.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelConfigMetadata - { - [JsonInclude] - [JsonPropertyName("feature_importance_baseline")] - public Dictionary? FeatureImportanceBaseline { get; init; } - - [JsonInclude] - [JsonPropertyName("hyperparameters")] - public IReadOnlyCollection? Hyperparameters { get; init; } - - [JsonInclude] - [JsonPropertyName("model_aliases")] - public IReadOnlyCollection? ModelAliases { get; init; } - - [JsonInclude] - [JsonPropertyName("total_feature_importance")] - public IReadOnlyCollection? TotalFeatureImportance { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentAllocationStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentAllocationStatus.g.cs deleted file mode 100644 index 3f6b43b6242..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentAllocationStatus.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelDeploymentAllocationStatus - { - [JsonInclude] - [JsonPropertyName("allocation_count")] - public int AllocationCount { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Ml.DeploymentAllocationState State { get; init; } - - [JsonInclude] - [JsonPropertyName("target_allocation_count")] - public int TargetAllocationCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentNodesStats.g.cs deleted file mode 100644 index 09eaa9337be..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentNodesStats.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelDeploymentNodesStats - { - [JsonInclude] - [JsonPropertyName("average_inference_time_ms")] - public double AverageInferenceTimeMs { get; init; } - - [JsonInclude] - [JsonPropertyName("error_count")] - public int ErrorCount { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } - - [JsonInclude] - [JsonPropertyName("last_access")] - public long LastAccess { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.Ml.DiscoveryNode Node { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_pending_requests")] - public int NumberOfPendingRequests { get; init; } - - [JsonInclude] - [JsonPropertyName("rejection_execution_count")] - public int RejectionExecutionCount { get; init; } - - [JsonInclude] - [JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelAssignmentRoutingTable RoutingState { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time")] - public long StartTime { get; init; } - - [JsonInclude] - [JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } - - [JsonInclude] - [JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentStats.g.cs deleted file mode 100644 index 39363e606d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelDeploymentStats.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelDeploymentStats - { - [JsonInclude] - [JsonPropertyName("allocation_status")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelDeploymentAllocationStatus AllocationStatus { get; init; } - - [JsonInclude] - [JsonPropertyName("error_count")] - public int ErrorCount { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } - - [JsonInclude] - [JsonPropertyName("model_id")] - public string ModelId { get; init; } - - [JsonInclude] - [JsonPropertyName("nodes")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelDeploymentNodesStats Nodes { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } - - [JsonInclude] - [JsonPropertyName("queue_capacity")] - public int QueueCapacity { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("rejected_execution_count")] - public int RejectedExecutionCount { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time")] - public long StartTime { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Ml.DeploymentState State { get; init; } - - [JsonInclude] - [JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } - - [JsonInclude] - [JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelInferenceStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelInferenceStats.g.cs deleted file mode 100644 index 76bab9d59f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelInferenceStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelInferenceStats - { - [JsonInclude] - [JsonPropertyName("cache_miss_count")] - public int CacheMissCount { get; init; } - - [JsonInclude] - [JsonPropertyName("failure_count")] - public int FailureCount { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } - - [JsonInclude] - [JsonPropertyName("missing_all_fields_count")] - public int MissingAllFieldsCount { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public DateTimeOffset Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocation.g.cs deleted file mode 100644 index 07260326444..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocation.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelLocation - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelLocationIndex Index { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocationIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocationIndex.g.cs deleted file mode 100644 index 595a02935d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelLocationIndex.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelLocationIndex - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelSizeStats.g.cs deleted file mode 100644 index 1f1761bad69..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelSizeStats.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelSizeStats - { - [JsonInclude] - [JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize ModelSizeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("required_native_memory_bytes")] - public int RequiredNativeMemoryBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelStats.g.cs deleted file mode 100644 index 18ffd9d5cf0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelStats.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelStats - { - [JsonInclude] - [JsonPropertyName("deployment_stats")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelDeploymentStats? DeploymentStats { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_stats")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelInferenceStats? InferenceStats { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public Dictionary? Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("model_id")] - public string ModelId { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Ml.TrainedModelSizeStats ModelSizeStats { get; init; } - - [JsonInclude] - [JsonPropertyName("pipeline_count")] - public int PipelineCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTree.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTree.g.cs deleted file mode 100644 index 61ec79be468..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTree.g.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelTree - { - [JsonInclude] - [JsonPropertyName("classification_labels")] - public IEnumerable? ClassificationLabels { get; set; } - - [JsonInclude] - [JsonPropertyName("feature_names")] - public IEnumerable FeatureNames { get; set; } - - [JsonInclude] - [JsonPropertyName("target_type")] - public string? TargetType { get; set; } - - [JsonInclude] - [JsonPropertyName("tree_structure")] - public IEnumerable TreeStructure { get; set; } - } - - public sealed partial class TrainedModelTreeDescriptor : SerializableDescriptorBase - { - internal TrainedModelTreeDescriptor(Action configure) => configure.Invoke(this); - public TrainedModelTreeDescriptor() : base() - { - } - - private IEnumerable? ClassificationLabelsValue { get; set; } - - private IEnumerable FeatureNamesValue { get; set; } - - private string? TargetTypeValue { get; set; } - - private IEnumerable TreeStructureValue { get; set; } - - private TrainedModelTreeNodeDescriptor TreeStructureDescriptor { get; set; } - - private Action TreeStructureDescriptorAction { get; set; } - - private Action[] TreeStructureDescriptorActions { get; set; } - - public TrainedModelTreeDescriptor ClassificationLabels(IEnumerable? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - public TrainedModelTreeDescriptor FeatureNames(IEnumerable featureNames) - { - FeatureNamesValue = featureNames; - return Self; - } - - public TrainedModelTreeDescriptor TargetType(string? targetType) - { - TargetTypeValue = targetType; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(IEnumerable treeStructure) - { - TreeStructureDescriptor = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = null; - TreeStructureValue = treeStructure; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(TrainedModelTreeNodeDescriptor descriptor) - { - TreeStructureValue = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = null; - TreeStructureDescriptor = descriptor; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(Action configure) - { - TreeStructureValue = null; - TreeStructureDescriptor = null; - TreeStructureDescriptorActions = null; - TreeStructureDescriptorAction = configure; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(params Action[] configure) - { - TreeStructureValue = null; - TreeStructureDescriptor = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - writer.WritePropertyName("feature_names"); - JsonSerializer.Serialize(writer, FeatureNamesValue, options); - if (!string.IsNullOrEmpty(TargetTypeValue)) - { - writer.WritePropertyName("target_type"); - writer.WriteStringValue(TargetTypeValue); - } - - if (TreeStructureDescriptor is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TreeStructureDescriptor, options); - writer.WriteEndArray(); - } - else if (TreeStructureDescriptorAction is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new TrainedModelTreeNodeDescriptor(TreeStructureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TreeStructureDescriptorActions is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - foreach (var action in TreeStructureDescriptorActions) - { - JsonSerializer.Serialize(writer, new TrainedModelTreeNodeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("tree_structure"); - JsonSerializer.Serialize(writer, TreeStructureValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTreeNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTreeNode.g.cs deleted file mode 100644 index d5511653d8f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TrainedModelTreeNode.g.cs +++ /dev/null @@ -1,201 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TrainedModelTreeNode - { - [JsonInclude] - [JsonPropertyName("decision_type")] - public string? DecisionType { get; set; } - - [JsonInclude] - [JsonPropertyName("default_left")] - public bool? DefaultLeft { get; set; } - - [JsonInclude] - [JsonPropertyName("leaf_value")] - public double? LeafValue { get; set; } - - [JsonInclude] - [JsonPropertyName("left_child")] - public int? LeftChild { get; set; } - - [JsonInclude] - [JsonPropertyName("node_index")] - public int NodeIndex { get; set; } - - [JsonInclude] - [JsonPropertyName("right_child")] - public int? RightChild { get; set; } - - [JsonInclude] - [JsonPropertyName("split_feature")] - public int? SplitFeature { get; set; } - - [JsonInclude] - [JsonPropertyName("split_gain")] - public int? SplitGain { get; set; } - - [JsonInclude] - [JsonPropertyName("threshold")] - public double? Threshold { get; set; } - } - - public sealed partial class TrainedModelTreeNodeDescriptor : SerializableDescriptorBase - { - internal TrainedModelTreeNodeDescriptor(Action configure) => configure.Invoke(this); - public TrainedModelTreeNodeDescriptor() : base() - { - } - - private string? DecisionTypeValue { get; set; } - - private bool? DefaultLeftValue { get; set; } - - private double? LeafValueValue { get; set; } - - private int? LeftChildValue { get; set; } - - private int NodeIndexValue { get; set; } - - private int? RightChildValue { get; set; } - - private int? SplitFeatureValue { get; set; } - - private int? SplitGainValue { get; set; } - - private double? ThresholdValue { get; set; } - - public TrainedModelTreeNodeDescriptor DecisionType(string? decisionType) - { - DecisionTypeValue = decisionType; - return Self; - } - - public TrainedModelTreeNodeDescriptor DefaultLeft(bool? defaultLeft = true) - { - DefaultLeftValue = defaultLeft; - return Self; - } - - public TrainedModelTreeNodeDescriptor LeafValue(double? leafValue) - { - LeafValueValue = leafValue; - return Self; - } - - public TrainedModelTreeNodeDescriptor LeftChild(int? leftChild) - { - LeftChildValue = leftChild; - return Self; - } - - public TrainedModelTreeNodeDescriptor NodeIndex(int nodeIndex) - { - NodeIndexValue = nodeIndex; - return Self; - } - - public TrainedModelTreeNodeDescriptor RightChild(int? rightChild) - { - RightChildValue = rightChild; - return Self; - } - - public TrainedModelTreeNodeDescriptor SplitFeature(int? splitFeature) - { - SplitFeatureValue = splitFeature; - return Self; - } - - public TrainedModelTreeNodeDescriptor SplitGain(int? splitGain) - { - SplitGainValue = splitGain; - return Self; - } - - public TrainedModelTreeNodeDescriptor Threshold(double? threshold) - { - ThresholdValue = threshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DecisionTypeValue)) - { - writer.WritePropertyName("decision_type"); - writer.WriteStringValue(DecisionTypeValue); - } - - if (DefaultLeftValue.HasValue) - { - writer.WritePropertyName("default_left"); - writer.WriteBooleanValue(DefaultLeftValue.Value); - } - - if (LeafValueValue.HasValue) - { - writer.WritePropertyName("leaf_value"); - writer.WriteNumberValue(LeafValueValue.Value); - } - - if (LeftChildValue.HasValue) - { - writer.WritePropertyName("left_child"); - writer.WriteNumberValue(LeftChildValue.Value); - } - - writer.WritePropertyName("node_index"); - writer.WriteNumberValue(NodeIndexValue); - if (RightChildValue.HasValue) - { - writer.WritePropertyName("right_child"); - writer.WriteNumberValue(RightChildValue.Value); - } - - if (SplitFeatureValue.HasValue) - { - writer.WritePropertyName("split_feature"); - writer.WriteNumberValue(SplitFeatureValue.Value); - } - - if (SplitGainValue.HasValue) - { - writer.WritePropertyName("split_gain"); - writer.WriteNumberValue(SplitGainValue.Value); - } - - if (ThresholdValue.HasValue) - { - writer.WritePropertyName("threshold"); - writer.WriteNumberValue(ThresholdValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TransformAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TransformAuthorization.g.cs deleted file mode 100644 index 0619c84fcb7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TransformAuthorization.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class TransformAuthorization - { - [JsonInclude] - [JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Ml.ApiKeyAuthorization? ApiKey { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Weights.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Weights.g.cs deleted file mode 100644 index d074aed43e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/Weights.g.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Ml -{ - public sealed partial class Weights - { - } - - public sealed partial class WeightsDescriptor : SerializableDescriptorBase - { - internal WeightsDescriptor(Action configure) => configure.Invoke(this); - public WeightsDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ 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 deleted file mode 100644 index 5a37f669458..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public sealed partial class NodeStatistics - { - [JsonInclude] - [JsonPropertyName("failed")] - public int Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - - [JsonInclude] - [JsonPropertyName("successful")] - public int Successful { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public int Total { get; init; } - } -} \ 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 deleted file mode 100644 index 62e1002d579..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/AdaptiveSelection.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class AdaptiveSelection - { - [JsonInclude] - [JsonPropertyName("avg_queue_size")] - public long? AvgQueueSize { get; init; } - - [JsonInclude] - [JsonPropertyName("avg_response_time")] - public long? AvgResponseTime { get; init; } - - [JsonInclude] - [JsonPropertyName("avg_response_time_ns")] - public long? AvgResponseTimeNs { get; init; } - - [JsonInclude] - [JsonPropertyName("avg_service_time")] - public string? AvgServiceTime { get; init; } - - [JsonInclude] - [JsonPropertyName("avg_service_time_ns")] - public long? AvgServiceTimeNs { get; init; } - - [JsonInclude] - [JsonPropertyName("outgoing_searches")] - public long? OutgoingSearches { get; init; } - - [JsonInclude] - [JsonPropertyName("rank")] - public string? Rank { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs deleted file mode 100644 index 15ebcb98b8c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Breaker.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Breaker - { - [JsonInclude] - [JsonPropertyName("estimated_size")] - public string? EstimatedSize { get; init; } - - [JsonInclude] - [JsonPropertyName("estimated_size_in_bytes")] - public long? EstimatedSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("limit_size")] - public string? LimitSize { get; init; } - - [JsonInclude] - [JsonPropertyName("limit_size_in_bytes")] - public long? LimitSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("overhead")] - public float? Overhead { get; init; } - - [JsonInclude] - [JsonPropertyName("tripped")] - public float? Tripped { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs deleted file mode 100644 index f19bc9a139c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cgroup.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Cgroup - { - [JsonInclude] - [JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Nodes.CgroupCpu? Cpu { get; init; } - - [JsonInclude] - [JsonPropertyName("cpuacct")] - public Elastic.Clients.Elasticsearch.Nodes.CpuAcct? Cpuacct { get; init; } - - [JsonInclude] - [JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Nodes.CgroupMemory? Memory { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs deleted file mode 100644 index c23e5002336..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpu.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class CgroupCpu - { - [JsonInclude] - [JsonPropertyName("cfs_period_micros")] - public int? CfsPeriodMicros { get; init; } - - [JsonInclude] - [JsonPropertyName("cfs_quota_micros")] - public int? CfsQuotaMicros { get; init; } - - [JsonInclude] - [JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - [JsonInclude] - [JsonPropertyName("stat")] - public Elastic.Clients.Elasticsearch.Nodes.CgroupCpuStat? Stat { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs deleted file mode 100644 index d3f765adeaa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupCpuStat.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class CgroupCpuStat - { - [JsonInclude] - [JsonPropertyName("number_of_elapsed_periods")] - public long? NumberOfElapsedPeriods { get; init; } - - [JsonInclude] - [JsonPropertyName("number_of_times_throttled")] - public long? NumberOfTimesThrottled { get; init; } - - [JsonInclude] - [JsonPropertyName("time_throttled_nanos")] - public long? TimeThrottledNanos { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs deleted file mode 100644 index 65ffc81c762..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CgroupMemory.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class CgroupMemory - { - [JsonInclude] - [JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - [JsonInclude] - [JsonPropertyName("limit_in_bytes")] - public string? LimitInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("usage_in_bytes")] - public string? UsageInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs deleted file mode 100644 index 9974132304c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Client.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Client - { - [JsonInclude] - [JsonPropertyName("agent")] - public string? Agent { get; init; } - - [JsonInclude] - [JsonPropertyName("closed_time_millis")] - public long? ClosedTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public long? Id { get; init; } - - [JsonInclude] - [JsonPropertyName("last_request_time_millis")] - public long? LastRequestTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("last_uri")] - public string? LastUri { get; init; } - - [JsonInclude] - [JsonPropertyName("local_address")] - public string? LocalAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("opened_time_millis")] - public long? OpenedTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("remote_address")] - public string? RemoteAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("request_count")] - public long? RequestCount { get; init; } - - [JsonInclude] - [JsonPropertyName("request_size_bytes")] - public long? RequestSizeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("x_opaque_id")] - public string? XOpaqueId { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs deleted file mode 100644 index 94565ed234f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterAppliedStats.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ClusterAppliedStats - { - [JsonInclude] - [JsonPropertyName("recordings")] - public IReadOnlyCollection? Recordings { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs deleted file mode 100644 index e1fed23f262..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateQueue.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ClusterStateQueue - { - [JsonInclude] - [JsonPropertyName("committed")] - public long? Committed { get; init; } - - [JsonInclude] - [JsonPropertyName("pending")] - public long? Pending { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs deleted file mode 100644 index 3235ea8d881..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ClusterStateUpdate.g.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ClusterStateUpdate - { - [JsonInclude] - [JsonPropertyName("commit_time")] - public Elastic.Clients.Elasticsearch.Duration? CommitTime { get; init; } - - [JsonInclude] - [JsonPropertyName("commit_time_millis")] - public long? CommitTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("completion_time")] - public Elastic.Clients.Elasticsearch.Duration? CompletionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("completion_time_millis")] - public long? CompletionTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("computation_time")] - public Elastic.Clients.Elasticsearch.Duration? ComputationTime { get; init; } - - [JsonInclude] - [JsonPropertyName("computation_time_millis")] - public long? ComputationTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("context_construction_time")] - public Elastic.Clients.Elasticsearch.Duration? ContextConstructionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("context_construction_time_millis")] - public long? ContextConstructionTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("master_apply_time")] - public Elastic.Clients.Elasticsearch.Duration? MasterApplyTime { get; init; } - - [JsonInclude] - [JsonPropertyName("master_apply_time_millis")] - public long? MasterApplyTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("notification_time")] - public Elastic.Clients.Elasticsearch.Duration? NotificationTime { get; init; } - - [JsonInclude] - [JsonPropertyName("notification_time_millis")] - public long? NotificationTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("publication_time")] - public Elastic.Clients.Elasticsearch.Duration? PublicationTime { get; init; } - - [JsonInclude] - [JsonPropertyName("publication_time_millis")] - public long? PublicationTimeMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs deleted file mode 100644 index ee65874f7ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Context.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Context - { - [JsonInclude] - [JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - - [JsonInclude] - [JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - - [JsonInclude] - [JsonPropertyName("compilations")] - public long? Compilations { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs deleted file mode 100644 index 263f450d9d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Cpu.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Cpu - { - [JsonInclude] - [JsonPropertyName("load_average")] - public Dictionary? LoadAverage { get; init; } - - [JsonInclude] - [JsonPropertyName("percent")] - public int? Percent { get; init; } - - [JsonInclude] - [JsonPropertyName("sys")] - public Elastic.Clients.Elasticsearch.Duration? Sys { get; init; } - - [JsonInclude] - [JsonPropertyName("sys_in_millis")] - public long? SysInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Duration? Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_millis")] - public long? TotalInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("user")] - public Elastic.Clients.Elasticsearch.Duration? User { get; init; } - - [JsonInclude] - [JsonPropertyName("user_in_millis")] - public long? UserInMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs deleted file mode 100644 index 8c969f153d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/CpuAcct.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class CpuAcct - { - [JsonInclude] - [JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - [JsonInclude] - [JsonPropertyName("usage_nanos")] - public long? UsageNanos { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs deleted file mode 100644 index eb5ea4b1c33..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DataPathStats.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class DataPathStats - { - [JsonInclude] - [JsonPropertyName("available")] - public string? Available { get; init; } - - [JsonInclude] - [JsonPropertyName("available_in_bytes")] - public long? AvailableInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_queue")] - public string? DiskQueue { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_read_size")] - public string? DiskReadSize { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_read_size_in_bytes")] - public long? DiskReadSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_reads")] - public long? DiskReads { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_write_size")] - public string? DiskWriteSize { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_write_size_in_bytes")] - public long? DiskWriteSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("disk_writes")] - public long? DiskWrites { get; init; } - - [JsonInclude] - [JsonPropertyName("free")] - public string? Free { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("mount")] - public string? Mount { get; init; } - - [JsonInclude] - [JsonPropertyName("path")] - public string? Path { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public string? Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string? Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs deleted file mode 100644 index 1b09d1375ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/DeprecationIndexing.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class DeprecationIndexing - { - [JsonInclude] - [JsonPropertyName("enabled")] - public Union Enabled { get; init; } - } -} \ 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 deleted file mode 100644 index adef3c32cbc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Discovery.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Discovery - { - [JsonInclude] - [JsonPropertyName("cluster_applier_stats")] - public Elastic.Clients.Elasticsearch.Nodes.ClusterAppliedStats? ClusterApplierStats { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster_state_queue")] - public Elastic.Clients.Elasticsearch.Nodes.ClusterStateQueue? ClusterStateQueue { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster_state_update")] - public Dictionary? ClusterStateUpdate { get; init; } - - [JsonInclude] - [JsonPropertyName("published_cluster_states")] - public Elastic.Clients.Elasticsearch.Nodes.PublishedClusterStates? PublishedClusterStates { get; init; } - - [JsonInclude] - [JsonPropertyName("serialized_cluster_states")] - public Elastic.Clients.Elasticsearch.Nodes.SerializedClusterState? SerializedClusterStates { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs deleted file mode 100644 index 4da61232c56..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ExtendedMemoryStats - { - [JsonInclude] - [JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_percent")] - public int? FreePercent { get; init; } - - [JsonInclude] - [JsonPropertyName("resident")] - public string? Resident { get; init; } - - [JsonInclude] - [JsonPropertyName("resident_in_bytes")] - public long? ResidentInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("share")] - public string? Share { get; init; } - - [JsonInclude] - [JsonPropertyName("share_in_bytes")] - public long? ShareInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_virtual")] - public string? TotalVirtual { get; init; } - - [JsonInclude] - [JsonPropertyName("total_virtual_in_bytes")] - public long? TotalVirtualInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_percent")] - public int? UsedPercent { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs deleted file mode 100644 index 5d285e0dfb4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystem.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class FileSystem - { - [JsonInclude] - [JsonPropertyName("data")] - public IReadOnlyCollection? Data { get; init; } - - [JsonInclude] - [JsonPropertyName("io_stats")] - public Elastic.Clients.Elasticsearch.Nodes.IoStats? IoStats { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Nodes.FileSystemTotal? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs deleted file mode 100644 index 03b6aa9d1df..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/FileSystemTotal.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class FileSystemTotal - { - [JsonInclude] - [JsonPropertyName("available")] - public string? Available { get; init; } - - [JsonInclude] - [JsonPropertyName("available_in_bytes")] - public long? AvailableInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free")] - public string? Free { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public string? Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs deleted file mode 100644 index b9497be3acd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollector.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class GarbageCollector - { - [JsonInclude] - [JsonPropertyName("collectors")] - public Dictionary? Collectors { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs deleted file mode 100644 index 20805881c3e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class GarbageCollectorTotal - { - [JsonInclude] - [JsonPropertyName("collection_count")] - public long? CollectionCount { get; init; } - - [JsonInclude] - [JsonPropertyName("collection_time")] - public string? CollectionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("collection_time_in_millis")] - public long? CollectionTimeInMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs deleted file mode 100644 index de099a271f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HotThread.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class HotThread - { - [JsonInclude] - [JsonPropertyName("hosts")] - public IReadOnlyCollection Hosts { get; init; } - - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("node_name")] - public string NodeName { get; init; } - - [JsonInclude] - [JsonPropertyName("threads")] - public IReadOnlyCollection Threads { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs deleted file mode 100644 index b2591eaf98d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Http - { - [JsonInclude] - [JsonPropertyName("clients")] - public IReadOnlyCollection? Clients { get; init; } - - [JsonInclude] - [JsonPropertyName("current_open")] - public int? CurrentOpen { get; init; } - - [JsonInclude] - [JsonPropertyName("total_opened")] - public long? TotalOpened { get; init; } - } -} \ 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 deleted file mode 100644 index 67e96f97f42..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressure.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class IndexingPressure - { - [JsonInclude] - [JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Nodes.IndexingPressureMemory? Memory { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs deleted file mode 100644 index 4d748102126..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IndexingPressureMemory.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class IndexingPressureMemory - { - [JsonInclude] - [JsonPropertyName("current")] - public Elastic.Clients.Elasticsearch.Nodes.PressureMemory? Current { get; init; } - - [JsonInclude] - [JsonPropertyName("limit_in_bytes")] - public long? LimitInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Nodes.PressureMemory? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs deleted file mode 100644 index b2538d4efbc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Ingest - { - [JsonInclude] - [JsonPropertyName("pipelines")] - public Dictionary? Pipelines { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Nodes.IngestTotal? Total { get; init; } - } -} \ 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 deleted file mode 100644 index fc268249d89..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class IngestTotal - { - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("current")] - public long? Current { get; init; } - - [JsonInclude] - [JsonPropertyName("failed")] - public long? Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("processors")] - public IReadOnlyCollection>? Processors { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_millis")] - public long? TimeInMillis { get; init; } - } -} \ 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 deleted file mode 100644 index 5d10ac1255d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStatDevice.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class IoStatDevice - { - [JsonInclude] - [JsonPropertyName("device_name")] - public string? DeviceName { get; init; } - - [JsonInclude] - [JsonPropertyName("operations")] - public long? Operations { get; init; } - - [JsonInclude] - [JsonPropertyName("read_kilobytes")] - public long? ReadKilobytes { get; init; } - - [JsonInclude] - [JsonPropertyName("read_operations")] - public long? ReadOperations { get; init; } - - [JsonInclude] - [JsonPropertyName("write_kilobytes")] - public long? WriteKilobytes { get; init; } - - [JsonInclude] - [JsonPropertyName("write_operations")] - public long? WriteOperations { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs deleted file mode 100644 index 0cf5036e3ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IoStats.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class IoStats - { - [JsonInclude] - [JsonPropertyName("devices")] - public IReadOnlyCollection? Devices { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Nodes.IoStatDevice? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs deleted file mode 100644 index b3620e17b7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Jvm.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Jvm - { - [JsonInclude] - [JsonPropertyName("buffer_pools")] - public Dictionary? BufferPools { get; init; } - - [JsonInclude] - [JsonPropertyName("classes")] - public Elastic.Clients.Elasticsearch.Nodes.JvmClasses? Classes { get; init; } - - [JsonInclude] - [JsonPropertyName("gc")] - public Elastic.Clients.Elasticsearch.Nodes.GarbageCollector? Gc { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Nodes.JvmMemoryStats? Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("threads")] - public Elastic.Clients.Elasticsearch.Nodes.JvmThreads? Threads { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("uptime")] - public string? Uptime { get; init; } - - [JsonInclude] - [JsonPropertyName("uptime_in_millis")] - public long? UptimeInMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs deleted file mode 100644 index fb4e21ae4ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmClasses.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class JvmClasses - { - [JsonInclude] - [JsonPropertyName("current_loaded_count")] - public long? CurrentLoadedCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_loaded_count")] - public long? TotalLoadedCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_unloaded_count")] - public long? TotalUnloadedCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs deleted file mode 100644 index 761a409e43c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmMemoryStats.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class JvmMemoryStats - { - [JsonInclude] - [JsonPropertyName("heap_committed_in_bytes")] - public long? HeapCommittedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_max_in_bytes")] - public long? HeapMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_used_in_bytes")] - public long? HeapUsedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_used_percent")] - public long? HeapUsedPercent { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_committed_in_bytes")] - public long? NonHeapCommittedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_used_in_bytes")] - public long? NonHeapUsedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("pools")] - public Dictionary? Pools { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs deleted file mode 100644 index 8692f5338c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/JvmThreads.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class JvmThreads - { - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("peak_count")] - public long? PeakCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs deleted file mode 100644 index fab8083e54a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/KeyedProcessor.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class KeyedProcessor - { - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Nodes.Processor? Stats { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string? Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs deleted file mode 100644 index a99bf51ed06..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/MemoryStats.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class MemoryStats - { - [JsonInclude] - [JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("resident")] - public string? Resident { get; init; } - - [JsonInclude] - [JsonPropertyName("resident_in_bytes")] - public long? ResidentInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("share")] - public string? Share { get; init; } - - [JsonInclude] - [JsonPropertyName("share_in_bytes")] - public long? ShareInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_virtual")] - public string? TotalVirtual { get; init; } - - [JsonInclude] - [JsonPropertyName("total_virtual_in_bytes")] - public long? TotalVirtualInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs deleted file mode 100644 index 4dd95d00045..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeBufferPool.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeBufferPool - { - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("total_capacity")] - public string? TotalCapacity { get; init; } - - [JsonInclude] - [JsonPropertyName("total_capacity_in_bytes")] - public long? TotalCapacityInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used")] - public string? Used { get; init; } - - [JsonInclude] - [JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs deleted file mode 100644 index 39510a5b811..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfo.g.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfo - { - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("build_flavor")] - public string BuildFlavor { get; init; } - - [JsonInclude] - [JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - - [JsonInclude] - [JsonPropertyName("build_type")] - public string BuildType { get; init; } - - [JsonInclude] - [JsonPropertyName("host")] - public string Host { get; init; } - - [JsonInclude] - [JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoHttp? Http { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngest? Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("ip")] - public string Ip { get; init; } - - [JsonInclude] - [JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Nodes.NodeJvmInfo? Jvm { get; init; } - - [JsonInclude] - [JsonPropertyName("modules")] - public IReadOnlyCollection? Modules { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("network")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoNetwork? Network { get; init; } - - [JsonInclude] - [JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Nodes.NodeOperatingSystemInfo? Os { get; init; } - - [JsonInclude] - [JsonPropertyName("plugins")] - public IReadOnlyCollection? Plugins { get; init; } - - [JsonInclude] - [JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Nodes.NodeProcessInfo? Process { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettings? Settings { get; init; } - - [JsonInclude] - [JsonPropertyName("thread_pool")] - public Dictionary? ThreadPool { get; init; } - - [JsonInclude] - [JsonPropertyName("total_indexing_buffer")] - public long? TotalIndexingBuffer { get; init; } - - [JsonInclude] - [JsonPropertyName("total_indexing_buffer_in_bytes")] - public Elastic.Clients.Elasticsearch.ByteSize? TotalIndexingBufferInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoTransport? Transport { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs deleted file mode 100644 index 076eda47eb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoAction.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoAction - { - [JsonInclude] - [JsonPropertyName("destructive_requires_name")] - public string DestructiveRequiresName { get; init; } - } -} \ 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 deleted file mode 100644 index f14067ef515..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoBootstrap - { - [JsonInclude] - [JsonPropertyName("memory_lock")] - public string MemoryLock { get; init; } - } -} \ 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 deleted file mode 100644 index 3c886b3914c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoClient.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoClient - { - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ 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 deleted file mode 100644 index d45ed1d4423..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoDiscover.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoDiscover - { - [JsonInclude] - [JsonPropertyName("seed_hosts")] - public string SeedHosts { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs deleted file mode 100644 index 6cebca50827..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoHttp.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoHttp - { - [JsonInclude] - [JsonPropertyName("bound_address")] - public IReadOnlyCollection BoundAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("max_content_length")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxContentLength { get; init; } - - [JsonInclude] - [JsonPropertyName("max_content_length_in_bytes")] - public long MaxContentLengthInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("publish_address")] - public string PublishAddress { get; init; } - } -} \ 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 deleted file mode 100644 index a5e5c2af2f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngest.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoIngest - { - [JsonInclude] - [JsonPropertyName("processors")] - public IReadOnlyCollection Processors { get; init; } - } -} \ 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 deleted file mode 100644 index 5064155558b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoIngestDownloader - { - [JsonInclude] - [JsonPropertyName("enabled")] - public string Enabled { get; init; } - } -} \ 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 deleted file mode 100644 index 36a2f985850..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoIngestInfo - { - [JsonInclude] - [JsonPropertyName("downloader")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestDownloader Downloader { get; init; } - } -} \ 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 deleted file mode 100644 index 35c553fb4b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoIngestProcessor - { - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ 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 deleted file mode 100644 index 8e2822a034e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoJvmMemory - { - [JsonInclude] - [JsonPropertyName("direct_max")] - public Elastic.Clients.Elasticsearch.ByteSize? DirectMax { get; init; } - - [JsonInclude] - [JsonPropertyName("direct_max_in_bytes")] - public long DirectMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_init")] - public Elastic.Clients.Elasticsearch.ByteSize? HeapInit { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_init_in_bytes")] - public long HeapInitInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_max")] - public Elastic.Clients.Elasticsearch.ByteSize? HeapMax { get; init; } - - [JsonInclude] - [JsonPropertyName("heap_max_in_bytes")] - public long HeapMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_init")] - public Elastic.Clients.Elasticsearch.ByteSize? NonHeapInit { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_init_in_bytes")] - public long NonHeapInitInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_max")] - public Elastic.Clients.Elasticsearch.ByteSize? NonHeapMax { get; init; } - - [JsonInclude] - [JsonPropertyName("non_heap_max_in_bytes")] - public long NonHeapMaxInBytes { get; init; } - } -} \ 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 deleted file mode 100644 index 73a106ffa4b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoMemory.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoMemory - { - [JsonInclude] - [JsonPropertyName("total")] - public string Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetwork.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetwork.g.cs deleted file mode 100644 index 6684e22caf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetwork.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoNetwork - { - [JsonInclude] - [JsonPropertyName("primary_interface")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoNetworkInterface PrimaryInterface { get; init; } - - [JsonInclude] - [JsonPropertyName("refresh_interval")] - public int RefreshInterval { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs deleted file mode 100644 index d9076d20282..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoNetworkInterface - { - [JsonInclude] - [JsonPropertyName("address")] - public string Address { get; init; } - - [JsonInclude] - [JsonPropertyName("mac_address")] - public string MacAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs deleted file mode 100644 index 22a906ed113..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoOSCPU - { - [JsonInclude] - [JsonPropertyName("cache_size")] - public string CacheSize { get; init; } - - [JsonInclude] - [JsonPropertyName("cache_size_in_bytes")] - public int CacheSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("cores_per_socket")] - public int CoresPerSocket { get; init; } - - [JsonInclude] - [JsonPropertyName("mhz")] - public int Mhz { get; init; } - - [JsonInclude] - [JsonPropertyName("model")] - public string Model { get; init; } - - [JsonInclude] - [JsonPropertyName("total_cores")] - public int TotalCores { get; init; } - - [JsonInclude] - [JsonPropertyName("total_sockets")] - public int TotalSockets { get; init; } - - [JsonInclude] - [JsonPropertyName("vendor")] - public string Vendor { get; init; } - } -} \ 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 deleted file mode 100644 index 743c07e3bf5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoPath - { - [JsonInclude] - [JsonPropertyName("data")] - public IReadOnlyCollection? Data { get; init; } - - [JsonInclude] - [JsonPropertyName("home")] - public string Home { get; init; } - - [JsonInclude] - [JsonPropertyName("logs")] - public string Logs { get; init; } - - [JsonInclude] - [JsonPropertyName("repo")] - public IReadOnlyCollection Repo { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs deleted file mode 100644 index 422b74f8b0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositories.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoRepositories - { - [JsonInclude] - [JsonPropertyName("url")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoRepositoriesUrl Url { get; init; } - } -} \ 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 deleted file mode 100644 index 8dfe3415141..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoRepositoriesUrl - { - [JsonInclude] - [JsonPropertyName("allowed_urls")] - public string AllowedUrls { get; init; } - } -} \ 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 deleted file mode 100644 index 8156c106f03..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoScript.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoScript - { - [JsonInclude] - [JsonPropertyName("allowed_types")] - public string AllowedTypes { get; init; } - - [JsonInclude] - [JsonPropertyName("disable_max_compilations_rate")] - public string DisableMaxCompilationsRate { get; init; } - } -} \ 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 deleted file mode 100644 index 7cf4b6bc080..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearch.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSearch - { - [JsonInclude] - [JsonPropertyName("remote")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearchRemote Remote { get; init; } - } -} \ 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 deleted file mode 100644 index 91a4f0bcd5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSearchRemote - { - [JsonInclude] - [JsonPropertyName("connect")] - public string Connect { get; init; } - } -} \ 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 deleted file mode 100644 index 2b4b0f05515..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettings.g.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettings - { - [JsonInclude] - [JsonPropertyName("action")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoAction? Action { get; init; } - - [JsonInclude] - [JsonPropertyName("bootstrap")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoBootstrap? Bootstrap { get; init; } - - [JsonInclude] - [JsonPropertyName("client")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoClient Client { get; init; } - - [JsonInclude] - [JsonPropertyName("cluster")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsCluster Cluster { get; init; } - - [JsonInclude] - [JsonPropertyName("discovery")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoDiscover? Discovery { get; init; } - - [JsonInclude] - [JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttp Http { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsIngest? Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("network")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsNetwork? Network { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsNode Node { get; init; } - - [JsonInclude] - [JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoPath Path { get; init; } - - [JsonInclude] - [JsonPropertyName("repositories")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoRepositories? Repositories { get; init; } - - [JsonInclude] - [JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoScript? Script { get; init; } - - [JsonInclude] - [JsonPropertyName("search")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSearch? Search { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransport Transport { get; init; } - - [JsonInclude] - [JsonPropertyName("xpack")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpack? Xpack { get; init; } - } -} \ 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 deleted file mode 100644 index 9aace08d308..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsCluster - { - [JsonInclude] - [JsonPropertyName("deprecation_indexing")] - public Elastic.Clients.Elasticsearch.Nodes.DeprecationIndexing? DeprecationIndexing { get; init; } - - [JsonInclude] - [JsonPropertyName("election")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsClusterElection Election { get; init; } - - [JsonInclude] - [JsonPropertyName("initial_master_nodes")] - public string? InitialMasterNodes { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexRouting? Routing { get; init; } - } -} \ 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 deleted file mode 100644 index 546db5a61a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsClusterElection - { - [JsonInclude] - [JsonPropertyName("strategy")] - public string Strategy { get; init; } - } -} \ 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 deleted file mode 100644 index db4a4b7f1e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsHttp - { - [JsonInclude] - [JsonPropertyName("compression")] - public Union? Compression { get; init; } - - [JsonInclude] - [JsonPropertyName("port")] - public Union? Port { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsHttpType Type { get; init; } - - [JsonInclude] - [JsonPropertyName("type.default")] - public string? TypeDefault { get; init; } - } -} \ 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 deleted file mode 100644 index ea2f9061044..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsHttpType - { - [JsonInclude] - [JsonPropertyName("default")] - public string Default { get; init; } - } -} \ 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 deleted file mode 100644 index 543e2b86528..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs +++ /dev/null @@ -1,165 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsIngest - { - [JsonInclude] - [JsonPropertyName("append")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Append { get; init; } - - [JsonInclude] - [JsonPropertyName("attachment")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Attachment { get; init; } - - [JsonInclude] - [JsonPropertyName("bytes")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Bytes { get; init; } - - [JsonInclude] - [JsonPropertyName("circle")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Circle { get; init; } - - [JsonInclude] - [JsonPropertyName("convert")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Convert { get; init; } - - [JsonInclude] - [JsonPropertyName("csv")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Csv { get; init; } - - [JsonInclude] - [JsonPropertyName("date")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Date { get; init; } - - [JsonInclude] - [JsonPropertyName("date_index_name")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? DateIndexName { get; init; } - - [JsonInclude] - [JsonPropertyName("dissect")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Dissect { get; init; } - - [JsonInclude] - [JsonPropertyName("dot_expander")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? DotExpander { get; init; } - - [JsonInclude] - [JsonPropertyName("drop")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Drop { get; init; } - - [JsonInclude] - [JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Enrich { get; init; } - - [JsonInclude] - [JsonPropertyName("fail")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Fail { get; init; } - - [JsonInclude] - [JsonPropertyName("foreach")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Foreach { get; init; } - - [JsonInclude] - [JsonPropertyName("geoip")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Geoip { get; init; } - - [JsonInclude] - [JsonPropertyName("grok")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Grok { get; init; } - - [JsonInclude] - [JsonPropertyName("gsub")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Gsub { get; init; } - - [JsonInclude] - [JsonPropertyName("inference")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Inference { get; init; } - - [JsonInclude] - [JsonPropertyName("join")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Join { get; init; } - - [JsonInclude] - [JsonPropertyName("json")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Json { get; init; } - - [JsonInclude] - [JsonPropertyName("kv")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Kv { get; init; } - - [JsonInclude] - [JsonPropertyName("lowercase")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Lowercase { get; init; } - - [JsonInclude] - [JsonPropertyName("pipeline")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Pipeline { get; init; } - - [JsonInclude] - [JsonPropertyName("remove")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Remove { get; init; } - - [JsonInclude] - [JsonPropertyName("rename")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Rename { get; init; } - - [JsonInclude] - [JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Script { get; init; } - - [JsonInclude] - [JsonPropertyName("set")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Set { get; init; } - - [JsonInclude] - [JsonPropertyName("set_security_user")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? SetSecurityUser { get; init; } - - [JsonInclude] - [JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Sort { get; init; } - - [JsonInclude] - [JsonPropertyName("split")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Split { get; init; } - - [JsonInclude] - [JsonPropertyName("trim")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Trim { get; init; } - - [JsonInclude] - [JsonPropertyName("uppercase")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Uppercase { get; init; } - - [JsonInclude] - [JsonPropertyName("urldecode")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? Urldecode { get; init; } - - [JsonInclude] - [JsonPropertyName("user_agent")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoIngestInfo? UserAgent { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs deleted file mode 100644 index 78e4c36f96f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsNetwork - { - [JsonInclude] - [JsonPropertyName("host")] - public string Host { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs deleted file mode 100644 index 3be5e9c76bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsNode - { - [JsonInclude] - [JsonPropertyName("attr")] - public Dictionary Attr { get; init; } - - [JsonInclude] - [JsonPropertyName("max_local_storage_nodes")] - public string? MaxLocalStorageNodes { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs deleted file mode 100644 index c375b88058a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsTransport - { - [JsonInclude] - [JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransportFeatures? Features { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoSettingsTransportType Type { get; init; } - - [JsonInclude] - [JsonPropertyName("type.default")] - public string? TypeDefault { get; init; } - } -} \ 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 deleted file mode 100644 index 11a5a4682f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsTransportFeatures - { - [JsonInclude] - [JsonPropertyName("x-pack")] - public string XPack { get; init; } - } -} \ 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 deleted file mode 100644 index 8a35880cc90..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoSettingsTransportType - { - [JsonInclude] - [JsonPropertyName("default")] - public string Default { get; init; } - } -} \ 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 deleted file mode 100644 index 7971e3ae13e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoTransport.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoTransport - { - [JsonInclude] - [JsonPropertyName("bound_address")] - public IReadOnlyCollection BoundAddress { get; init; } - - [JsonInclude] - [JsonPropertyName("profiles")] - public Dictionary Profiles { get; init; } - - [JsonInclude] - [JsonPropertyName("publish_address")] - public string PublishAddress { get; init; } - } -} \ 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 deleted file mode 100644 index 0234e2046b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpack - { - [JsonInclude] - [JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicense? License { get; init; } - - [JsonInclude] - [JsonPropertyName("notification")] - public Dictionary? Notification { get; init; } - - [JsonInclude] - [JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurity Security { get; init; } - } -} \ 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 deleted file mode 100644 index e2dfbe5aa10..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackLicense - { - [JsonInclude] - [JsonPropertyName("self_generated")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicenseType SelfGenerated { get; init; } - } -} \ 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 deleted file mode 100644 index 6b9313d6c52..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackLicenseType - { - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs deleted file mode 100644 index dd3508d5398..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecurity - { - [JsonInclude] - [JsonPropertyName("authc")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthc? Authc { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public string Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl Http { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl? Transport { get; init; } - } -} \ 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 deleted file mode 100644 index 5f631c9ae76..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecurityAuthc - { - [JsonInclude] - [JsonPropertyName("realms")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcRealms Realms { get; init; } - - [JsonInclude] - [JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcToken Token { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs deleted file mode 100644 index a4cb1c549f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecurityAuthcRealms - { - [JsonInclude] - [JsonPropertyName("file")] - public Dictionary? File { get; init; } - - [JsonInclude] - [JsonPropertyName("native")] - public Dictionary? Native { get; init; } - - [JsonInclude] - [JsonPropertyName("pki")] - public Dictionary? Pki { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs deleted file mode 100644 index 3e15af39ce4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecurityAuthcRealmsStatus - { - [JsonInclude] - [JsonPropertyName("enabled")] - public string? Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("order")] - public string Order { get; init; } - } -} \ 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 deleted file mode 100644 index 589edc248b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecurityAuthcToken - { - [JsonInclude] - [JsonPropertyName("enabled")] - public string Enabled { get; init; } - } -} \ 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 deleted file mode 100644 index 071ffbc5e94..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeInfoXpackSecuritySsl - { - [JsonInclude] - [JsonPropertyName("ssl")] - public Dictionary Ssl { get; init; } - } -} \ 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 deleted file mode 100644 index d46e2576c94..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeJvmInfo.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeJvmInfo - { - [JsonInclude] - [JsonPropertyName("bundled_jdk")] - public bool BundledJdk { get; init; } - - [JsonInclude] - [JsonPropertyName("gc_collectors")] - public IReadOnlyCollection GcCollectors { get; init; } - - [JsonInclude] - [JsonPropertyName("input_arguments")] - public IReadOnlyCollection InputArguments { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoJvmMemory Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_pools")] - public IReadOnlyCollection MemoryPools { get; init; } - - [JsonInclude] - [JsonPropertyName("pid")] - public int Pid { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("using_bundled_jdk")] - public bool UsingBundledJdk { get; init; } - - [JsonInclude] - [JsonPropertyName("using_compressed_ordinary_object_pointers")] - public Union? UsingCompressedOrdinaryObjectPointers { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_name")] - public string VmName { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_vendor")] - public string VmVendor { get; init; } - - [JsonInclude] - [JsonPropertyName("vm_version")] - public string VmVersion { get; init; } - } -} \ 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 deleted file mode 100644 index 8af83d11c1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeOperatingSystemInfo - { - [JsonInclude] - [JsonPropertyName("allocated_processors")] - public int? AllocatedProcessors { get; init; } - - [JsonInclude] - [JsonPropertyName("arch")] - public string Arch { get; init; } - - [JsonInclude] - [JsonPropertyName("available_processors")] - public int AvailableProcessors { get; init; } - - [JsonInclude] - [JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoOSCPU? Cpu { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoMemory? Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("pretty_name")] - public string PrettyName { get; init; } - - [JsonInclude] - [JsonPropertyName("refresh_interval_in_millis")] - public long RefreshIntervalInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("swap")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoMemory? Swap { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs deleted file mode 100644 index e54db46efc8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeProcessInfo.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeProcessInfo - { - [JsonInclude] - [JsonPropertyName("id")] - public long Id { get; init; } - - [JsonInclude] - [JsonPropertyName("mlockall")] - public bool Mlockall { get; init; } - - [JsonInclude] - [JsonPropertyName("refresh_interval_in_millis")] - public long RefreshIntervalInMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs deleted file mode 100644 index ad52e70ca4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeReloadError - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("reload_exception")] - public Elastic.Clients.Elasticsearch.ErrorCause? ReloadException { get; init; } - } -} \ 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 deleted file mode 100644 index 53f5abf9abe..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public partial class NodeReloadResult : Union - { - public NodeReloadResult(Elastic.Clients.Elasticsearch.Nodes.Stats stats) : base(stats) - { - } - - public NodeReloadResult(Elastic.Clients.Elasticsearch.Nodes.NodeReloadError nodeReloadError) : base(nodeReloadError) - { - } - } -} \ 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 deleted file mode 100644 index f7bcd33df7c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeThreadPoolInfo - { - [JsonInclude] - [JsonPropertyName("core")] - public int? Core { get; init; } - - [JsonInclude] - [JsonPropertyName("keep_alive")] - public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get; init; } - - [JsonInclude] - [JsonPropertyName("max")] - public int? Max { get; init; } - - [JsonInclude] - [JsonPropertyName("queue_size")] - public int QueueSize { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public int? Size { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs deleted file mode 100644 index e2d30288b2b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeUsage.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class NodeUsage - { - [JsonInclude] - [JsonPropertyName("aggregations")] - public Dictionary Aggregations { get; init; } - - [JsonInclude] - [JsonPropertyName("rest_actions")] - public Dictionary RestActions { get; init; } - - [JsonInclude] - [JsonPropertyName("since")] - public long Since { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - } -} \ 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 deleted file mode 100644 index 45bf21eebc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/OperatingSystem.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class OperatingSystem - { - [JsonInclude] - [JsonPropertyName("cgroup")] - public Elastic.Clients.Elasticsearch.Nodes.Cgroup? Cgroup { get; init; } - - [JsonInclude] - [JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Nodes.Cpu? Cpu { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Nodes.ExtendedMemoryStats? Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("swap")] - public Elastic.Clients.Elasticsearch.Nodes.MemoryStats? Swap { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs deleted file mode 100644 index b22fdd9cf42..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Pool.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Pool - { - [JsonInclude] - [JsonPropertyName("max_in_bytes")] - public long? MaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("peak_max_in_bytes")] - public long? PeakMaxInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("peak_used_in_bytes")] - public long? PeakUsedInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs deleted file mode 100644 index 18743b0c256..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PressureMemory.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class PressureMemory - { - [JsonInclude] - [JsonPropertyName("all_in_bytes")] - public long? AllInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("combined_coordinating_and_primary_in_bytes")] - public long? CombinedCoordinatingAndPrimaryInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("coordinating_in_bytes")] - public long? CoordinatingInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("coordinating_rejections")] - public long? CoordinatingRejections { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_in_bytes")] - public long? PrimaryInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_rejections")] - public long? PrimaryRejections { get; init; } - - [JsonInclude] - [JsonPropertyName("replica_in_bytes")] - public long? ReplicaInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("replica_rejections")] - public long? ReplicaRejections { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs deleted file mode 100644 index d81f2f2e1c7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Process.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Process - { - [JsonInclude] - [JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Nodes.Cpu? Cpu { get; init; } - - [JsonInclude] - [JsonPropertyName("max_file_descriptors")] - public int? MaxFileDescriptors { get; init; } - - [JsonInclude] - [JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Nodes.MemoryStats? Mem { get; init; } - - [JsonInclude] - [JsonPropertyName("open_file_descriptors")] - public int? OpenFileDescriptors { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs deleted file mode 100644 index dec3385992e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Processor.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Processor - { - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("current")] - public long? Current { get; init; } - - [JsonInclude] - [JsonPropertyName("failed")] - public long? Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_millis")] - public long? TimeInMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs deleted file mode 100644 index e270ca0f88c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/PublishedClusterStates.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class PublishedClusterStates - { - [JsonInclude] - [JsonPropertyName("compatible_diffs")] - public long? CompatibleDiffs { get; init; } - - [JsonInclude] - [JsonPropertyName("full_states")] - public long? FullStates { get; init; } - - [JsonInclude] - [JsonPropertyName("incompatible_diffs")] - public long? IncompatibleDiffs { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs deleted file mode 100644 index 36901d1cbdb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Recording.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Recording - { - [JsonInclude] - [JsonPropertyName("cumulative_execution_count")] - public long? CumulativeExecutionCount { get; init; } - - [JsonInclude] - [JsonPropertyName("cumulative_execution_time")] - public Elastic.Clients.Elasticsearch.Duration? CumulativeExecutionTime { get; init; } - - [JsonInclude] - [JsonPropertyName("cumulative_execution_time_millis")] - public long? CumulativeExecutionTimeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string? Name { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs deleted file mode 100644 index 565d74e92fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ScriptCache.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ScriptCache - { - [JsonInclude] - [JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - - [JsonInclude] - [JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - - [JsonInclude] - [JsonPropertyName("compilations")] - public long? Compilations { get; init; } - - [JsonInclude] - [JsonPropertyName("context")] - public string? Context { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs deleted file mode 100644 index 5cc62054b4f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Scripting.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Scripting - { - [JsonInclude] - [JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - - [JsonInclude] - [JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - - [JsonInclude] - [JsonPropertyName("compilations")] - public long? Compilations { get; init; } - - [JsonInclude] - [JsonPropertyName("contexts")] - public IReadOnlyCollection? Contexts { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs deleted file mode 100644 index 3ecfe4ef606..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterState.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class SerializedClusterState - { - [JsonInclude] - [JsonPropertyName("diffs")] - public Elastic.Clients.Elasticsearch.Nodes.SerializedClusterStateDetail? Diffs { get; init; } - - [JsonInclude] - [JsonPropertyName("full_states")] - public Elastic.Clients.Elasticsearch.Nodes.SerializedClusterStateDetail? FullStates { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs deleted file mode 100644 index b6107a90ace..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class SerializedClusterStateDetail - { - [JsonInclude] - [JsonPropertyName("compressed_size")] - public string? CompressedSize { get; init; } - - [JsonInclude] - [JsonPropertyName("compressed_size_in_bytes")] - public long? CompressedSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("uncompressed_size")] - public string? UncompressedSize { get; init; } - - [JsonInclude] - [JsonPropertyName("uncompressed_size_in_bytes")] - public long? UncompressedSizeInBytes { get; init; } - } -} \ 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 deleted file mode 100644 index d6e013bc6b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Stats.g.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Stats - { - [JsonInclude] - [JsonPropertyName("adaptive_selection")] - public Dictionary? AdaptiveSelection { get; init; } - - [JsonInclude] - [JsonPropertyName("attributes")] - public Dictionary? Attributes { get; init; } - - [JsonInclude] - [JsonPropertyName("breakers")] - public Dictionary? Breakers { get; init; } - - [JsonInclude] - [JsonPropertyName("discovery")] - public Elastic.Clients.Elasticsearch.Nodes.Discovery? Discovery { get; init; } - - [JsonInclude] - [JsonPropertyName("fs")] - public Elastic.Clients.Elasticsearch.Nodes.FileSystem? Fs { get; init; } - - [JsonInclude] - [JsonPropertyName("host")] - public string? Host { get; init; } - - [JsonInclude] - [JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Nodes.Http? Http { get; init; } - - [JsonInclude] - [JsonPropertyName("indexing_pressure")] - public Elastic.Clients.Elasticsearch.Nodes.IndexingPressure? IndexingPressure { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.IndexManagement.ShardStats? Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Nodes.Ingest? Ingest { get; init; } - - [JsonInclude] - [JsonPropertyName("ip")] - public IReadOnlyCollection? Ip { get; init; } - - [JsonInclude] - [JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Nodes.Jvm? Jvm { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string? Name { get; init; } - - [JsonInclude] - [JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Nodes.OperatingSystem? Os { get; init; } - - [JsonInclude] - [JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Nodes.Process? Process { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Nodes.Scripting? Script { get; init; } - - [JsonInclude] - [JsonPropertyName("script_cache")] - public Dictionary>? ScriptCache { get; init; } - - [JsonInclude] - [JsonPropertyName("thread_pool")] - public Dictionary? ThreadPool { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Nodes.Transport? Transport { get; init; } - - [JsonInclude] - [JsonPropertyName("transport_address")] - public string? TransportAddress { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs deleted file mode 100644 index d1ea73de412..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/ThreadCount.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class ThreadCount - { - [JsonInclude] - [JsonPropertyName("active")] - public long? Active { get; init; } - - [JsonInclude] - [JsonPropertyName("completed")] - public long? Completed { get; init; } - - [JsonInclude] - [JsonPropertyName("largest")] - public long? Largest { get; init; } - - [JsonInclude] - [JsonPropertyName("queue")] - public long? Queue { get; init; } - - [JsonInclude] - [JsonPropertyName("rejected")] - public long? Rejected { get; init; } - - [JsonInclude] - [JsonPropertyName("threads")] - public long? Threads { get; init; } - } -} \ 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 deleted file mode 100644 index c2819cb9807..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Transport.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class Transport - { - [JsonInclude] - [JsonPropertyName("inbound_handling_time_histogram")] - public IReadOnlyCollection? InboundHandlingTimeHistogram { get; init; } - - [JsonInclude] - [JsonPropertyName("outbound_handling_time_histogram")] - public IReadOnlyCollection? OutboundHandlingTimeHistogram { get; init; } - - [JsonInclude] - [JsonPropertyName("rx_count")] - public long? RxCount { get; init; } - - [JsonInclude] - [JsonPropertyName("rx_size")] - public string? RxSize { get; init; } - - [JsonInclude] - [JsonPropertyName("rx_size_in_bytes")] - public long? RxSizeInBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("server_open")] - public int? ServerOpen { get; init; } - - [JsonInclude] - [JsonPropertyName("total_outbound_connections")] - public long? TotalOutboundConnections { get; init; } - - [JsonInclude] - [JsonPropertyName("tx_count")] - public long? TxCount { get; init; } - - [JsonInclude] - [JsonPropertyName("tx_size")] - public string? TxSize { get; init; } - - [JsonInclude] - [JsonPropertyName("tx_size_in_bytes")] - public long? TxSizeInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs deleted file mode 100644 index a818440f28e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TransportHistogram.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Nodes -{ - public sealed partial class TransportHistogram - { - [JsonInclude] - [JsonPropertyName("count")] - public long? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("ge_millis")] - public long? GeMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("lt_millis")] - public long? LtMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Percentage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Percentage.g.cs deleted file mode 100644 index 4a64c3f96e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Percentage.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public partial class Percentage : Union - { - public Percentage(string percentage) : base(percentage) - { - } - - public Percentage(float percentage) : base(percentage) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs deleted file mode 100644 index 12ec9eeec92..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch -{ - public sealed partial class PluginStats - { - [JsonInclude] - [JsonPropertyName("classname")] - public string Classname { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string Description { get; init; } - - [JsonInclude] - [JsonPropertyName("elasticsearch_version")] - public string ElasticsearchVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("extended_plugins")] - public IReadOnlyCollection ExtendedPlugins { get; init; } - - [JsonInclude] - [JsonPropertyName("has_native_controller")] - public bool HasNativeController { get; init; } - - [JsonInclude] - [JsonPropertyName("java_version")] - public string JavaVersion { get; init; } - - [JsonInclude] - [JsonPropertyName("licensed")] - public bool Licensed { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs deleted file mode 100644 index 2c9deb65e46..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchableSnapshots/MountedSnapshot.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.SearchableSnapshots -{ - public sealed partial class MountedSnapshot - { - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs deleted file mode 100644 index 9364c389fc8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ApiKey - { - [JsonInclude] - [JsonPropertyName("creation")] - public long? Creation { get; init; } - - [JsonInclude] - [JsonPropertyName("expiration")] - public long? Expiration { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("invalidated")] - public bool? Invalidated { get; init; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("realm")] - public string? Realm { get; init; } - - [JsonInclude] - [JsonPropertyName("username")] - public string? Username { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs deleted file mode 100644 index 65634fb40cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ApplicationGlobalUserPrivileges - { - [JsonInclude] - [JsonPropertyName("manage")] - public Elastic.Clients.Elasticsearch.Security.ManageUserPrivileges Manage { get; set; } - } - - public sealed partial class ApplicationGlobalUserPrivilegesDescriptor : SerializableDescriptorBase - { - internal ApplicationGlobalUserPrivilegesDescriptor(Action configure) => configure.Invoke(this); - public ApplicationGlobalUserPrivilegesDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Security.ManageUserPrivileges ManageValue { get; set; } - - private ManageUserPrivilegesDescriptor ManageDescriptor { get; set; } - - private Action ManageDescriptorAction { get; set; } - - public ApplicationGlobalUserPrivilegesDescriptor Manage(Elastic.Clients.Elasticsearch.Security.ManageUserPrivileges manage) - { - ManageDescriptor = null; - ManageDescriptorAction = null; - ManageValue = manage; - return Self; - } - - public ApplicationGlobalUserPrivilegesDescriptor Manage(ManageUserPrivilegesDescriptor descriptor) - { - ManageValue = null; - ManageDescriptorAction = null; - ManageDescriptor = descriptor; - return Self; - } - - public ApplicationGlobalUserPrivilegesDescriptor Manage(Action configure) - { - ManageValue = null; - ManageDescriptor = null; - ManageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ManageDescriptor is not null) - { - writer.WritePropertyName("manage"); - JsonSerializer.Serialize(writer, ManageDescriptor, options); - } - else if (ManageDescriptorAction is not null) - { - writer.WritePropertyName("manage"); - JsonSerializer.Serialize(writer, new ManageUserPrivilegesDescriptor(ManageDescriptorAction), options); - } - else - { - writer.WritePropertyName("manage"); - JsonSerializer.Serialize(writer, ManageValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs deleted file mode 100644 index 8aeb587786d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivileges.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ApplicationPrivileges - { - [JsonInclude] - [JsonPropertyName("application")] - public string Application { get; set; } - - [JsonInclude] - [JsonPropertyName("privileges")] - public IEnumerable Privileges { get; set; } - - [JsonInclude] - [JsonPropertyName("resources")] - public IEnumerable Resources { get; set; } - } - - public sealed partial class ApplicationPrivilegesDescriptor : SerializableDescriptorBase - { - internal ApplicationPrivilegesDescriptor(Action configure) => configure.Invoke(this); - public ApplicationPrivilegesDescriptor() : base() - { - } - - private string ApplicationValue { get; set; } - - private IEnumerable PrivilegesValue { get; set; } - - private IEnumerable ResourcesValue { get; set; } - - public ApplicationPrivilegesDescriptor Application(string application) - { - ApplicationValue = application; - return Self; - } - - public ApplicationPrivilegesDescriptor Privileges(IEnumerable privileges) - { - PrivilegesValue = privileges; - return Self; - } - - public ApplicationPrivilegesDescriptor Resources(IEnumerable resources) - { - ResourcesValue = resources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("application"); - writer.WriteStringValue(ApplicationValue); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WritePropertyName("resources"); - JsonSerializer.Serialize(writer, ResourcesValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs deleted file mode 100644 index f2842163d6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ApplicationPrivilegesCheck - { - [JsonInclude] - [JsonPropertyName("application")] - public string Application { get; set; } - - [JsonInclude] - [JsonPropertyName("privileges")] - public IEnumerable Privileges { get; set; } - - [JsonInclude] - [JsonPropertyName("resources")] - public IEnumerable Resources { get; set; } - } - - public sealed partial class ApplicationPrivilegesCheckDescriptor : SerializableDescriptorBase - { - internal ApplicationPrivilegesCheckDescriptor(Action configure) => configure.Invoke(this); - public ApplicationPrivilegesCheckDescriptor() : base() - { - } - - private string ApplicationValue { get; set; } - - private IEnumerable PrivilegesValue { get; set; } - - private IEnumerable ResourcesValue { get; set; } - - public ApplicationPrivilegesCheckDescriptor Application(string application) - { - ApplicationValue = application; - return Self; - } - - public ApplicationPrivilegesCheckDescriptor Privileges(IEnumerable privileges) - { - PrivilegesValue = privileges; - return Self; - } - - public ApplicationPrivilegesCheckDescriptor Resources(IEnumerable resources) - { - ResourcesValue = resources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("application"); - writer.WriteStringValue(ApplicationValue); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WritePropertyName("resources"); - JsonSerializer.Serialize(writer, ResourcesValue, options); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 31f19b118ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticatedUser.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class AuthenticatedUser - { - [JsonInclude] - [JsonPropertyName("authentication_provider")] - public Elastic.Clients.Elasticsearch.Security.AuthenticationProvider? AuthenticationProvider { get; init; } - - [JsonInclude] - [JsonPropertyName("authentication_realm")] - public Elastic.Clients.Elasticsearch.Security.UserRealm AuthenticationRealm { get; init; } - - [JsonInclude] - [JsonPropertyName("authentication_type")] - public string AuthenticationType { get; init; } - - [JsonInclude] - [JsonPropertyName("email")] - public string? Email { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("full_name")] - public string? FullName { get; init; } - - [JsonInclude] - [JsonPropertyName("lookup_realm")] - public Elastic.Clients.Elasticsearch.Security.UserRealm LookupRealm { get; init; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary Metadata { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("username")] - public string Username { get; init; } - } -} \ 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 deleted file mode 100644 index bdb4c8cf0b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationProvider.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class AuthenticationProvider - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs deleted file mode 100644 index a460ef1b098..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ClusterNode.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ClusterNode - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ 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 deleted file mode 100644 index eac497edc2b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/FieldSecurity.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class FieldSecurity - { - [JsonInclude] - [JsonPropertyName("except")] - public Elastic.Clients.Elasticsearch.Fields? Except { get; set; } - - [JsonInclude] - [JsonPropertyName("grant")] - public Elastic.Clients.Elasticsearch.Fields Grant { get; set; } - } - - public sealed partial class FieldSecurityDescriptor : SerializableDescriptorBase - { - internal FieldSecurityDescriptor(Action configure) => configure.Invoke(this); - public FieldSecurityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Fields? ExceptValue { get; set; } - - private Elastic.Clients.Elasticsearch.Fields GrantValue { get; set; } - - public FieldSecurityDescriptor Except(Elastic.Clients.Elasticsearch.Fields? except) - { - ExceptValue = except; - return Self; - } - - public FieldSecurityDescriptor Except(Expression> except) - { - ExceptValue = except; - return Self; - } - - public FieldSecurityDescriptor Except(Expression> except) - { - ExceptValue = except; - return Self; - } - - public FieldSecurityDescriptor Grant(Elastic.Clients.Elasticsearch.Fields grant) - { - GrantValue = grant; - return Self; - } - - public FieldSecurityDescriptor Grant(Expression> grant) - { - GrantValue = grant; - return Self; - } - - public FieldSecurityDescriptor Grant(Expression> grant) - { - GrantValue = grant; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExceptValue is not null) - { - writer.WritePropertyName("except"); - JsonSerializer.Serialize(writer, ExceptValue, options); - } - - writer.WritePropertyName("grant"); - JsonSerializer.Serialize(writer, GrantValue, options); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 9c619c738b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GlobalPrivilege.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class GlobalPrivilege - { - [JsonInclude] - [JsonPropertyName("application")] - public Elastic.Clients.Elasticsearch.Security.ApplicationGlobalUserPrivileges Application { get; set; } - } - - public sealed partial class GlobalPrivilegeDescriptor : SerializableDescriptorBase - { - internal GlobalPrivilegeDescriptor(Action configure) => configure.Invoke(this); - public GlobalPrivilegeDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Security.ApplicationGlobalUserPrivileges ApplicationValue { get; set; } - - private ApplicationGlobalUserPrivilegesDescriptor ApplicationDescriptor { get; set; } - - private Action ApplicationDescriptorAction { get; set; } - - public GlobalPrivilegeDescriptor Application(Elastic.Clients.Elasticsearch.Security.ApplicationGlobalUserPrivileges application) - { - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationValue = application; - return Self; - } - - public GlobalPrivilegeDescriptor Application(ApplicationGlobalUserPrivilegesDescriptor descriptor) - { - ApplicationValue = null; - ApplicationDescriptorAction = null; - ApplicationDescriptor = descriptor; - return Self; - } - - public GlobalPrivilegeDescriptor Application(Action configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationDescriptor is not null) - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, ApplicationDescriptor, options); - } - else if (ApplicationDescriptorAction is not null) - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, new ApplicationGlobalUserPrivilegesDescriptor(ApplicationDescriptorAction), options); - } - else - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, ApplicationValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs deleted file mode 100644 index 14ad05b213b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class GrantApiKey - { - [JsonInclude] - [JsonPropertyName("expiration")] - public Elastic.Clients.Elasticsearch.Duration? Expiration { get; set; } - - [JsonInclude] - [JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name Name { get; set; } - - [JsonInclude] - [JsonPropertyName("role_descriptors")] - public IEnumerable>? RoleDescriptors { get; set; } - } - - public sealed partial class GrantApiKeyDescriptor : SerializableDescriptorBase - { - internal GrantApiKeyDescriptor(Action configure) => configure.Invoke(this); - public GrantApiKeyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } - - private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } - - private IEnumerable>? RoleDescriptorsValue { get; set; } - - public GrantApiKeyDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) - { - ExpirationValue = expiration; - return Self; - } - - public GrantApiKeyDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - NameValue = name; - return Self; - } - - public GrantApiKeyDescriptor RoleDescriptors(IEnumerable>? roleDescriptors) - { - RoleDescriptorsValue = roleDescriptors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpirationValue is not null) - { - writer.WritePropertyName("expiration"); - JsonSerializer.Serialize(writer, ExpirationValue, options); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs deleted file mode 100644 index fed06211db0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class IndexPrivilegesCheck - { - [JsonInclude] - [JsonPropertyName("allow_restricted_indices")] - public bool? AllowRestrictedIndices { get; set; } - - [JsonInclude] - [JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Indices Names { get; set; } - - [JsonInclude] - [JsonPropertyName("privileges")] - public IEnumerable Privileges { get; set; } - } - - public sealed partial class IndexPrivilegesCheckDescriptor : SerializableDescriptorBase - { - internal IndexPrivilegesCheckDescriptor(Action configure) => configure.Invoke(this); - public IndexPrivilegesCheckDescriptor() : base() - { - } - - private bool? AllowRestrictedIndicesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } - - private IEnumerable PrivilegesValue { get; set; } - - public IndexPrivilegesCheckDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) - { - AllowRestrictedIndicesValue = allowRestrictedIndices; - return Self; - } - - public IndexPrivilegesCheckDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) - { - NamesValue = names; - return Self; - } - - public IndexPrivilegesCheckDescriptor Privileges(IEnumerable privileges) - { - PrivilegesValue = privileges; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowRestrictedIndicesValue.HasValue) - { - writer.WritePropertyName("allow_restricted_indices"); - writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); - } - - writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs deleted file mode 100644 index 9c4bb169a8d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class IndicesPrivileges - { - [JsonInclude] - [JsonPropertyName("allow_restricted_indices")] - public bool? AllowRestrictedIndices { get; set; } - - [JsonInclude] - [JsonPropertyName("field_security")] - public IEnumerable? FieldSecurity { get; set; } - - [JsonInclude] - [JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Indices Names { get; set; } - - [JsonInclude] - [JsonPropertyName("privileges")] - public IEnumerable Privileges { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesQuery? Query { get; set; } - } - - public sealed partial class IndicesPrivilegesDescriptor : SerializableDescriptorBase - { - internal IndicesPrivilegesDescriptor(Action configure) => configure.Invoke(this); - public IndicesPrivilegesDescriptor() : base() - { - } - - private bool? AllowRestrictedIndicesValue { get; set; } - - private IEnumerable? FieldSecurityValue { get; set; } - - private FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } - - private Action FieldSecurityDescriptorAction { get; set; } - - private Action[] FieldSecurityDescriptorActions { get; set; } - - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } - - private IEnumerable PrivilegesValue { get; set; } - - private Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesQuery? QueryValue { get; set; } - - public IndicesPrivilegesDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) - { - AllowRestrictedIndicesValue = allowRestrictedIndices; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(IEnumerable? fieldSecurity) - { - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = null; - FieldSecurityDescriptorActions = null; - FieldSecurityValue = fieldSecurity; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(FieldSecurityDescriptor descriptor) - { - FieldSecurityValue = null; - FieldSecurityDescriptorAction = null; - FieldSecurityDescriptorActions = null; - FieldSecurityDescriptor = descriptor; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(Action configure) - { - FieldSecurityValue = null; - FieldSecurityDescriptor = null; - FieldSecurityDescriptorActions = null; - FieldSecurityDescriptorAction = configure; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(params Action[] configure) - { - FieldSecurityValue = null; - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = null; - FieldSecurityDescriptorActions = configure; - return Self; - } - - public IndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) - { - NamesValue = names; - return Self; - } - - public IndicesPrivilegesDescriptor Privileges(IEnumerable privileges) - { - PrivilegesValue = privileges; - return Self; - } - - public IndicesPrivilegesDescriptor Query(Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesQuery? query) - { - QueryValue = query; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowRestrictedIndicesValue.HasValue) - { - writer.WritePropertyName("allow_restricted_indices"); - writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); - } - - if (FieldSecurityDescriptor is not null) - { - writer.WritePropertyName("field_security"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldSecurityDescriptorAction is not null) - { - writer.WritePropertyName("field_security"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldSecurityDescriptorActions is not null) - { - writer.WritePropertyName("field_security"); - writer.WriteStartArray(); - foreach (var action in FieldSecurityDescriptorActions) - { - JsonSerializer.Serialize(writer, new FieldSecurityDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldSecurityValue is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, FieldSecurityValue, options); - } - - writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesQuery.g.cs deleted file mode 100644 index 419d530276c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesQuery.g.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public partial class IndicesPrivilegesQuery - { - } -} \ 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 deleted file mode 100644 index a9c47a92ad3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ManageUserPrivileges.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class ManageUserPrivileges - { - [JsonInclude] - [JsonPropertyName("applications")] - public IEnumerable Applications { get; set; } - } - - public sealed partial class ManageUserPrivilegesDescriptor : SerializableDescriptorBase - { - internal ManageUserPrivilegesDescriptor(Action configure) => configure.Invoke(this); - public ManageUserPrivilegesDescriptor() : base() - { - } - - private IEnumerable ApplicationsValue { get; set; } - - public ManageUserPrivilegesDescriptor Applications(IEnumerable applications) - { - ApplicationsValue = applications; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 97823609e56..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RealmInfo.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class RealmInfo - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs deleted file mode 100644 index 835248dff56..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs +++ /dev/null @@ -1,479 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - internal sealed class RoleDescriptorConverter : JsonConverter - { - public override RoleDescriptor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new RoleDescriptor(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "applications") - { - variant.Applications = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "cluster") - { - variant.Cluster = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "global") - { - variant.Global = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices" || property == "index") - { - variant.Indices = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "metadata") - { - variant.Metadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "run_as") - { - variant.RunAs = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "transient_metadata") - { - variant.TransientMetadata = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, RoleDescriptor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Applications is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, value.Applications, options); - } - - if (value.Cluster is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, value.Cluster, options); - } - - if (value.Global is not null) - { - writer.WritePropertyName("global"); - JsonSerializer.Serialize(writer, value.Global, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.Metadata is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, value.Metadata, options); - } - - if (value.RunAs is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, value.RunAs, options); - } - - if (value.TransientMetadata is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, value.TransientMetadata, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(RoleDescriptorConverter))] - public sealed partial class RoleDescriptor - { - public IEnumerable? Applications { get; set; } - - public IEnumerable? Cluster { get; set; } - - public IEnumerable? Global { get; set; } - - public IEnumerable? Indices { get; set; } - - public Dictionary? Metadata { get; set; } - - public IEnumerable? RunAs { get; set; } - - public Elastic.Clients.Elasticsearch.Security.TransientMetadataConfig? TransientMetadata { get; set; } - } - - public sealed partial class RoleDescriptorDescriptor : SerializableDescriptorBase - { - internal RoleDescriptorDescriptor(Action configure) => configure.Invoke(this); - public RoleDescriptorDescriptor() : base() - { - } - - private IEnumerable? ApplicationsValue { get; set; } - - private ApplicationPrivilegesDescriptor ApplicationsDescriptor { get; set; } - - private Action ApplicationsDescriptorAction { get; set; } - - private Action[] ApplicationsDescriptorActions { get; set; } - - private IEnumerable? ClusterValue { get; set; } - - private IEnumerable? GlobalValue { get; set; } - - private GlobalPrivilegeDescriptor GlobalDescriptor { get; set; } - - private Action GlobalDescriptorAction { get; set; } - - private Action[] GlobalDescriptorActions { get; set; } - - private IEnumerable? IndicesValue { get; set; } - - private IndicesPrivilegesDescriptor IndicesDescriptor { get; set; } - - private Action IndicesDescriptorAction { get; set; } - - private Action[] IndicesDescriptorActions { get; set; } - - private Dictionary? MetadataValue { get; set; } - - private IEnumerable? RunAsValue { get; set; } - - private Elastic.Clients.Elasticsearch.Security.TransientMetadataConfig? TransientMetadataValue { get; set; } - - private TransientMetadataConfigDescriptor TransientMetadataDescriptor { get; set; } - - private Action TransientMetadataDescriptorAction { get; set; } - - public RoleDescriptorDescriptor Applications(IEnumerable? applications) - { - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsValue = applications; - return Self; - } - - public RoleDescriptorDescriptor Applications(ApplicationPrivilegesDescriptor descriptor) - { - ApplicationsValue = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Applications(Action configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Applications(params Action[] configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = configure; - return Self; - } - - public RoleDescriptorDescriptor Cluster(IEnumerable? cluster) - { - ClusterValue = cluster; - return Self; - } - - public RoleDescriptorDescriptor Global(IEnumerable? global) - { - GlobalDescriptor = null; - GlobalDescriptorAction = null; - GlobalDescriptorActions = null; - GlobalValue = global; - return Self; - } - - public RoleDescriptorDescriptor Global(GlobalPrivilegeDescriptor descriptor) - { - GlobalValue = null; - GlobalDescriptorAction = null; - GlobalDescriptorActions = null; - GlobalDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Global(Action configure) - { - GlobalValue = null; - GlobalDescriptor = null; - GlobalDescriptorActions = null; - GlobalDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Global(params Action[] configure) - { - GlobalValue = null; - GlobalDescriptor = null; - GlobalDescriptorAction = null; - GlobalDescriptorActions = configure; - return Self; - } - - public RoleDescriptorDescriptor Indices(IEnumerable? indices) - { - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesValue = indices; - return Self; - } - - public RoleDescriptorDescriptor Indices(IndicesPrivilegesDescriptor descriptor) - { - IndicesValue = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Indices(Action configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorActions = null; - IndicesDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Indices(params Action[] configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = configure; - return Self; - } - - public RoleDescriptorDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RoleDescriptorDescriptor RunAs(IEnumerable? runAs) - { - RunAsValue = runAs; - return Self; - } - - public RoleDescriptorDescriptor TransientMetadata(Elastic.Clients.Elasticsearch.Security.TransientMetadataConfig? transientMetadata) - { - TransientMetadataDescriptor = null; - TransientMetadataDescriptorAction = null; - TransientMetadataValue = transientMetadata; - return Self; - } - - public RoleDescriptorDescriptor TransientMetadata(TransientMetadataConfigDescriptor descriptor) - { - TransientMetadataValue = null; - TransientMetadataDescriptorAction = null; - TransientMetadataDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor TransientMetadata(Action configure) - { - TransientMetadataValue = null; - TransientMetadataDescriptor = null; - TransientMetadataDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationsDescriptor is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationsDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorAction is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new ApplicationPrivilegesDescriptor(ApplicationsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorActions is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - foreach (var action in ApplicationsDescriptorActions) - { - JsonSerializer.Serialize(writer, new ApplicationPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationsValue is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (GlobalDescriptor is not null) - { - writer.WritePropertyName("global"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, GlobalDescriptor, options); - writer.WriteEndArray(); - } - else if (GlobalDescriptorAction is not null) - { - writer.WritePropertyName("global"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new GlobalPrivilegeDescriptor(GlobalDescriptorAction), options); - writer.WriteEndArray(); - } - else if (GlobalDescriptorActions is not null) - { - writer.WritePropertyName("global"); - writer.WriteStartArray(); - foreach (var action in GlobalDescriptorActions) - { - JsonSerializer.Serialize(writer, new GlobalPrivilegeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (GlobalValue is not null) - { - writer.WritePropertyName("global"); - JsonSerializer.Serialize(writer, GlobalValue, options); - } - - if (IndicesDescriptor is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndicesDescriptor, options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorAction is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new IndicesPrivilegesDescriptor(IndicesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorActions is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - foreach (var action in IndicesDescriptorActions) - { - JsonSerializer.Serialize(writer, new IndicesPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (TransientMetadataDescriptor is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataDescriptor, options); - } - else if (TransientMetadataDescriptorAction is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, new TransientMetadataConfigDescriptor(TransientMetadataDescriptorAction), options); - } - else if (TransientMetadataValue is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateInlineScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateInlineScript.g.cs deleted file mode 100644 index 77fa988f983..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateInlineScript.g.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class RoleTemplateInlineScript - { - [JsonInclude] - [JsonPropertyName("lang")] - public Elastic.Clients.Elasticsearch.ScriptLanguage? Lang { get; set; } - - [JsonInclude] - [JsonPropertyName("options")] - public Dictionary? Options { get; set; } - - [JsonInclude] - [JsonPropertyName("params")] - public Dictionary? Params { get; set; } - - [JsonInclude] - [JsonPropertyName("source")] - public Union Source { get; set; } - } - - public sealed partial class RoleTemplateInlineScriptDescriptor : SerializableDescriptorBase - { - internal RoleTemplateInlineScriptDescriptor(Action configure) => configure.Invoke(this); - public RoleTemplateInlineScriptDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.ScriptLanguage? LangValue { get; set; } - - private Dictionary? OptionsValue { get; set; } - - private Dictionary? ParamsValue { get; set; } - - private Union SourceValue { get; set; } - - public RoleTemplateInlineScriptDescriptor Lang(Elastic.Clients.Elasticsearch.ScriptLanguage? lang) - { - LangValue = lang; - return Self; - } - - public RoleTemplateInlineScriptDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RoleTemplateInlineScriptDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RoleTemplateInlineScriptDescriptor Source(Union source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LangValue is not null) - { - writer.WritePropertyName("lang"); - JsonSerializer.Serialize(writer, LangValue, options); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs deleted file mode 100644 index 3e34d8026c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class RoleTemplateQuery - { - [JsonInclude] - [JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Security.RoleTemplateScript? Template { get; set; } - } - - public sealed partial class RoleTemplateQueryDescriptor : SerializableDescriptorBase - { - internal RoleTemplateQueryDescriptor(Action configure) => configure.Invoke(this); - public RoleTemplateQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Security.RoleTemplateScript? TemplateValue { get; set; } - - public RoleTemplateQueryDescriptor Template(Elastic.Clients.Elasticsearch.Security.RoleTemplateScript? template) - { - TemplateValue = template; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs deleted file mode 100644 index 7c32ad0fd95..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public partial class RoleTemplateScript : Union - { - public RoleTemplateScript(Elastic.Clients.Elasticsearch.Security.RoleTemplateInlineScript roleTemplateInlineScript) : base(roleTemplateInlineScript) - { - } - - public RoleTemplateScript(Elastic.Clients.Elasticsearch.StoredScriptId storedScriptId) : base(storedScriptId) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Token.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Token.g.cs deleted file mode 100644 index ff883c5261a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Token.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class Token - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string? Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TransientMetadataConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TransientMetadataConfig.g.cs deleted file mode 100644 index 71501cca833..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/TransientMetadataConfig.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class TransientMetadataConfig - { - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; set; } - } - - public sealed partial class TransientMetadataConfigDescriptor : SerializableDescriptorBase - { - internal TransientMetadataConfigDescriptor(Action configure) => configure.Invoke(this); - public TransientMetadataConfigDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public TransientMetadataConfigDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs deleted file mode 100644 index fd6238dca9a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserRealm.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Security -{ - public sealed partial class UserRealm - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public string Type { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Configuration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Configuration.g.cs deleted file mode 100644 index ab5bb68b14a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Configuration.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class Configuration - { - [JsonInclude] - [JsonPropertyName("feature_states")] - public IEnumerable? FeatureStates { get; set; } - - [JsonInclude] - [JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - - [JsonInclude] - [JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices Indices { get; set; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; set; } - - [JsonInclude] - [JsonPropertyName("partial")] - public bool? Partial { get; set; } - } - - public sealed partial class ConfigurationDescriptor : SerializableDescriptorBase - { - internal ConfigurationDescriptor(Action configure) => configure.Invoke(this); - public ConfigurationDescriptor() : base() - { - } - - private IEnumerable? FeatureStatesValue { get; set; } - - private bool? IgnoreUnavailableValue { get; set; } - - private bool? IncludeGlobalStateValue { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndicesValue { get; set; } - - private Dictionary? MetadataValue { get; set; } - - private bool? PartialValue { get; set; } - - public ConfigurationDescriptor FeatureStates(IEnumerable? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - public ConfigurationDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public ConfigurationDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public ConfigurationDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) - { - IndicesValue = indices; - return Self; - } - - public ConfigurationDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ConfigurationDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Retention.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Retention.g.cs deleted file mode 100644 index 6431ca287a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Retention.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - public sealed partial class Retention - { - [JsonInclude] - [JsonPropertyName("expire_after")] - public Elastic.Clients.Elasticsearch.Duration ExpireAfter { get; set; } - - [JsonInclude] - [JsonPropertyName("max_count")] - public int MaxCount { get; set; } - - [JsonInclude] - [JsonPropertyName("min_count")] - public int MinCount { get; set; } - } - - public sealed partial class RetentionDescriptor : SerializableDescriptorBase - { - internal RetentionDescriptor(Action configure) => configure.Invoke(this); - public RetentionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Duration ExpireAfterValue { get; set; } - - private int MaxCountValue { get; set; } - - private int MinCountValue { get; set; } - - public RetentionDescriptor ExpireAfter(Elastic.Clients.Elasticsearch.Duration expireAfter) - { - ExpireAfterValue = expireAfter; - return Self; - } - - public RetentionDescriptor MaxCount(int maxCount) - { - MaxCountValue = maxCount; - return Self; - } - - public RetentionDescriptor MinCount(int minCount) - { - MinCountValue = minCount; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("expire_after"); - JsonSerializer.Serialize(writer, ExpireAfterValue, options); - writer.WritePropertyName("max_count"); - writer.WriteNumberValue(MaxCountValue); - writer.WritePropertyName("min_count"); - writer.WriteNumberValue(MinCountValue); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Statistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Statistics.g.cs deleted file mode 100644 index 2dcab132e96..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Slm/Statistics.g.cs +++ /dev/null @@ -1,142 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Slm -{ - internal sealed class StatisticsConverter : JsonConverter - { - public override Statistics Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - string? policy = default; - Elastic.Clients.Elasticsearch.Duration? retentionDeletionTime = default; - long? retentionDeletionTimeMillis = default; - long? retentionFailed = default; - long? retentionRuns = default; - long? retentionTimedOut = default; - long? totalSnapshotDeletionFailures = default; - long? totalSnapshotsDeleted = default; - long? totalSnapshotsFailed = default; - long? totalSnapshotsTaken = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "policy") - { - policy = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_deletion_time") - { - retentionDeletionTime = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_deletion_time_millis") - { - retentionDeletionTimeMillis = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_failed") - { - retentionFailed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_runs") - { - retentionRuns = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_timed_out") - { - retentionTimedOut = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshot_deletion_failures") - { - totalSnapshotDeletionFailures = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_deleted") - { - totalSnapshotsDeleted = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_failed") - { - totalSnapshotsFailed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_taken") - { - totalSnapshotsTaken = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return new Statistics { Policy = policy, RetentionDeletionTime = retentionDeletionTime, RetentionDeletionTimeMillis = retentionDeletionTimeMillis, RetentionFailed = retentionFailed, RetentionRuns = retentionRuns, RetentionTimedOut = retentionTimedOut, TotalSnapshotDeletionFailures = totalSnapshotDeletionFailures, TotalSnapshotsDeleted = totalSnapshotsDeleted, TotalSnapshotsFailed = totalSnapshotsFailed, TotalSnapshotsTaken = totalSnapshotsTaken }; - } - - public override void Write(Utf8JsonWriter writer, Statistics value, JsonSerializerOptions options) - { - throw new NotImplementedException("'Statistics' is a readonly type, used only on responses and does not support being written to JSON."); - } - } - - [JsonConverter(typeof(StatisticsConverter))] - public sealed partial class Statistics - { - public string? Policy { get; init; } - - public Elastic.Clients.Elasticsearch.Duration? RetentionDeletionTime { get; init; } - - public long? RetentionDeletionTimeMillis { get; init; } - - public long? RetentionFailed { get; init; } - - public long? RetentionRuns { get; init; } - - public long? RetentionTimedOut { get; init; } - - public long? TotalSnapshotDeletionFailures { get; init; } - - public long? TotalSnapshotsDeleted { get; init; } - - public long? TotalSnapshotsFailed { get; init; } - - public long? TotalSnapshotsTaken { get; init; } - } -} \ 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 deleted file mode 100644 index 6fb395ecd35..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class CleanupRepositoryResults - { - [JsonInclude] - [JsonPropertyName("deleted_blobs")] - public long DeletedBlobs { get; init; } - - [JsonInclude] - [JsonPropertyName("deleted_bytes")] - public long DeletedBytes { get; init; } - } -} \ 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 deleted file mode 100644 index 2d1f3cf43f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/CompactNodeInfo.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class CompactNodeInfo - { - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - } -} \ 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 deleted file mode 100644 index 847b9164649..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class FileCountSnapshotStats - { - [JsonInclude] - [JsonPropertyName("file_count")] - public int FileCount { get; init; } - - [JsonInclude] - [JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs deleted file mode 100644 index b27ac5fe94a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/IndexDetails.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class IndexDetails - { - [JsonInclude] - [JsonPropertyName("max_segments_per_shard")] - public long MaxSegmentsPerShard { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_count")] - public int ShardCount { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.ByteSize? Size { get; init; } - - [JsonInclude] - [JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } - } -} \ 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 deleted file mode 100644 index e83f01d2815..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/InfoFeatureState.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class InfoFeatureState - { - [JsonInclude] - [JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Indices Indices { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/RepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/RepositorySettings.g.cs deleted file mode 100644 index e506e574868..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/RepositorySettings.g.cs +++ /dev/null @@ -1,200 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - internal sealed class RepositorySettingsConverter : JsonConverter - { - public override RepositorySettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new RepositorySettings(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "chunk_size") - { - variant.ChunkSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "compress") - { - variant.Compress = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "concurrent_streams") - { - variant.ConcurrentStreams = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "location") - { - variant.Location = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "read_only" || property == "readonly") - { - variant.ReadOnly = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, RepositorySettings value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.ChunkSize)) - { - writer.WritePropertyName("chunk_size"); - writer.WriteStringValue(value.ChunkSize); - } - - if (value.Compress is not null) - { - writer.WritePropertyName("compress"); - JsonSerializer.Serialize(writer, value.Compress, options); - } - - if (value.ConcurrentStreams is not null) - { - writer.WritePropertyName("concurrent_streams"); - JsonSerializer.Serialize(writer, value.ConcurrentStreams, options); - } - - writer.WritePropertyName("location"); - writer.WriteStringValue(value.Location); - if (value.ReadOnly is not null) - { - writer.WritePropertyName("read_only"); - JsonSerializer.Serialize(writer, value.ReadOnly, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(RepositorySettingsConverter))] - public sealed partial class RepositorySettings - { - public string? ChunkSize { get; set; } - - public Union? Compress { get; set; } - - public Union? ConcurrentStreams { get; set; } - - public string Location { get; set; } - - public Union? ReadOnly { get; set; } - } - - public sealed partial class RepositorySettingsDescriptor : SerializableDescriptorBase - { - internal RepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - public RepositorySettingsDescriptor() : base() - { - } - - private string? ChunkSizeValue { get; set; } - - private Union? CompressValue { get; set; } - - private Union? ConcurrentStreamsValue { get; set; } - - private string LocationValue { get; set; } - - private Union? ReadOnlyValue { get; set; } - - public RepositorySettingsDescriptor ChunkSize(string? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public RepositorySettingsDescriptor Compress(Union? compress) - { - CompressValue = compress; - return Self; - } - - public RepositorySettingsDescriptor ConcurrentStreams(Union? concurrentStreams) - { - ConcurrentStreamsValue = concurrentStreams; - return Self; - } - - public RepositorySettingsDescriptor Location(string location) - { - LocationValue = location; - return Self; - } - - public RepositorySettingsDescriptor ReadOnly(Union? readOnly) - { - ReadOnlyValue = readOnly; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ChunkSizeValue)) - { - writer.WritePropertyName("chunk_size"); - writer.WriteStringValue(ChunkSizeValue); - } - - if (CompressValue is not null) - { - writer.WritePropertyName("compress"); - JsonSerializer.Serialize(writer, CompressValue, options); - } - - if (ConcurrentStreamsValue is not null) - { - writer.WritePropertyName("concurrent_streams"); - JsonSerializer.Serialize(writer, ConcurrentStreamsValue, options); - } - - writer.WritePropertyName("location"); - writer.WriteStringValue(LocationValue); - if (ReadOnlyValue is not null) - { - writer.WritePropertyName("read_only"); - JsonSerializer.Serialize(writer, ReadOnlyValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs deleted file mode 100644 index cb7893b8e9d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStats.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class ShardsStats - { - [JsonInclude] - [JsonPropertyName("done")] - public long Done { get; init; } - - [JsonInclude] - [JsonPropertyName("failed")] - public long Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("finalizing")] - public long Finalizing { get; init; } - - [JsonInclude] - [JsonPropertyName("initializing")] - public long Initializing { get; init; } - - [JsonInclude] - [JsonPropertyName("started")] - public long Started { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ 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 deleted file mode 100644 index 3ea690db8ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class ShardsStatsSummary - { - [JsonInclude] - [JsonPropertyName("incremental")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Incremental { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummaryItem Total { get; init; } - } -} \ 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 deleted file mode 100644 index 894344671ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class ShardsStatsSummaryItem - { - [JsonInclude] - [JsonPropertyName("file_count")] - public long FileCount { get; init; } - - [JsonInclude] - [JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs deleted file mode 100644 index d5efbfc15b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotIndexStats - { - [JsonInclude] - [JsonPropertyName("shards")] - public Dictionary Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("shards_stats")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; init; } - } -} \ 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 deleted file mode 100644 index 4d5f6a24f43..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotInfo.g.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotInfo - { - [JsonInclude] - [JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - - [JsonInclude] - [JsonPropertyName("duration")] - public Elastic.Clients.Elasticsearch.Duration? Duration { get; init; } - - [JsonInclude] - [JsonPropertyName("duration_in_millis")] - public long? DurationInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("end_time")] - public DateTimeOffset? EndTime { get; init; } - - [JsonInclude] - [JsonPropertyName("end_time_in_millis")] - public long? EndTimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - - [JsonInclude] - [JsonPropertyName("feature_states")] - public IReadOnlyCollection? FeatureStates { get; init; } - - [JsonInclude] - [JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; init; } - - [JsonInclude] - [JsonPropertyName("index_details")] - public Dictionary? IndexDetails { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection? Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("metadata")] - public Dictionary? Metadata { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string? Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("repository")] - public string? Repository { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time_in_millis")] - public long? StartTimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public string? State { get; init; } - - [JsonInclude] - [JsonPropertyName("uuid")] - public string Uuid { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string? Version { get; init; } - - [JsonInclude] - [JsonPropertyName("version_id")] - public long? VersionId { get; init; } - } -} \ 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 deleted file mode 100644 index 670dc01185b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotResponseItem - { - [JsonInclude] - [JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } - - [JsonInclude] - [JsonPropertyName("repository")] - public string Repository { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshots")] - public IReadOnlyCollection? Snapshots { get; init; } - } -} \ 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 deleted file mode 100644 index 3688c579011..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotRestore.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotRestore - { - [JsonInclude] - [JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - } -} \ 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 deleted file mode 100644 index 74deeb06889..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotShardFailure - { - [JsonInclude] - [JsonPropertyName("index")] - public string Index { get; init; } - - [JsonInclude] - [JsonPropertyName("node_id")] - public string NodeId { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("shard_id")] - public string ShardId { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public string Status { get; init; } - } -} \ 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 deleted file mode 100644 index 86eeba618a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotShardsStatus - { - [JsonInclude] - [JsonPropertyName("stage")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsStage Stage { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsSummary Stats { get; init; } - } -} \ 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 deleted file mode 100644 index fb34b17b7a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotStats.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class SnapshotStats - { - [JsonInclude] - [JsonPropertyName("incremental")] - public Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Incremental { get; init; } - - [JsonInclude] - [JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } - - [JsonInclude] - [JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Snapshot.FileCountSnapshotStats Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs deleted file mode 100644 index f118cb5db1d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/Status.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Snapshot -{ - public sealed partial class Status - { - [JsonInclude] - [JsonPropertyName("include_global_state")] - public bool IncludeGlobalState { get; init; } - - [JsonInclude] - [JsonPropertyName("indices")] - public Dictionary Indices { get; init; } - - [JsonInclude] - [JsonPropertyName("repository")] - public string Repository { get; init; } - - [JsonInclude] - [JsonPropertyName("shards_stats")] - public Elastic.Clients.Elasticsearch.Snapshot.ShardsStats ShardsStats { get; init; } - - [JsonInclude] - [JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public string State { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotStats Stats { get; init; } - - [JsonInclude] - [JsonPropertyName("uuid")] - public string Uuid { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs deleted file mode 100644 index e89f376f9fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/CheckpointStats.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class CheckpointStats - { - [JsonInclude] - [JsonPropertyName("checkpoint")] - public long Checkpoint { get; init; } - - [JsonInclude] - [JsonPropertyName("checkpoint_progress")] - public Elastic.Clients.Elasticsearch.TransformManagement.TransformProgress? CheckpointProgress { get; init; } - - [JsonInclude] - [JsonPropertyName("time_upper_bound")] - public DateTimeOffset? TimeUpperBound { get; init; } - - [JsonInclude] - [JsonPropertyName("time_upper_bound_millis")] - public long? TimeUpperBoundMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp")] - public DateTimeOffset? Timestamp { get; init; } - - [JsonInclude] - [JsonPropertyName("timestamp_millis")] - public long? TimestampMillis { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs deleted file mode 100644 index 760d8feea09..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class Checkpointing - { - [JsonInclude] - [JsonPropertyName("changes_last_detected_at")] - public long? ChangesLastDetectedAt { get; init; } - - [JsonInclude] - [JsonPropertyName("changes_last_detected_at_date_time")] - public DateTimeOffset? ChangesLastDetectedAtDateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("last")] - public Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats Last { get; init; } - - [JsonInclude] - [JsonPropertyName("last_search_time")] - public long? LastSearchTime { get; init; } - - [JsonInclude] - [JsonPropertyName("next")] - public Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats? Next { get; init; } - - [JsonInclude] - [JsonPropertyName("operations_behind")] - public long? OperationsBehind { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs deleted file mode 100644 index ee632ecca57..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Destination.g.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class Destination - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } - - [JsonInclude] - [JsonPropertyName("pipeline")] - public string? Pipeline { get; set; } - } - - public sealed partial class DestinationDescriptor : SerializableDescriptorBase - { - internal DestinationDescriptor(Action configure) => configure.Invoke(this); - public DestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } - - private string? PipelineValue { get; set; } - - public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) - { - IndexValue = index; - return Self; - } - - public DestinationDescriptor Pipeline(string? pipeline) - { - PipelineValue = pipeline; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (!string.IsNullOrEmpty(PipelineValue)) - { - writer.WritePropertyName("pipeline"); - writer.WriteStringValue(PipelineValue); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs deleted file mode 100644 index 33d74713ab2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Latest.g.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class Latest - { - [JsonInclude] - [JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Field Sort { get; set; } - - [JsonInclude] - [JsonPropertyName("unique_key")] - public IEnumerable UniqueKey { get; set; } - } - - public sealed partial class LatestDescriptor : SerializableDescriptorBase> - { - internal LatestDescriptor(Action> configure) => configure.Invoke(this); - public LatestDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field SortValue { get; set; } - - private IEnumerable UniqueKeyValue { get; set; } - - public LatestDescriptor Sort(Elastic.Clients.Elasticsearch.Field sort) - { - SortValue = sort; - return Self; - } - - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public LatestDescriptor UniqueKey(IEnumerable uniqueKey) - { - UniqueKeyValue = uniqueKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - writer.WritePropertyName("unique_key"); - JsonSerializer.Serialize(writer, UniqueKeyValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class LatestDescriptor : SerializableDescriptorBase - { - internal LatestDescriptor(Action configure) => configure.Invoke(this); - public LatestDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field SortValue { get; set; } - - private IEnumerable UniqueKeyValue { get; set; } - - public LatestDescriptor Sort(Elastic.Clients.Elasticsearch.Field sort) - { - SortValue = sort; - return Self; - } - - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - public LatestDescriptor UniqueKey(IEnumerable uniqueKey) - { - UniqueKeyValue = uniqueKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - writer.WritePropertyName("unique_key"); - JsonSerializer.Serialize(writer, UniqueKeyValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs deleted file mode 100644 index 62cee06a21d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Pivot.g.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - internal sealed class PivotConverter : JsonConverter - { - public override Pivot Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new Pivot(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "group_by") - { - variant.GroupBy = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, Pivot value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.GroupBy is not null) - { - writer.WritePropertyName("group_by"); - JsonSerializer.Serialize(writer, value.GroupBy, options); - } - - writer.WriteEndObject(); - } - } - - [JsonConverter(typeof(PivotConverter))] - public sealed partial class Pivot - { - public Dictionary? Aggregations { get; set; } - - public Dictionary? GroupBy { get; set; } - } - - public sealed partial class PivotDescriptor : SerializableDescriptorBase - { - internal PivotDescriptor(Action configure) => configure.Invoke(this); - public PivotDescriptor() : base() - { - } - - private Dictionary? AggregationsValue { get; set; } - - private Dictionary? GroupByValue { get; set; } - - public PivotDescriptor Aggregations(Func, FluentDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PivotDescriptor GroupBy(Func, FluentDictionary> selector) - { - GroupByValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (GroupByValue is not null) - { - writer.WritePropertyName("group_by"); - JsonSerializer.Serialize(writer, GroupByValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs deleted file mode 100644 index a7d5afe2d61..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicy.g.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class RetentionPolicy - { - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - - [JsonInclude] - [JsonPropertyName("max_age")] - public Elastic.Clients.Elasticsearch.Duration MaxAge { get; set; } - } - - public sealed partial class RetentionPolicyDescriptor : SerializableDescriptorBase> - { - internal RetentionPolicyDescriptor(Action> configure) => configure.Invoke(this); - public RetentionPolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration MaxAgeValue { get; set; } - - public RetentionPolicyDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public RetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RetentionPolicyDescriptor MaxAge(Elastic.Clients.Elasticsearch.Duration maxAge) - { - MaxAgeValue = maxAge; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_age"); - JsonSerializer.Serialize(writer, MaxAgeValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class RetentionPolicyDescriptor : SerializableDescriptorBase - { - internal RetentionPolicyDescriptor(Action configure) => configure.Invoke(this); - public RetentionPolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - private Elastic.Clients.Elasticsearch.Duration MaxAgeValue { get; set; } - - public RetentionPolicyDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public RetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RetentionPolicyDescriptor MaxAge(Elastic.Clients.Elasticsearch.Duration maxAge) - { - MaxAgeValue = maxAge; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_age"); - JsonSerializer.Serialize(writer, MaxAgeValue, options); - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicyContainer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicyContainer.g.cs deleted file mode 100644 index a2d39107944..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/RetentionPolicyContainer.g.cs +++ /dev/null @@ -1,213 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - [JsonConverter(typeof(RetentionPolicyContainerConverter))] - public sealed partial class RetentionPolicyContainer - { - internal RetentionPolicyContainer(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static RetentionPolicyContainer Time(Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicy retentionPolicy) => new RetentionPolicyContainer("time", retentionPolicy); - } - - internal sealed class RetentionPolicyContainerConverter : JsonConverter - { - public override RetentionPolicyContainer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "time") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new RetentionPolicyContainer(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, RetentionPolicyContainer value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "time": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicy)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class RetentionPolicyContainerDescriptor : SerializableDescriptorBase> - { - internal RetentionPolicyContainerDescriptor(Action> configure) => configure.Invoke(this); - public RetentionPolicyContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the RetentionPolicyContainerDescriptor. Only a single RetentionPolicyContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the RetentionPolicyContainerDescriptor. Only a single RetentionPolicyContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Time(RetentionPolicy variant) => Set(variant, "time"); - public void Time(Action> configure) => Set(configure, "time"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class RetentionPolicyContainerDescriptor : SerializableDescriptorBase - { - internal RetentionPolicyContainerDescriptor(Action configure) => configure.Invoke(this); - public RetentionPolicyContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the RetentionPolicyContainerDescriptor. Only a single RetentionPolicyContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the RetentionPolicyContainerDescriptor. Only a single RetentionPolicyContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Time(RetentionPolicy variant) => Set(variant, "time"); - public void Time(Action configure) => Set(configure, "time"); - public void Time(Action> configure) => Set(configure, "time"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs deleted file mode 100644 index 8870da0d525..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class Settings - { - [JsonInclude] - [JsonPropertyName("align_checkpoints")] - public bool? AlignCheckpoints { get; set; } - - [JsonInclude] - [JsonPropertyName("dates_as_epoch_millis")] - public bool? DatesAsEpochMillis { get; set; } - - [JsonInclude] - [JsonPropertyName("deduce_mappings")] - public bool? DeduceMappings { get; set; } - - [JsonInclude] - [JsonPropertyName("docs_per_second")] - public float? DocsPerSecond { get; set; } - - [JsonInclude] - [JsonPropertyName("max_page_search_size")] - public int? MaxPageSearchSize { get; set; } - } - - public sealed partial class SettingsDescriptor : SerializableDescriptorBase - { - internal SettingsDescriptor(Action configure) => configure.Invoke(this); - public SettingsDescriptor() : base() - { - } - - private bool? AlignCheckpointsValue { get; set; } - - private bool? DatesAsEpochMillisValue { get; set; } - - private bool? DeduceMappingsValue { get; set; } - - private float? DocsPerSecondValue { get; set; } - - private int? MaxPageSearchSizeValue { get; set; } - - public SettingsDescriptor AlignCheckpoints(bool? alignCheckpoints = true) - { - AlignCheckpointsValue = alignCheckpoints; - return Self; - } - - public SettingsDescriptor DatesAsEpochMillis(bool? datesAsEpochMillis = true) - { - DatesAsEpochMillisValue = datesAsEpochMillis; - return Self; - } - - public SettingsDescriptor DeduceMappings(bool? deduceMappings = true) - { - DeduceMappingsValue = deduceMappings; - return Self; - } - - public SettingsDescriptor DocsPerSecond(float? docsPerSecond) - { - DocsPerSecondValue = docsPerSecond; - return Self; - } - - public SettingsDescriptor MaxPageSearchSize(int? maxPageSearchSize) - { - MaxPageSearchSizeValue = maxPageSearchSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlignCheckpointsValue.HasValue) - { - writer.WritePropertyName("align_checkpoints"); - writer.WriteBooleanValue(AlignCheckpointsValue.Value); - } - - if (DatesAsEpochMillisValue.HasValue) - { - writer.WritePropertyName("dates_as_epoch_millis"); - writer.WriteBooleanValue(DatesAsEpochMillisValue.Value); - } - - if (DeduceMappingsValue.HasValue) - { - writer.WritePropertyName("deduce_mappings"); - writer.WriteBooleanValue(DeduceMappingsValue.Value); - } - - if (DocsPerSecondValue.HasValue) - { - writer.WritePropertyName("docs_per_second"); - writer.WriteNumberValue(DocsPerSecondValue.Value); - } - - if (MaxPageSearchSizeValue.HasValue) - { - writer.WritePropertyName("max_page_search_size"); - writer.WriteNumberValue(MaxPageSearchSizeValue.Value); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs deleted file mode 100644 index b648dd240d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Source.g.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class Source - { - [JsonInclude] - [JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Indices Index { get; set; } - - [JsonInclude] - [JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - - [JsonInclude] - [JsonPropertyName("runtime_mappings")] - public Dictionary? RuntimeMappings { get; set; } - } - - public sealed partial class SourceDescriptor : SerializableDescriptorBase> - { - internal SourceDescriptor(Action> configure) => configure.Invoke(this); - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action> QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndexValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) - { - IndexValue = index; - return Self; - } - - public SourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SourceDescriptor : SerializableDescriptorBase - { - internal SourceDescriptor(Action configure) => configure.Invoke(this); - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? QueryValue { get; set; } - - private QueryDsl.QueryContainerDescriptor QueryDescriptor { get; set; } - - private Action QueryDescriptorAction { get; set; } - - private Elastic.Clients.Elasticsearch.Indices IndexValue { get; set; } - - private Dictionary? RuntimeMappingsValue { get; set; } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(QueryDsl.QueryContainerDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) - { - IndexValue = index; - return Self; - } - - public SourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new QueryDsl.QueryContainerDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/SyncContainer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/SyncContainer.g.cs deleted file mode 100644 index cf2272a1686..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/SyncContainer.g.cs +++ /dev/null @@ -1,213 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - [JsonConverter(typeof(SyncContainerConverter))] - public sealed partial class SyncContainer - { - internal SyncContainer(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - - internal string VariantName { get; } - - public static SyncContainer Time(Elastic.Clients.Elasticsearch.TransformManagement.TimeSync timeSync) => new SyncContainer("time", timeSync); - } - - internal sealed class SyncContainerConverter : JsonConverter - { - public override SyncContainer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the variant held within this container."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "time") - { - var variant = JsonSerializer.Deserialize(ref reader, options); - reader.Read(); - return new SyncContainer(propertyName, variant); - } - - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, SyncContainer value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "time": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.TransformManagement.TimeSync)value.Variant, options); - break; - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SyncContainerDescriptor : SerializableDescriptorBase> - { - internal SyncContainerDescriptor(Action> configure) => configure.Invoke(this); - public SyncContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the SyncContainerDescriptor. Only a single SyncContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the SyncContainerDescriptor. Only a single SyncContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Time(TimeSync variant) => Set(variant, "time"); - public void Time(Action> configure) => Set(configure, "time"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } - - public sealed partial class SyncContainerDescriptor : SerializableDescriptorBase - { - internal SyncContainerDescriptor(Action configure) => configure.Invoke(this); - public SyncContainerDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - - private string ContainedVariantName { get; set; } - - private object Variant { get; set; } - - private Descriptor Descriptor { get; set; } - - private void Set(Action descriptorAction, string variantName) - where T : Descriptor - { - if (ContainsVariant) - throw new InvalidOperationException("A variant has already been assigned to the SyncContainerDescriptor. Only a single SyncContainer variant can be added to this container type."); - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - } - - private void Set(object variant, string variantName) - { - if (ContainsVariant) - throw new Exception("A variant has already been assigned to the SyncContainerDescriptor. Only a single SyncContainer variant can be added to this container type."); - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - } - - public void Time(TimeSync variant) => Set(variant, "time"); - public void Time(Action configure) => Set(configure, "time"); - public void Time(Action> configure) => Set(configure, "time"); - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - } - else - { - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs deleted file mode 100644 index c96364900f7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TimeSync.g.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TimeSync - { - [JsonInclude] - [JsonPropertyName("delay")] - public Elastic.Clients.Elasticsearch.Duration? Delay { get; set; } - - [JsonInclude] - [JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Field Field { get; set; } - } - - public sealed partial class TimeSyncDescriptor : SerializableDescriptorBase> - { - internal TimeSyncDescriptor(Action> configure) => configure.Invoke(this); - public TimeSyncDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Duration? DelayValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - public TimeSyncDescriptor Delay(Elastic.Clients.Elasticsearch.Duration? delay) - { - DelayValue = delay; - return Self; - } - - public TimeSyncDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DelayValue is not null) - { - writer.WritePropertyName("delay"); - JsonSerializer.Serialize(writer, DelayValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } - } - - public sealed partial class TimeSyncDescriptor : SerializableDescriptorBase - { - internal TimeSyncDescriptor(Action configure) => configure.Invoke(this); - public TimeSyncDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Duration? DelayValue { get; set; } - - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - - public TimeSyncDescriptor Delay(Elastic.Clients.Elasticsearch.Duration? delay) - { - DelayValue = delay; - return Self; - } - - public TimeSyncDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DelayValue is not null) - { - writer.WritePropertyName("delay"); - JsonSerializer.Serialize(writer, DelayValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } - } -} \ 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 deleted file mode 100644 index 4910d2fe820..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformIndexerStats - { - [JsonInclude] - [JsonPropertyName("delete_time_in_ms")] - public long? DeleteTimeInMs { get; init; } - - [JsonInclude] - [JsonPropertyName("documents_deleted")] - public long? DocumentsDeleted { get; init; } - - [JsonInclude] - [JsonPropertyName("documents_indexed")] - public long DocumentsIndexed { get; init; } - - [JsonInclude] - [JsonPropertyName("documents_processed")] - public long DocumentsProcessed { get; init; } - - [JsonInclude] - [JsonPropertyName("exponential_avg_checkpoint_duration_ms")] - public double ExponentialAvgCheckpointDurationMs { get; init; } - - [JsonInclude] - [JsonPropertyName("exponential_avg_documents_indexed")] - public double ExponentialAvgDocumentsIndexed { get; init; } - - [JsonInclude] - [JsonPropertyName("exponential_avg_documents_processed")] - public double ExponentialAvgDocumentsProcessed { get; init; } - - [JsonInclude] - [JsonPropertyName("index_failures")] - public long IndexFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("index_time_in_ms")] - public long IndexTimeInMs { get; init; } - - [JsonInclude] - [JsonPropertyName("index_total")] - public long IndexTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("pages_processed")] - public long PagesProcessed { get; init; } - - [JsonInclude] - [JsonPropertyName("processing_time_in_ms")] - public long ProcessingTimeInMs { get; init; } - - [JsonInclude] - [JsonPropertyName("processing_total")] - public long ProcessingTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("search_failures")] - public long SearchFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("search_time_in_ms")] - public long SearchTimeInMs { get; init; } - - [JsonInclude] - [JsonPropertyName("search_total")] - public long SearchTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("trigger_count")] - public long TriggerCount { get; init; } - } -} \ 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 deleted file mode 100644 index f9ef7e49a65..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformProgress.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformProgress - { - [JsonInclude] - [JsonPropertyName("docs_indexed")] - public long DocsIndexed { get; init; } - - [JsonInclude] - [JsonPropertyName("docs_processed")] - public long DocsProcessed { get; init; } - - [JsonInclude] - [JsonPropertyName("docs_remaining")] - public long DocsRemaining { get; init; } - - [JsonInclude] - [JsonPropertyName("percent_complete")] - public double PercentComplete { get; init; } - - [JsonInclude] - [JsonPropertyName("total_docs")] - public long TotalDocs { get; init; } - } -} \ 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 deleted file mode 100644 index a9179e95618..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStats.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformStats - { - [JsonInclude] - [JsonPropertyName("checkpointing")] - public Elastic.Clients.Elasticsearch.TransformManagement.Checkpointing Checkpointing { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.NodeAttributes? Node { get; init; } - - [JsonInclude] - [JsonPropertyName("reason")] - public string? Reason { get; init; } - - [JsonInclude] - [JsonPropertyName("state")] - public string State { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.TransformManagement.TransformIndexerStats Stats { get; init; } - } -} \ 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 deleted file mode 100644 index 0130c8a2409..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.TransformManagement -{ - public sealed partial class TransformSummary - { - [JsonInclude] - [JsonPropertyName("_meta")] - public Dictionary? Meta { get; init; } - - [JsonInclude] - [JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Ml.TransformAuthorization? Authorization { get; init; } - - [JsonInclude] - [JsonPropertyName("create_time")] - public long? CreateTime { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Destination Dest { get; init; } - - [JsonInclude] - [JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Duration? Frequency { get; init; } - - [JsonInclude] - [JsonPropertyName("id")] - public string Id { get; init; } - - [JsonInclude] - [JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.TransformManagement.Latest? Latest { get; init; } - - [JsonInclude] - [JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.TransformManagement.Pivot? Pivot { get; init; } - - [JsonInclude] - [JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.TransformManagement.RetentionPolicyContainer? RetentionPolicy { get; init; } - - [JsonInclude] - [JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.TransformManagement.Settings? Settings { get; init; } - - [JsonInclude] - [JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.TransformManagement.Source Source { get; init; } - - [JsonInclude] - [JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.TransformManagement.SyncContainer? Sync { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string? Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AllJobs.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AllJobs.g.cs deleted file mode 100644 index 3e6129372d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AllJobs.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class AllJobs - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("created_by")] - public Dictionary> CreatedBy { get; init; } - - [JsonInclude] - [JsonPropertyName("detectors")] - public Dictionary Detectors { get; init; } - - [JsonInclude] - [JsonPropertyName("forecasts")] - public Dictionary Forecasts { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size")] - public Dictionary ModelSize { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs deleted file mode 100644 index 50bb41d0a58..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Analytics.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Analytics - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Xpack.AnalyticsStatistics Stats { get; init; } - } -} \ 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 deleted file mode 100644 index 7720cfe265c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/AnalyticsStatistics.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class AnalyticsStatistics - { - [JsonInclude] - [JsonPropertyName("boxplot_usage")] - public long BoxplotUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("cumulative_cardinality_usage")] - public long CumulativeCardinalityUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("moving_percentiles_usage")] - public long MovingPercentilesUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("multi_terms_usage")] - public long? MultiTermsUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("normalize_usage")] - public long NormalizeUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("rate_usage")] - public long RateUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("string_stats_usage")] - public long StringStatsUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("t_test_usage")] - public long TTestUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("top_metrics_usage")] - public long TopMetricsUsage { get; init; } - } -} \ 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 deleted file mode 100644 index 0ef38b95e98..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Archive.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Archive - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } - } -} \ 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 deleted file mode 100644 index 33001cfb680..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Audit.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Audit - { - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("outputs")] - public IReadOnlyCollection? Outputs { get; init; } - } -} \ 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 deleted file mode 100644 index b24bb2f2f0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Base.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public abstract partial class Base - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - } -} \ 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 deleted file mode 100644 index e23da132836..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/BuildInformation.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class BuildInformation - { - [JsonInclude] - [JsonPropertyName("date")] - public DateTimeOffset Date { get; init; } - - [JsonInclude] - [JsonPropertyName("hash")] - public string Hash { get; init; } - } -} \ 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 deleted file mode 100644 index 20ea91e5df9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ccr.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Ccr - { - [JsonInclude] - [JsonPropertyName("auto_follow_patterns_count")] - public int AutoFollowPatternsCount { get; init; } - - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("follower_indices_count")] - public int FollowerIndicesCount { get; init; } - } -} \ 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 deleted file mode 100644 index b43114db555..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Counter.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Counter - { - [JsonInclude] - [JsonPropertyName("active")] - public long Active { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ 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 deleted file mode 100644 index 4dd6d608590..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataStreams.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class DataStreams - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } - } -} \ 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 deleted file mode 100644 index e8652998d94..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class DataTierPhaseStatistics - { - [JsonInclude] - [JsonPropertyName("doc_count")] - public long DocCount { get; init; } - - [JsonInclude] - [JsonPropertyName("index_count")] - public long IndexCount { get; init; } - - [JsonInclude] - [JsonPropertyName("node_count")] - public long NodeCount { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_shard_count")] - public long PrimaryShardCount { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_shard_size_avg_bytes")] - public long PrimaryShardSizeAvgBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_shard_size_mad_bytes")] - public long PrimaryShardSizeMadBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_shard_size_median_bytes")] - public long PrimaryShardSizeMedianBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("primary_size_bytes")] - public long PrimarySizeBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("total_shard_count")] - public long TotalShardCount { get; init; } - - [JsonInclude] - [JsonPropertyName("total_size_bytes")] - public long TotalSizeBytes { get; init; } - } -} \ 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 deleted file mode 100644 index caa130e2153..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/DataTiers.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class DataTiers - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("data_cold")] - public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataCold { get; init; } - - [JsonInclude] - [JsonPropertyName("data_content")] - public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataContent { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frozen")] - public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics? DataFrozen { get; init; } - - [JsonInclude] - [JsonPropertyName("data_hot")] - public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataHot { get; init; } - - [JsonInclude] - [JsonPropertyName("data_warm")] - public Elastic.Clients.Elasticsearch.Xpack.DataTierPhaseStatistics DataWarm { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - } -} \ 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 deleted file mode 100644 index 199b5d7fc39..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Datafeed.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Datafeed - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - } -} \ 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 deleted file mode 100644 index 2d5fcb46de2..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Eql.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Eql - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Xpack.EqlFeatures Features { get; init; } - - [JsonInclude] - [JsonPropertyName("queries")] - public Dictionary Queries { get; init; } - } -} \ 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 deleted file mode 100644 index 48a14611394..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeatures.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class EqlFeatures - { - [JsonInclude] - [JsonPropertyName("event")] - public int Event { get; init; } - - [JsonInclude] - [JsonPropertyName("join")] - public int Join { get; init; } - - [JsonInclude] - [JsonPropertyName("joins")] - public Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesJoin Joins { get; init; } - - [JsonInclude] - [JsonPropertyName("keys")] - public Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesKeys Keys { get; init; } - - [JsonInclude] - [JsonPropertyName("pipes")] - public Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesPipes Pipes { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence")] - public int Sequence { get; init; } - - [JsonInclude] - [JsonPropertyName("sequences")] - public Elastic.Clients.Elasticsearch.Xpack.EqlFeaturesSequences Sequences { get; init; } - } -} \ 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 deleted file mode 100644 index 058d674da9d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class EqlFeaturesJoin - { - [JsonInclude] - [JsonPropertyName("join_queries_five_or_more")] - public int JoinQueriesFiveOrMore { get; init; } - - [JsonInclude] - [JsonPropertyName("join_queries_four")] - public int JoinQueriesFour { get; init; } - - [JsonInclude] - [JsonPropertyName("join_queries_three")] - public int JoinQueriesThree { get; init; } - - [JsonInclude] - [JsonPropertyName("join_queries_two")] - public int JoinQueriesTwo { get; init; } - - [JsonInclude] - [JsonPropertyName("join_until")] - public int JoinUntil { get; init; } - } -} \ 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 deleted file mode 100644 index c7bf4068fe4..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class EqlFeaturesKeys - { - [JsonInclude] - [JsonPropertyName("join_keys_five_or_more")] - public int JoinKeysFiveOrMore { get; init; } - - [JsonInclude] - [JsonPropertyName("join_keys_four")] - public int JoinKeysFour { get; init; } - - [JsonInclude] - [JsonPropertyName("join_keys_one")] - public int JoinKeysOne { get; init; } - - [JsonInclude] - [JsonPropertyName("join_keys_three")] - public int JoinKeysThree { get; init; } - - [JsonInclude] - [JsonPropertyName("join_keys_two")] - public int JoinKeysTwo { get; init; } - } -} \ 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 deleted file mode 100644 index bb080fe3c44..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class EqlFeaturesPipes - { - [JsonInclude] - [JsonPropertyName("pipe_head")] - public int PipeHead { get; init; } - - [JsonInclude] - [JsonPropertyName("pipe_tail")] - public int PipeTail { get; init; } - } -} \ 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 deleted file mode 100644 index 4883c38d843..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class EqlFeaturesSequences - { - [JsonInclude] - [JsonPropertyName("sequence_maxspan")] - public int SequenceMaxspan { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence_queries_five_or_more")] - public int SequenceQueriesFiveOrMore { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence_queries_four")] - public int SequenceQueriesFour { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence_queries_three")] - public int SequenceQueriesThree { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence_queries_two")] - public int SequenceQueriesTwo { get; init; } - - [JsonInclude] - [JsonPropertyName("sequence_until")] - public int SequenceUntil { get; init; } - } -} \ 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 deleted file mode 100644 index 74ac9393945..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Feature.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Feature - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("description")] - public string? Description { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("native_code_info")] - public Elastic.Clients.Elasticsearch.Xpack.NativeCodeInformation? NativeCodeInfo { get; init; } - } -} \ 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 deleted file mode 100644 index 4e0c680ddfa..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FeatureToggle.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class FeatureToggle - { - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs deleted file mode 100644 index e85467285c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Features - { - [JsonInclude] - [JsonPropertyName("aggregate_metric")] - public Elastic.Clients.Elasticsearch.Xpack.Feature AggregateMetric { get; init; } - - [JsonInclude] - [JsonPropertyName("analytics")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Analytics { get; init; } - - [JsonInclude] - [JsonPropertyName("archive")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Archive { get; init; } - - [JsonInclude] - [JsonPropertyName("ccr")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Ccr { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? DataFrame { get; init; } - - [JsonInclude] - [JsonPropertyName("data_science")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? DataScience { get; init; } - - [JsonInclude] - [JsonPropertyName("data_streams")] - public Elastic.Clients.Elasticsearch.Xpack.Feature DataStreams { get; init; } - - [JsonInclude] - [JsonPropertyName("data_tiers")] - public Elastic.Clients.Elasticsearch.Xpack.Feature DataTiers { get; init; } - - [JsonInclude] - [JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Enrich { get; init; } - - [JsonInclude] - [JsonPropertyName("eql")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Eql { get; init; } - - [JsonInclude] - [JsonPropertyName("flattened")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? Flattened { get; init; } - - [JsonInclude] - [JsonPropertyName("frozen_indices")] - public Elastic.Clients.Elasticsearch.Xpack.Feature FrozenIndices { get; init; } - - [JsonInclude] - [JsonPropertyName("graph")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Graph { get; init; } - - [JsonInclude] - [JsonPropertyName("ilm")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Ilm { get; init; } - - [JsonInclude] - [JsonPropertyName("logstash")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Logstash { get; init; } - - [JsonInclude] - [JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Ml { get; init; } - - [JsonInclude] - [JsonPropertyName("monitoring")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Monitoring { get; init; } - - [JsonInclude] - [JsonPropertyName("rollup")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Rollup { get; init; } - - [JsonInclude] - [JsonPropertyName("runtime_fields")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? RuntimeFields { get; init; } - - [JsonInclude] - [JsonPropertyName("searchable_snapshots")] - public Elastic.Clients.Elasticsearch.Xpack.Feature SearchableSnapshots { get; init; } - - [JsonInclude] - [JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Security { get; init; } - - [JsonInclude] - [JsonPropertyName("slm")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Slm { get; init; } - - [JsonInclude] - [JsonPropertyName("spatial")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Spatial { get; init; } - - [JsonInclude] - [JsonPropertyName("sql")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Sql { get; init; } - - [JsonInclude] - [JsonPropertyName("transform")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Transform { get; init; } - - [JsonInclude] - [JsonPropertyName("vectors")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? Vectors { get; init; } - - [JsonInclude] - [JsonPropertyName("voting_only")] - public Elastic.Clients.Elasticsearch.Xpack.Feature VotingOnly { get; init; } - - [JsonInclude] - [JsonPropertyName("watcher")] - public Elastic.Clients.Elasticsearch.Xpack.Feature Watcher { get; init; } - } -} \ 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 deleted file mode 100644 index 4d2eea7729a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Flattened.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Flattened - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("field_count")] - public int FieldCount { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FrozenIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FrozenIndices.g.cs deleted file mode 100644 index d3497bdd683..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/FrozenIndices.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class FrozenIndices - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } - } -} \ 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 deleted file mode 100644 index a67822bca3c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ilm.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Ilm - { - [JsonInclude] - [JsonPropertyName("policy_count")] - public int PolicyCount { get; init; } - - [JsonInclude] - [JsonPropertyName("policy_stats")] - public IReadOnlyCollection PolicyStats { get; init; } - } -} \ 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 deleted file mode 100644 index d19f18ee174..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class IlmPolicyStatistics - { - [JsonInclude] - [JsonPropertyName("indices_managed")] - public int IndicesManaged { get; init; } - - [JsonInclude] - [JsonPropertyName("phases")] - public Elastic.Clients.Elasticsearch.Ilm.Phases Phases { get; init; } - } -} \ 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 deleted file mode 100644 index 748c72d6bb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IpFilter.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class IpFilter - { - [JsonInclude] - [JsonPropertyName("http")] - public bool Http { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public bool Transport { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Jobs.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Jobs.g.cs deleted file mode 100644 index b64875de45c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Jobs.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - internal sealed class JobsConverter : JsonConverter - { - public override Jobs Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - Elastic.Clients.Elasticsearch.Xpack.AllJobs? all = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "_all") - { - all = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var value = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, value); - } - } - - return new Jobs { All = all, JobsDictionary = additionalProperties }; - } - - public override void Write(Utf8JsonWriter writer, Jobs value, JsonSerializerOptions options) - { - throw new NotImplementedException("'Jobs' is a readonly type, used only on responses and does not support being written to JSON."); - } - } - - [JsonConverter(typeof(JobsConverter))] - public sealed partial class Jobs - { - public Elastic.Clients.Elasticsearch.Xpack.AllJobs? All { get; init; } - - public Dictionary JobsDictionary { get; init; } - } -} \ 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 deleted file mode 100644 index 6753456fe7c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MachineLearning.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MachineLearning - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("data_frame_analytics_jobs")] - public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobs DataFrameAnalyticsJobs { get; init; } - - [JsonInclude] - [JsonPropertyName("datafeeds")] - public Dictionary Datafeeds { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("inference")] - public Elastic.Clients.Elasticsearch.Xpack.MlInference Inference { get; init; } - - [JsonInclude] - [JsonPropertyName("jobs")] - public Elastic.Clients.Elasticsearch.Xpack.Jobs Jobs { get; init; } - - [JsonInclude] - [JsonPropertyName("node_count")] - public int NodeCount { get; init; } - } -} \ 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 deleted file mode 100644 index 16e5b1b7e78..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MinimalLicenseInformation - { - [JsonInclude] - [JsonPropertyName("expiry_date_in_millis")] - public long ExpiryDateInMillis { get; init; } - - [JsonInclude] - [JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.License.LicenseType Mode { get; init; } - - [JsonInclude] - [JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.License.LicenseStatus Status { get; init; } - - [JsonInclude] - [JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.License.LicenseType Type { get; init; } - - [JsonInclude] - [JsonPropertyName("uid")] - public string Uid { get; init; } - } -} \ 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 deleted file mode 100644 index a9afbc90527..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlCounter.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlCounter - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - } -} \ 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 deleted file mode 100644 index e010ca4c2d0..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlDataFrameAnalyticsJobs - { - [JsonInclude] - [JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsCount All { get; init; } - - [JsonInclude] - [JsonPropertyName("analysis_counts")] - public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsAnalysis? AnalysisCounts { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_usage")] - public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsMemory? MemoryUsage { get; init; } - - [JsonInclude] - [JsonPropertyName("stopped")] - public Elastic.Clients.Elasticsearch.Xpack.MlDataFrameAnalyticsJobsCount? Stopped { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs deleted file mode 100644 index 92118b7a3c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlDataFrameAnalyticsJobsAnalysis - { - [JsonInclude] - [JsonPropertyName("classification")] - public int? Classification { get; init; } - - [JsonInclude] - [JsonPropertyName("outlier_detection")] - public int? OutlierDetection { get; init; } - - [JsonInclude] - [JsonPropertyName("regression")] - public int? Regression { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs deleted file mode 100644 index d4b327ea93c..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlDataFrameAnalyticsJobsCount - { - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - } -} \ 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 deleted file mode 100644 index 27742adb324..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlDataFrameAnalyticsJobsMemory - { - [JsonInclude] - [JsonPropertyName("peak_usage_bytes")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics PeakUsageBytes { get; init; } - } -} \ 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 deleted file mode 100644 index ef51cb70489..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInference.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInference - { - [JsonInclude] - [JsonPropertyName("deployments")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceDeployments? Deployments { get; init; } - - [JsonInclude] - [JsonPropertyName("ingest_processors")] - public Dictionary IngestProcessors { get; init; } - - [JsonInclude] - [JsonPropertyName("trained_models")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceTrainedModels TrainedModels { get; init; } - } -} \ 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 deleted file mode 100644 index 868862497e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeployments.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceDeployments - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("inference_counts")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics InferenceCounts { get; init; } - - [JsonInclude] - [JsonPropertyName("model_sizes_bytes")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics ModelSizesBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("time_ms")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceDeploymentsTimeMs TimeMs { get; init; } - } -} \ 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 deleted file mode 100644 index 929be4735b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceDeploymentsTimeMs - { - [JsonInclude] - [JsonPropertyName("avg")] - public double Avg { get; init; } - } -} \ 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 deleted file mode 100644 index f40459becf7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceIngestProcessor - { - [JsonInclude] - [JsonPropertyName("num_docs_processed")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumDocsProcessed { get; init; } - - [JsonInclude] - [JsonPropertyName("num_failures")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount NumFailures { get; init; } - - [JsonInclude] - [JsonPropertyName("pipelines")] - public Elastic.Clients.Elasticsearch.Xpack.MlCounter Pipelines { get; init; } - - [JsonInclude] - [JsonPropertyName("time_ms")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceIngestProcessorCount TimeMs { get; init; } - } -} \ 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 deleted file mode 100644 index f58b5eb15ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceIngestProcessorCount - { - [JsonInclude] - [JsonPropertyName("max")] - public long Max { get; init; } - - [JsonInclude] - [JsonPropertyName("min")] - public long Min { get; init; } - - [JsonInclude] - [JsonPropertyName("sum")] - public long Sum { get; init; } - } -} \ 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 deleted file mode 100644 index ff46a84649f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceTrainedModels - { - [JsonInclude] - [JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Xpack.MlCounter All { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Xpack.MlInferenceTrainedModelsCount? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("estimated_heap_memory_usage_bytes")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? EstimatedHeapMemoryUsageBytes { get; init; } - - [JsonInclude] - [JsonPropertyName("estimated_operations")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? EstimatedOperations { get; init; } - - [JsonInclude] - [JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.Ml.JobStatistics? ModelSizeBytes { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs deleted file mode 100644 index 7e37142364f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class MlInferenceTrainedModelsCount - { - [JsonInclude] - [JsonPropertyName("classification")] - public long? Classification { get; init; } - - [JsonInclude] - [JsonPropertyName("ner")] - public long? Ner { get; init; } - - [JsonInclude] - [JsonPropertyName("other")] - public long Other { get; init; } - - [JsonInclude] - [JsonPropertyName("prepackaged")] - public long Prepackaged { get; init; } - - [JsonInclude] - [JsonPropertyName("regression")] - public long? Regression { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ 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 deleted file mode 100644 index 51bf0c07ce8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Monitoring.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Monitoring - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("collection_enabled")] - public bool CollectionEnabled { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled_exporters")] - public Dictionary EnabledExporters { get; init; } - } -} \ 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 deleted file mode 100644 index 6d50f5e57bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/NativeCodeInformation.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class NativeCodeInformation - { - [JsonInclude] - [JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - - [JsonInclude] - [JsonPropertyName("version")] - public string Version { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Query.g.cs deleted file mode 100644 index ebbd2c00329..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Query.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Query - { - [JsonInclude] - [JsonPropertyName("count")] - public int? Count { get; init; } - - [JsonInclude] - [JsonPropertyName("failed")] - public int? Failed { get; init; } - - [JsonInclude] - [JsonPropertyName("paging")] - public int? Paging { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public int? Total { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs deleted file mode 100644 index 0fd8cfb6c4a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Realm.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Realm - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("cache")] - public IReadOnlyCollection? Cache { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("has_authorization_realms")] - public IReadOnlyCollection? HasAuthorizationRealms { get; init; } - - [JsonInclude] - [JsonPropertyName("has_default_username_pattern")] - public IReadOnlyCollection? HasDefaultUsernamePattern { get; init; } - - [JsonInclude] - [JsonPropertyName("has_truststore")] - public IReadOnlyCollection? HasTruststore { get; init; } - - [JsonInclude] - [JsonPropertyName("is_authentication_delegated")] - public IReadOnlyCollection? IsAuthenticationDelegated { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public IReadOnlyCollection? Name { get; init; } - - [JsonInclude] - [JsonPropertyName("order")] - public IReadOnlyCollection? Order { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public IReadOnlyCollection? Size { get; init; } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs deleted file mode 100644 index af64fd20b7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RealmCache.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class RealmCache - { - [JsonInclude] - [JsonPropertyName("size")] - public long Size { get; init; } - } -} \ 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 deleted file mode 100644 index 742045ad3c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RoleMapping.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class RoleMapping - { - [JsonInclude] - [JsonPropertyName("enabled")] - public int Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public int Size { get; init; } - } -} \ 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 deleted file mode 100644 index 3c597fb451e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class RuntimeFieldTypes - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("field_types")] - public IReadOnlyCollection FieldTypes { get; init; } - } -} \ 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 deleted file mode 100644 index 381843764ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/RuntimeFieldsType.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class RuntimeFieldsType - { - [JsonInclude] - [JsonPropertyName("chars_max")] - public long CharsMax { get; init; } - - [JsonInclude] - [JsonPropertyName("chars_total")] - public long CharsTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public long Count { get; init; } - - [JsonInclude] - [JsonPropertyName("doc_max")] - public long DocMax { get; init; } - - [JsonInclude] - [JsonPropertyName("doc_total")] - public long DocTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("index_count")] - public long IndexCount { get; init; } - - [JsonInclude] - [JsonPropertyName("lang")] - public IReadOnlyCollection Lang { get; init; } - - [JsonInclude] - [JsonPropertyName("lines_max")] - public long LinesMax { get; init; } - - [JsonInclude] - [JsonPropertyName("lines_total")] - public long LinesTotal { get; init; } - - [JsonInclude] - [JsonPropertyName("name")] - public string Name { get; init; } - - [JsonInclude] - [JsonPropertyName("scriptless_count")] - public long ScriptlessCount { get; init; } - - [JsonInclude] - [JsonPropertyName("shadowed_count")] - public long ShadowedCount { get; init; } - - [JsonInclude] - [JsonPropertyName("source_max")] - public long SourceMax { get; init; } - - [JsonInclude] - [JsonPropertyName("source_total")] - public long SourceTotal { get; init; } - } -} \ 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 deleted file mode 100644 index 46c7d016a18..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SearchableSnapshots.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SearchableSnapshots - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("full_copy_indices_count")] - public int? FullCopyIndicesCount { get; init; } - - [JsonInclude] - [JsonPropertyName("indices_count")] - public int IndicesCount { get; init; } - - [JsonInclude] - [JsonPropertyName("shared_cache_indices_count")] - public int? SharedCacheIndicesCount { get; init; } - } -} \ 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 deleted file mode 100644 index 767bfba2e17..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Security.g.cs +++ /dev/null @@ -1,85 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Security - { - [JsonInclude] - [JsonPropertyName("anonymous")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Anonymous { get; init; } - - [JsonInclude] - [JsonPropertyName("api_key_service")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle ApiKeyService { get; init; } - - [JsonInclude] - [JsonPropertyName("audit")] - public Elastic.Clients.Elasticsearch.Xpack.Audit Audit { get; init; } - - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("fips_140")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Fips140 { get; init; } - - [JsonInclude] - [JsonPropertyName("ipfilter")] - public Elastic.Clients.Elasticsearch.Xpack.IpFilter Ipfilter { get; init; } - - [JsonInclude] - [JsonPropertyName("operator_privileges")] - public Elastic.Clients.Elasticsearch.Xpack.Base OperatorPrivileges { get; init; } - - [JsonInclude] - [JsonPropertyName("realms")] - public Dictionary Realms { get; init; } - - [JsonInclude] - [JsonPropertyName("role_mapping")] - public Dictionary RoleMapping { get; init; } - - [JsonInclude] - [JsonPropertyName("roles")] - public Elastic.Clients.Elasticsearch.Xpack.SecurityRoles Roles { get; init; } - - [JsonInclude] - [JsonPropertyName("ssl")] - public Elastic.Clients.Elasticsearch.Xpack.Ssl Ssl { get; init; } - - [JsonInclude] - [JsonPropertyName("system_key")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle? SystemKey { get; init; } - - [JsonInclude] - [JsonPropertyName("token_service")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle TokenService { get; init; } - } -} \ 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 deleted file mode 100644 index 2781414c416..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRoles.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SecurityRoles - { - [JsonInclude] - [JsonPropertyName("dls")] - public Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDls Dls { get; init; } - - [JsonInclude] - [JsonPropertyName("file")] - public Elastic.Clients.Elasticsearch.Xpack.SecurityRolesFile File { get; init; } - - [JsonInclude] - [JsonPropertyName("native")] - public Elastic.Clients.Elasticsearch.Xpack.SecurityRolesNative Native { get; init; } - } -} \ 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 deleted file mode 100644 index 6d97030a9cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDls.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SecurityRolesDls - { - [JsonInclude] - [JsonPropertyName("bit_set_cache")] - public Elastic.Clients.Elasticsearch.Xpack.SecurityRolesDlsBitSetCache BitSetCache { get; init; } - } -} \ 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 deleted file mode 100644 index 403443c3c7b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SecurityRolesDlsBitSetCache - { - [JsonInclude] - [JsonPropertyName("count")] - public int Count { get; init; } - - [JsonInclude] - [JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.ByteSize? Memory { get; init; } - - [JsonInclude] - [JsonPropertyName("memory_in_bytes")] - public long MemoryInBytes { get; init; } - } -} \ 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 deleted file mode 100644 index 5fd18ed3e69..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesFile.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SecurityRolesFile - { - [JsonInclude] - [JsonPropertyName("dls")] - public bool Dls { get; init; } - - [JsonInclude] - [JsonPropertyName("fls")] - public bool Fls { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public long Size { get; init; } - } -} \ 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 deleted file mode 100644 index 20abac16115..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/SecurityRolesNative.g.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class SecurityRolesNative - { - [JsonInclude] - [JsonPropertyName("dls")] - public bool Dls { get; init; } - - [JsonInclude] - [JsonPropertyName("fls")] - public bool Fls { get; init; } - - [JsonInclude] - [JsonPropertyName("size")] - public long Size { get; init; } - } -} \ 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 deleted file mode 100644 index fe3e23b71af..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Slm.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Slm - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("policy_count")] - public int? PolicyCount { get; init; } - - [JsonInclude] - [JsonPropertyName("policy_stats")] - public Elastic.Clients.Elasticsearch.Slm.Statistics? PolicyStats { get; init; } - } -} \ 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 deleted file mode 100644 index 23335a2a3a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Sql.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Sql - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("features")] - public Dictionary Features { get; init; } - - [JsonInclude] - [JsonPropertyName("queries")] - public Dictionary Queries { get; init; } - } -} \ 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 deleted file mode 100644 index bdec23872c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Ssl.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Ssl - { - [JsonInclude] - [JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Http { get; init; } - - [JsonInclude] - [JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Xpack.FeatureToggle Transport { get; init; } - } -} \ 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 deleted file mode 100644 index d418ab9f8eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Vector.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Vector - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("dense_vector_dims_avg_count")] - public int DenseVectorDimsAvgCount { get; init; } - - [JsonInclude] - [JsonPropertyName("dense_vector_fields_count")] - public int DenseVectorFieldsCount { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("sparse_vector_fields_count")] - public int? SparseVectorFieldsCount { get; init; } - } -} \ 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 deleted file mode 100644 index 04ffcae8d3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Watcher.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class Watcher - { - [JsonInclude] - [JsonPropertyName("available")] - public bool Available { get; init; } - - [JsonInclude] - [JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Xpack.Counter Count { get; init; } - - [JsonInclude] - [JsonPropertyName("enabled")] - public bool Enabled { get; init; } - - [JsonInclude] - [JsonPropertyName("execution")] - public Elastic.Clients.Elasticsearch.Xpack.WatcherActions Execution { get; init; } - - [JsonInclude] - [JsonPropertyName("watch")] - public Elastic.Clients.Elasticsearch.Xpack.WatcherWatch Watch { get; init; } - } -} \ 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 deleted file mode 100644 index 1b9a6ed2984..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActionTotals.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class WatcherActionTotals - { - [JsonInclude] - [JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Duration Total { get; init; } - - [JsonInclude] - [JsonPropertyName("total_time_in_ms")] - public long TotalTimeInMs { get; init; } - } -} \ 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 deleted file mode 100644 index 89e1eb39b82..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherActions.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class WatcherActions - { - [JsonInclude] - [JsonPropertyName("actions")] - public Dictionary Actions { get; init; } - } -} \ 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 deleted file mode 100644 index f278c3ad90f..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatch.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class WatcherWatch - { - [JsonInclude] - [JsonPropertyName("action")] - public Dictionary? Action { get; init; } - - [JsonInclude] - [JsonPropertyName("condition")] - public Dictionary? Condition { get; init; } - - [JsonInclude] - [JsonPropertyName("input")] - public Dictionary Input { get; init; } - - [JsonInclude] - [JsonPropertyName("trigger")] - public Elastic.Clients.Elasticsearch.Xpack.WatcherWatchTrigger Trigger { get; init; } - } -} \ 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 deleted file mode 100644 index f6361618362..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class WatcherWatchTrigger - { - [JsonInclude] - [JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Xpack.Counter All { get; init; } - - [JsonInclude] - [JsonPropertyName("schedule")] - public Elastic.Clients.Elasticsearch.Xpack.WatcherWatchTriggerSchedule? Schedule { get; init; } - } -} \ 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 deleted file mode 100644 index 93e133af74e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Xpack -{ - public sealed partial class WatcherWatchTriggerSchedule - { - [JsonInclude] - [JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Xpack.Counter All { get; init; } - - [JsonInclude] - [JsonPropertyName("active")] - public long Active { get; init; } - - [JsonInclude] - [JsonPropertyName("cron")] - public Elastic.Clients.Elasticsearch.Xpack.Counter Cron { get; init; } - - [JsonInclude] - [JsonPropertyName("total")] - public long Total { get; init; } - } -} \ No newline at end of file diff --git a/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainApiTests.cs b/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainApiTests.cs index f21b8349ac5..a9eb4be4bca 100644 --- a/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainApiTests.cs +++ b/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainApiTests.cs @@ -2,141 +2,143 @@ // 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. -using System; -using Tests.Core.ManagedElasticsearch.Clusters; -using Tests.Domain; -using Tests.Framework.EndpointTests; -using Tests.Framework.EndpointTests.TestState; -using Elastic.Clients.Elasticsearch.Cluster; +// TODO: Re-enable once cluster APIs are generated. + +//using System; +//using Tests.Core.ManagedElasticsearch.Clusters; +//using Tests.Domain; +//using Tests.Framework.EndpointTests; +//using Tests.Framework.EndpointTests.TestState; +//using Elastic.Clients.Elasticsearch.Cluster; //using Elastic.Clients.Elasticsearch.Cluster.AllocationExplain; -namespace Tests.Cluster.ClusterAllocationExplain; - -public class ClusterAllocationExplainApiTests - : ApiIntegrationTestBase -{ - public ClusterAllocationExplainApiTests(UnbalancedCluster cluster, EndpointUsage usage) : base(cluster, usage) - { - } - - protected override bool ExpectIsValid => true; - - protected override object ExpectJson => - new { index = "project", shard = 0, primary = true }; - - protected override int ExpectStatusCode => 200; - - // TODO: Generate extra descriptor methods! - protected override Action Fluent => s => s - //.Index() - .Index("project") - .Shard(0) - .Primary(true) - //.Primary() - .IncludeYesDecisions(true); - - protected override HttpMethod HttpMethod => HttpMethod.POST; - - protected override ClusterAllocationExplainRequest Initializer => - new() { Index = typeof(Project), Shard = 0, Primary = true, IncludeYesDecisions = true }; - - protected override string ExpectedUrlPathAndQuery => "/_cluster/allocation/explain?include_yes_decisions=true"; - - protected override LazyResponses ClientUsage() => Calls( - (client, f) => client.Cluster.AllocationExplain(f), - (client, f) => client.Cluster.AllocationExplainAsync(f), - (client, r) => client.Cluster.AllocationExplain(r), - (client, r) => client.Cluster.AllocationExplainAsync(r) - ); - - protected override void ExpectResponse(ClusterAllocationExplainResponse response) - { - response.Primary.Should().BeTrue(); - response.Shard.Should().Be(0); - response.Index.ToString().Should().NotBeNullOrEmpty(); - response.CurrentState.Should().NotBeNullOrEmpty(); - response.CurrentNode.Should().NotBeNull(); - response.CanRemainOnCurrentNode.Should().NotBeNull(); - response.CanRebalanceCluster.Should().NotBeNull(); - response.CanRebalanceClusterDecisions.Should().NotBeNullOrEmpty(); - - foreach (var decision in response.CanRebalanceClusterDecisions) - { - decision.Decider.Should().NotBeNullOrEmpty(); - decision.Explanation.Should().NotBeNullOrEmpty(); - } - - response.CanRebalanceToOtherNode.Should().NotBeNull(); - response.RebalanceExplanation.Should().NotBeNullOrEmpty(); - } -} - -public class ClusterAllocationExplainEmptyApiTests - : ApiIntegrationTestBase -{ - public ClusterAllocationExplainEmptyApiTests(UnbalancedCluster cluster, EndpointUsage usage) : base(cluster, usage) - { - } - - protected override bool ExpectIsValid => true; - protected override int ExpectStatusCode => 200; - protected override HttpMethod HttpMethod => HttpMethod.POST; - - protected override string ExpectedUrlPathAndQuery => "/_cluster/allocation/explain"; - - protected override LazyResponses ClientUsage() => Calls( - (client, f) => client.Cluster.AllocationExplain(f), - (client, f) => client.Cluster.AllocationExplainAsync(f), - (client, r) => client.Cluster.AllocationExplain(r), - (client, r) => client.Cluster.AllocationExplainAsync(r) - ); - - protected override void ExpectResponse(ClusterAllocationExplainResponse response) - { - // TODO: Add more assertions based on JSON (once seeding is completed) - //{ - // "index" : "project", - // "shard" : 0, - // "primary" : false, - // "current_state" : "unassigned", - // "unassigned_info" : { - // "reason" : "INDEX_CREATED", - // "at" : "2021-10-18T15:30:12.669Z", - // "last_allocation_status" : "no_attempt" - // }, - // "can_allocate" : "no", - // "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes", - // "node_allocation_decisions" : [ - // { - // "node_id" : "YIraJSUvSmKmWH9F9biOjg", - // "node_name" : "unbalanced-node-7cc24e9200", - // "transport_address" : "127.0.0.1:9300", - // "node_attributes" : { - // "testingcluster" : "true", - // "ml.machine_memory" : "17115570176", - // "xpack.installed" : "true", - // "transform.node" : "true", - // "ml.max_open_jobs" : "512", - // "ml.max_jvm_size" : "1073741824", - // "gateway" : "true" - // }, - // "node_decision" : "no", - // "weight_ranking" : 1, - // "deciders" : [ - // { - // "decider" : "same_shard", - // "decision" : "NO", - // "explanation" : "a copy of this shard is already allocated to this node [[project][0], node[YIraJSUvSmKmWH9F9biOjg], [P], s[STARTED], a[id=ldR5C8z0Ra25DYYRxdCqHg]]" - // } - // ] - // } - // ] - //} - - response.Primary.Should().BeFalse(); - response.Shard.Should().Be(0); - response.CurrentState.Should().NotBeNullOrEmpty(); - response.CanAllocate.Should().Be(Decision.No); - response.AllocateExplanation.Should().NotBeNullOrEmpty(); - } -} +//namespace Tests.Cluster.ClusterAllocationExplain; + +//public class ClusterAllocationExplainApiTests +// : ApiIntegrationTestBase +//{ +// public ClusterAllocationExplainApiTests(UnbalancedCluster cluster, EndpointUsage usage) : base(cluster, usage) +// { +// } + +// protected override bool ExpectIsValid => true; + +// protected override object ExpectJson => +// new { index = "project", shard = 0, primary = true }; + +// protected override int ExpectStatusCode => 200; + +// // TODO: Generate extra descriptor methods! +// protected override Action Fluent => s => s +// //.Index() +// .Index("project") +// .Shard(0) +// .Primary(true) +// //.Primary() +// .IncludeYesDecisions(true); + +// protected override HttpMethod HttpMethod => HttpMethod.POST; + +// protected override ClusterAllocationExplainRequest Initializer => +// new() { Index = typeof(Project), Shard = 0, Primary = true, IncludeYesDecisions = true }; + +// protected override string ExpectedUrlPathAndQuery => "/_cluster/allocation/explain?include_yes_decisions=true"; + +// protected override LazyResponses ClientUsage() => Calls( +// (client, f) => client.Cluster.AllocationExplain(f), +// (client, f) => client.Cluster.AllocationExplainAsync(f), +// (client, r) => client.Cluster.AllocationExplain(r), +// (client, r) => client.Cluster.AllocationExplainAsync(r) +// ); + +// protected override void ExpectResponse(ClusterAllocationExplainResponse response) +// { +// response.Primary.Should().BeTrue(); +// response.Shard.Should().Be(0); +// response.Index.ToString().Should().NotBeNullOrEmpty(); +// response.CurrentState.Should().NotBeNullOrEmpty(); +// response.CurrentNode.Should().NotBeNull(); +// response.CanRemainOnCurrentNode.Should().NotBeNull(); +// response.CanRebalanceCluster.Should().NotBeNull(); +// response.CanRebalanceClusterDecisions.Should().NotBeNullOrEmpty(); + +// foreach (var decision in response.CanRebalanceClusterDecisions) +// { +// decision.Decider.Should().NotBeNullOrEmpty(); +// decision.Explanation.Should().NotBeNullOrEmpty(); +// } + +// response.CanRebalanceToOtherNode.Should().NotBeNull(); +// response.RebalanceExplanation.Should().NotBeNullOrEmpty(); +// } +//} + +//public class ClusterAllocationExplainEmptyApiTests +// : ApiIntegrationTestBase +//{ +// public ClusterAllocationExplainEmptyApiTests(UnbalancedCluster cluster, EndpointUsage usage) : base(cluster, usage) +// { +// } + +// protected override bool ExpectIsValid => true; +// protected override int ExpectStatusCode => 200; +// protected override HttpMethod HttpMethod => HttpMethod.POST; + +// protected override string ExpectedUrlPathAndQuery => "/_cluster/allocation/explain"; + +// protected override LazyResponses ClientUsage() => Calls( +// (client, f) => client.Cluster.AllocationExplain(f), +// (client, f) => client.Cluster.AllocationExplainAsync(f), +// (client, r) => client.Cluster.AllocationExplain(r), +// (client, r) => client.Cluster.AllocationExplainAsync(r) +// ); + +// protected override void ExpectResponse(ClusterAllocationExplainResponse response) +// { +// // TODO: Add more assertions based on JSON (once seeding is completed) +// //{ +// // "index" : "project", +// // "shard" : 0, +// // "primary" : false, +// // "current_state" : "unassigned", +// // "unassigned_info" : { +// // "reason" : "INDEX_CREATED", +// // "at" : "2021-10-18T15:30:12.669Z", +// // "last_allocation_status" : "no_attempt" +// // }, +// // "can_allocate" : "no", +// // "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes", +// // "node_allocation_decisions" : [ +// // { +// // "node_id" : "YIraJSUvSmKmWH9F9biOjg", +// // "node_name" : "unbalanced-node-7cc24e9200", +// // "transport_address" : "127.0.0.1:9300", +// // "node_attributes" : { +// // "testingcluster" : "true", +// // "ml.machine_memory" : "17115570176", +// // "xpack.installed" : "true", +// // "transform.node" : "true", +// // "ml.max_open_jobs" : "512", +// // "ml.max_jvm_size" : "1073741824", +// // "gateway" : "true" +// // }, +// // "node_decision" : "no", +// // "weight_ranking" : 1, +// // "deciders" : [ +// // { +// // "decider" : "same_shard", +// // "decision" : "NO", +// // "explanation" : "a copy of this shard is already allocated to this node [[project][0], node[YIraJSUvSmKmWH9F9biOjg], [P], s[STARTED], a[id=ldR5C8z0Ra25DYYRxdCqHg]]" +// // } +// // ] +// // } +// // ] +// //} + +// response.Primary.Should().BeFalse(); +// response.Shard.Should().Be(0); +// response.CurrentState.Should().NotBeNullOrEmpty(); +// response.CanAllocate.Should().Be(Decision.No); +// response.AllocateExplanation.Should().NotBeNullOrEmpty(); +// } +//} diff --git a/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponseDeserialisationTests.cs b/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponseDeserialisationTests.cs index e6243e4ea34..1b2041e4231 100644 --- a/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponseDeserialisationTests.cs +++ b/tests/Tests/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponseDeserialisationTests.cs @@ -2,76 +2,78 @@ // 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. -using Elastic.Clients.Elasticsearch.Cluster; +// TODO: Re-enable once cluster APIs are generated. -namespace Tests.Cluster.ClusterAllocationExplain -{ - public class ClusterAllocationExplainResponseDeserialisationTests : SerialisationTestBase - { - protected override string ResponseJson => @"{ - ""index"" : ""test-index"", - ""shard"" : 0, - ""primary"" : true, - ""current_state"" : ""started"", - ""current_node"" : { - ""id"" : ""I1WCx2PlR1OKJXNNT6SgGA"", - ""name"" : ""instance-0000000000"", - ""transport_address"" : ""10.46.232.28:19827"", - ""attributes"" : { - ""logical_availability_zone"" : ""zone-0"", - ""server_name"" : ""instance-0000000000.d75875ccd168497a95f1e7ce21d49822"", - ""availability_zone"" : ""uksouth-1"", - ""xpack.installed"" : ""true"", - ""data"" : ""hot"", - ""instance_configuration"" : ""azure.data.highio.l32sv2"", - ""transform.node"" : ""true"", - ""region"" : ""unknown-region"" - }, - ""weight_ranking"" : 1 - }, - ""can_remain_on_current_node"" : ""yes"", - ""can_rebalance_cluster"" : ""yes"", - ""can_rebalance_to_other_node"" : ""no"", - ""rebalance_explanation"" : ""cannot rebalance as no target node exists that can both allocate this shard and improve the cluster balance"", - ""node_allocation_decisions"" : [ - { - ""node_id"" : ""EX3yzhZyQvC8GPevpb_o2g"", - ""node_name"" : ""instance-0000000001"", - ""transport_address"" : ""10.46.232.27:19936"", - ""node_attributes"" : { - ""logical_availability_zone"" : ""zone-1"", - ""server_name"" : ""instance-0000000001.d75875ccd168497a95f1e7ce21d49822"", - ""availability_zone"" : ""uksouth-3"", - ""xpack.installed"" : ""true"", - ""data"" : ""hot"", - ""instance_configuration"" : ""azure.data.highio.l32sv2"", - ""transform.node"" : ""true"", - ""region"" : ""unknown-region"" - }, - ""node_decision"" : ""no"", - ""weight_ranking"" : 1, - ""deciders"" : [ - { - ""decider"" : ""same_shard"", - ""decision"" : ""NO"", - ""explanation"" : ""a copy of this shard is already allocated to this node [[test-index][0], node[EX3yzhZyQvC8GPevpb_o2g], [R], s[STARTED], a[id=CgtQVTkqTBic0VYRxatctQ]]"" - }, - { - ""decider"" : ""awareness"", - ""decision"" : ""NO"", - ""explanation"" : ""there are too many copies of the shard allocated to nodes with attribute [logical_availability_zone], there are [2] total configured shard copies for this shard id and [2] total attribute values, expected the allocated shard count per attribute [2] to be less than or equal to the upper bound of the required number of shards per attribute [1]"" - } - ] - } - ] - }"; +//using Elastic.Clients.Elasticsearch.Cluster; - protected override void Validate(ClusterAllocationExplainResponse response) - { - // TODO - Other properties +//namespace Tests.Cluster.ClusterAllocationExplain +//{ +// public class ClusterAllocationExplainResponseDeserialisationTests : SerialisationTestBase +// { +// protected override string ResponseJson => @"{ +// ""index"" : ""test-index"", +// ""shard"" : 0, +// ""primary"" : true, +// ""current_state"" : ""started"", +// ""current_node"" : { +// ""id"" : ""I1WCx2PlR1OKJXNNT6SgGA"", +// ""name"" : ""instance-0000000000"", +// ""transport_address"" : ""10.46.232.28:19827"", +// ""attributes"" : { +// ""logical_availability_zone"" : ""zone-0"", +// ""server_name"" : ""instance-0000000000.d75875ccd168497a95f1e7ce21d49822"", +// ""availability_zone"" : ""uksouth-1"", +// ""xpack.installed"" : ""true"", +// ""data"" : ""hot"", +// ""instance_configuration"" : ""azure.data.highio.l32sv2"", +// ""transform.node"" : ""true"", +// ""region"" : ""unknown-region"" +// }, +// ""weight_ranking"" : 1 +// }, +// ""can_remain_on_current_node"" : ""yes"", +// ""can_rebalance_cluster"" : ""yes"", +// ""can_rebalance_to_other_node"" : ""no"", +// ""rebalance_explanation"" : ""cannot rebalance as no target node exists that can both allocate this shard and improve the cluster balance"", +// ""node_allocation_decisions"" : [ +// { +// ""node_id"" : ""EX3yzhZyQvC8GPevpb_o2g"", +// ""node_name"" : ""instance-0000000001"", +// ""transport_address"" : ""10.46.232.27:19936"", +// ""node_attributes"" : { +// ""logical_availability_zone"" : ""zone-1"", +// ""server_name"" : ""instance-0000000001.d75875ccd168497a95f1e7ce21d49822"", +// ""availability_zone"" : ""uksouth-3"", +// ""xpack.installed"" : ""true"", +// ""data"" : ""hot"", +// ""instance_configuration"" : ""azure.data.highio.l32sv2"", +// ""transform.node"" : ""true"", +// ""region"" : ""unknown-region"" +// }, +// ""node_decision"" : ""no"", +// ""weight_ranking"" : 1, +// ""deciders"" : [ +// { +// ""decider"" : ""same_shard"", +// ""decision"" : ""NO"", +// ""explanation"" : ""a copy of this shard is already allocated to this node [[test-index][0], node[EX3yzhZyQvC8GPevpb_o2g], [R], s[STARTED], a[id=CgtQVTkqTBic0VYRxatctQ]]"" +// }, +// { +// ""decider"" : ""awareness"", +// ""decision"" : ""NO"", +// ""explanation"" : ""there are too many copies of the shard allocated to nodes with attribute [logical_availability_zone], there are [2] total configured shard copies for this shard id and [2] total attribute values, expected the allocated shard count per attribute [2] to be less than or equal to the upper bound of the required number of shards per attribute [1]"" +// } +// ] +// } +// ] +// }"; - response.Index.ToString().Should().Be("test-index"); - response.Shard.Should().Be(0); - } - } -} +// protected override void Validate(ClusterAllocationExplainResponse response) +// { +// // TODO - Other properties + +// response.Index.ToString().Should().Be("test-index"); +// response.Shard.Should().Be(0); +// } +// } +//} diff --git a/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksApiTests.cs b/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksApiTests.cs index 49497376e7c..c43c3c51b49 100644 --- a/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksApiTests.cs +++ b/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksApiTests.cs @@ -2,31 +2,33 @@ // 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. -using Elastic.Clients.Elasticsearch.Cluster; -using Tests.Core.ManagedElasticsearch.Clusters; -using Tests.Framework.EndpointTests; -using Tests.Framework.EndpointTests.TestState; +// TODO: Re-enable once cluster APIs are generated. -namespace Tests.Cluster.ClusterPendingTasks -{ - public class ClusterPendingTasksApiTests - : ApiIntegrationTestBase - { - public ClusterPendingTasksApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { } +//using Elastic.Clients.Elasticsearch.Cluster; +//using Tests.Core.ManagedElasticsearch.Clusters; +//using Tests.Framework.EndpointTests; +//using Tests.Framework.EndpointTests.TestState; - protected override bool ExpectIsValid => true; - protected override int ExpectStatusCode => 200; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override string ExpectedUrlPathAndQuery => "/_cluster/pending_tasks"; +//namespace Tests.Cluster.ClusterPendingTasks +//{ +// public class ClusterPendingTasksApiTests +// : ApiIntegrationTestBase +// { +// public ClusterPendingTasksApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { } - protected override LazyResponses ClientUsage() => Calls( - (client, f) => client.Cluster.PendingTasks(), - (client, f) => client.Cluster.PendingTasksAsync(), - (client, r) => client.Cluster.PendingTasks(r), - (client, r) => client.Cluster.PendingTasksAsync(r) - ); +// protected override bool ExpectIsValid => true; +// protected override int ExpectStatusCode => 200; +// protected override HttpMethod HttpMethod => HttpMethod.GET; +// protected override string ExpectedUrlPathAndQuery => "/_cluster/pending_tasks"; - protected override void ExpectResponse(ClusterPendingTasksResponse response) => response.Tasks.Should().NotBeNull(); - } -} +// protected override LazyResponses ClientUsage() => Calls( +// (client, f) => client.Cluster.PendingTasks(), +// (client, f) => client.Cluster.PendingTasksAsync(), +// (client, r) => client.Cluster.PendingTasks(r), +// (client, r) => client.Cluster.PendingTasksAsync(r) +// ); + +// protected override void ExpectResponse(ClusterPendingTasksResponse response) => response.Tasks.Should().NotBeNull(); +// } +//} diff --git a/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksResponseDeserialisationTests.cs b/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksResponseDeserialisationTests.cs index 09f28d0a685..fce372c0695 100644 --- a/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksResponseDeserialisationTests.cs +++ b/tests/Tests/Cluster/ClusterPendingTasks/ClusterPendingTasksResponseDeserialisationTests.cs @@ -2,54 +2,56 @@ // 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. -using System.Linq; -using Elastic.Clients.Elasticsearch.Cluster; +// TODO: Re-enable once cluster APIs are generated. -namespace Tests.Cluster.ClusterPendingTasks -{ - public class ClusterPendingTasksResponseDeserialisationTests : SerialisationTestBase - { - protected override string ResponseJson => @"{ - ""tasks"": [ - { - ""insert_order"": 101, - ""priority"": ""URGENT"", - ""source"": ""create-index [foo_9], cause [api]"", - ""executing"" : true, - ""time_in_queue_millis"": 86, - ""time_in_queue"": ""86ms"" - }, - { - ""insert_order"": 46, - ""priority"": ""HIGH"", - ""source"": ""shard-started ([foo_2][1], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]"", - ""executing"" : false, - ""time_in_queue_millis"": 842, - ""time_in_queue"": ""842ms"" - }, - { - ""insert_order"": 45, - ""priority"": ""HIGH"", - ""source"": ""shard-started ([foo_2][0], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]"", - ""executing"" : false, - ""time_in_queue_millis"": 858, - ""time_in_queue"": ""858ms"" - } - ] -}"; +//using System.Linq; +//using Elastic.Clients.Elasticsearch.Cluster; - protected override void Validate(ClusterPendingTasksResponse response) - { - response.Tasks.Count.Should().Be(3); +//namespace Tests.Cluster.ClusterPendingTasks +//{ +// public class ClusterPendingTasksResponseDeserialisationTests : SerialisationTestBase +// { +// protected override string ResponseJson => @"{ +// ""tasks"": [ +// { +// ""insert_order"": 101, +// ""priority"": ""URGENT"", +// ""source"": ""create-index [foo_9], cause [api]"", +// ""executing"" : true, +// ""time_in_queue_millis"": 86, +// ""time_in_queue"": ""86ms"" +// }, +// { +// ""insert_order"": 46, +// ""priority"": ""HIGH"", +// ""source"": ""shard-started ([foo_2][1], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]"", +// ""executing"" : false, +// ""time_in_queue_millis"": 842, +// ""time_in_queue"": ""842ms"" +// }, +// { +// ""insert_order"": 45, +// ""priority"": ""HIGH"", +// ""source"": ""shard-started ([foo_2][0], node[tMTocMvQQgGCkj7QDHl3OA], [P], s[INITIALIZING]), reason [after recovery from shard_store]"", +// ""executing"" : false, +// ""time_in_queue_millis"": 858, +// ""time_in_queue"": ""858ms"" +// } +// ] +//}"; - var firstTask = response.Tasks.First(); +// protected override void Validate(ClusterPendingTasksResponse response) +// { +// response.Tasks.Count.Should().Be(3); - firstTask.InsertOrder.Should().Be(101); - firstTask.Priority.Should().Be("URGENT"); - firstTask.Source.Should().Be("create-index [foo_9], cause [api]"); - firstTask.Executing.Should().Be(true); - firstTask.TimeInQueueMillis.Should().Be(86); - firstTask.TimeInQueue.Should().Be("86ms"); - } - } -} +// var firstTask = response.Tasks.First(); + +// firstTask.InsertOrder.Should().Be(101); +// firstTask.Priority.Should().Be("URGENT"); +// firstTask.Source.Should().Be("create-index [foo_9], cause [api]"); +// firstTask.Executing.Should().Be(true); +// firstTask.TimeInQueueMillis.Should().Be(86); +// firstTask.TimeInQueue.Should().Be("86ms"); +// } +// } +//} diff --git a/tests/Tests/Cluster/ClusterState/ClusterStateApiTests.cs b/tests/Tests/Cluster/ClusterState/ClusterStateApiTests.cs index db3dd33c99d..ae0f9c1e5cd 100644 --- a/tests/Tests/Cluster/ClusterState/ClusterStateApiTests.cs +++ b/tests/Tests/Cluster/ClusterState/ClusterStateApiTests.cs @@ -2,63 +2,65 @@ // 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. -using Elastic.Clients.Elasticsearch.Cluster; -using Tests.Core.ManagedElasticsearch.Clusters; -using Tests.Framework.EndpointTests; -using Tests.Framework.EndpointTests.TestState; - -namespace Tests.Cluster.ClusterState; - -public class ClusterStateApiTests - : ApiIntegrationTestBase -{ - public ClusterStateApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { } - - protected override bool ExpectIsValid => true; - protected override int ExpectStatusCode => 200; - protected override HttpMethod HttpMethod => HttpMethod.GET; - protected override string ExpectedUrlPathAndQuery => "/_cluster/state"; - - protected override LazyResponses ClientUsage() => Calls( - (client, f) => client.Cluster.State(), - (client, f) => client.Cluster.StateAsync(), - (client, r) => client.Cluster.State(r), - (client, r) => client.Cluster.StateAsync(r) - ); - - protected override void ExpectResponse(ClusterStateResponse response) - { - // TODO: Fix response - - //response.ClusterName.Should().NotBeNullOrWhiteSpace(); - //response.MasterNode.Should().NotBeNullOrWhiteSpace(); - //response.StateUUID.Should().NotBeNullOrWhiteSpace(); - //response.Version.Should().BeGreaterThan(0); - - //var masterNode = response.State["nodes"][response.MasterNode]; - //var masterNodeName = masterNode["name"].Value as string; - //var transportAddress = masterNode["transport_address"].Value as string; - //masterNodeName.Should().NotBeNullOrWhiteSpace(); - //transportAddress.Should().NotBeNullOrWhiteSpace(); - - //var getSyntax = response.Get($"nodes.{response.MasterNode}.transport_address"); - //getSyntax.Should().NotBeNullOrWhiteSpace().And.Be(transportAddress); - - //var badPath = response.Get($"this.is.not.a.path.into.the.response.structure"); - //badPath.Should().BeNull(); - - //var dict = response.Get($"nodes"); - - //dict.Count.Should().BeGreaterThan(0); - //var node = dict[response.MasterNode].ToDictionary(); - //node.Should().NotBeNull().And.ContainKey("name"); - - //object dictDoesNotExist = response.Get("nodes2"); - //dictDoesNotExist.Should().BeNull(); - - //dynamic r = response.State; - - //string lastCommittedConfig = r.metadata.cluster_coordination.last_committed_config[0]; - //lastCommittedConfig.Should().NotBeNullOrWhiteSpace(); - } -} +// TODO: Re-enable once cluster state APIs are generated. + +//using Elastic.Clients.Elasticsearch.Cluster; +//using Tests.Core.ManagedElasticsearch.Clusters; +//using Tests.Framework.EndpointTests; +//using Tests.Framework.EndpointTests.TestState; + +//namespace Tests.Cluster.ClusterState; + +//public class ClusterStateApiTests +// : ApiIntegrationTestBase +//{ +// public ClusterStateApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { } + +// protected override bool ExpectIsValid => true; +// protected override int ExpectStatusCode => 200; +// protected override HttpMethod HttpMethod => HttpMethod.GET; +// protected override string ExpectedUrlPathAndQuery => "/_cluster/state"; + +// protected override LazyResponses ClientUsage() => Calls( +// (client, f) => client.Cluster.State(), +// (client, f) => client.Cluster.StateAsync(), +// (client, r) => client.Cluster.State(r), +// (client, r) => client.Cluster.StateAsync(r) +// ); + +// protected override void ExpectResponse(ClusterStateResponse response) +// { +// // TODO: Fix response + +// //response.ClusterName.Should().NotBeNullOrWhiteSpace(); +// //response.MasterNode.Should().NotBeNullOrWhiteSpace(); +// //response.StateUUID.Should().NotBeNullOrWhiteSpace(); +// //response.Version.Should().BeGreaterThan(0); + +// //var masterNode = response.State["nodes"][response.MasterNode]; +// //var masterNodeName = masterNode["name"].Value as string; +// //var transportAddress = masterNode["transport_address"].Value as string; +// //masterNodeName.Should().NotBeNullOrWhiteSpace(); +// //transportAddress.Should().NotBeNullOrWhiteSpace(); + +// //var getSyntax = response.Get($"nodes.{response.MasterNode}.transport_address"); +// //getSyntax.Should().NotBeNullOrWhiteSpace().And.Be(transportAddress); + +// //var badPath = response.Get($"this.is.not.a.path.into.the.response.structure"); +// //badPath.Should().BeNull(); + +// //var dict = response.Get($"nodes"); + +// //dict.Count.Should().BeGreaterThan(0); +// //var node = dict[response.MasterNode].ToDictionary(); +// //node.Should().NotBeNull().And.ContainKey("name"); + +// //object dictDoesNotExist = response.Get("nodes2"); +// //dictDoesNotExist.Should().BeNull(); + +// //dynamic r = response.State; + +// //string lastCommittedConfig = r.metadata.cluster_coordination.last_committed_config[0]; +// //lastCommittedConfig.Should().NotBeNullOrWhiteSpace(); +// } +//} diff --git a/tests/Tests/Serialization/Xpack/MachineLearningJobsSerializationTests.cs b/tests/Tests/Serialization/Xpack/MachineLearningJobsSerializationTests.cs index d12f721ba52..0bb85a555a0 100644 --- a/tests/Tests/Serialization/Xpack/MachineLearningJobsSerializationTests.cs +++ b/tests/Tests/Serialization/Xpack/MachineLearningJobsSerializationTests.cs @@ -2,32 +2,34 @@ // 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. -using Elastic.Clients.Elasticsearch.Xpack; -using VerifyXunit; +// TODO: Re-enable once ML APIs are generated. -namespace Tests.Serialization.Xpack; +//using Elastic.Clients.Elasticsearch.Xpack; +//using VerifyXunit; -[UsesVerify] -public class MachineLearningJobsSerializationTests : SerializerTestBase -{ - [U] - public void Deserializes_Xpack_Usage_MachineLearning_Jobs() - { - const string json = @"{""_all"":{""count"":1,""created_by"":{},""detectors"":{""avg"":10,""max"":20,""min"":1,""total"":100},""forecasts"": -{""forecasted_jobs"":30,""total"":300},""model_size"":{""avg"":200,""max"":400,""min"":100,""total"":50}}}"; +//namespace Tests.Serialization.Xpack; - var jobs = DeserializeJsonString(json); +//[UsesVerify] +//public class MachineLearningJobsSerializationTests : SerializerTestBase +//{ +// [U] +// public void Deserializes_Xpack_Usage_MachineLearning_Jobs() +// { +// const string json = @"{""_all"":{""count"":1,""created_by"":{},""detectors"":{""avg"":10,""max"":20,""min"":1,""total"":100},""forecasts"": +//{""forecasted_jobs"":30,""total"":300},""model_size"":{""avg"":200,""max"":400,""min"":100,""total"":50}}}"; - jobs.All.Should().NotBeNull(); - jobs.All.Count.Should().Be(1); - jobs.All.Detectors["avg"].Should().Be(10); - jobs.All.Detectors["max"].Should().Be(20); - jobs.All.Detectors["min"].Should().Be(1); - jobs.All.Detectors["total"].Should().Be(100); - jobs.All.Forecasts["forecasted_jobs"].Should().Be(30); - jobs.All.ModelSize["avg"].Should().Be(200); - jobs.All.ModelSize["max"].Should().Be(400); - jobs.All.ModelSize["min"].Should().Be(100); - jobs.All.ModelSize["total"].Should().Be(50); - } -} +// var jobs = DeserializeJsonString(json); + +// jobs.All.Should().NotBeNull(); +// jobs.All.Count.Should().Be(1); +// jobs.All.Detectors["avg"].Should().Be(10); +// jobs.All.Detectors["max"].Should().Be(20); +// jobs.All.Detectors["min"].Should().Be(1); +// jobs.All.Detectors["total"].Should().Be(100); +// jobs.All.Forecasts["forecasted_jobs"].Should().Be(30); +// jobs.All.ModelSize["avg"].Should().Be(200); +// jobs.All.ModelSize["max"].Should().Be(400); +// jobs.All.ModelSize["min"].Should().Be(100); +// jobs.All.ModelSize["total"].Should().Be(50); +// } +//} From cf9a37ac4dbc8a68f27addf831432d5d75641c20 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Mon, 3 Oct 2022 14:47:13 +0100 Subject: [PATCH 2/2] Further supported API modifications --- .../_Generated/Api/ApiUrlsLookup.g.cs | 3 +- .../LogstashDeletePipelineRequest.g.cs | 92 -------- .../Logstash/LogstashPutPipelineRequest.g.cs | 92 -------- .../Api/MultiSearchTemplateRequest.g.cs | 210 ++++++++++++++++++ ....g.cs => MultiSearchTemplateResponse.g.cs} | 11 +- .../Client/ElasticsearchClient.Logstash.g.cs | 147 ------------ .../Client/ElasticsearchClient.g.cs | 46 +++- .../RequestItem.g.cs} | 16 +- .../_Generated/Types/TemplateConfig.g.cs | 133 +++++++++++ 9 files changed, 408 insertions(+), 342 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Api/{Logstash/LogstashDeletePipelineResponse.g.cs => MultiSearchTemplateResponse.g.cs} (77%) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/{Api/Logstash/LogstashPutPipelineResponse.g.cs => Types/RequestItem.g.cs} (71%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TemplateConfig.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs index 339d215e907..a1149150cbd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs @@ -91,10 +91,9 @@ internal static class ApiUrlsLookups internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "/_validate/query", "/{index}/_validate/query" }); internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "/{index}/_doc/{id}", "/{index}/_doc" }); internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "/" }); - internal static ApiUrls LogstashDeletePipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); - internal static ApiUrls LogstashPutPipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" }); internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "/_mget", "/{index}/_mget" }); internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "/_msearch", "/{index}/_msearch" }); + internal static ApiUrls NoNamespaceMsearchTemplate = new ApiUrls(new[] { "/_msearch/template", "/{index}/_msearch/template" }); internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "/{index}/_pit" }); internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "/" }); internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "/_scripts/{id}", "/_scripts/{id}/{context}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs deleted file mode 100644 index e6f09256493..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Logstash -{ - public sealed class LogstashDeletePipelineRequestParameters : RequestParameters - { - } - - public sealed partial class LogstashDeletePipelineRequest : PlainRequestBase - { - public LogstashDeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - } - - public sealed partial class LogstashDeletePipelineRequestDescriptor : RequestDescriptorBase, LogstashDeletePipelineRequestParameters> - { - internal LogstashDeletePipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal LogstashDeletePipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public LogstashDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class LogstashDeletePipelineRequestDescriptor : RequestDescriptorBase - { - internal LogstashDeletePipelineRequestDescriptor(Action configure) => configure.Invoke(this); - public LogstashDeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal LogstashDeletePipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashDeletePipeline; - protected override HttpMethod HttpMethod => HttpMethod.DELETE; - protected override bool SupportsBody => false; - public LogstashDeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs deleted file mode 100644 index 194de35fcb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Logstash -{ - public sealed class LogstashPutPipelineRequestParameters : RequestParameters - { - } - - public sealed partial class LogstashPutPipelineRequest : PlainRequestBase - { - public LogstashPutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - } - - public sealed partial class LogstashPutPipelineRequestDescriptor : RequestDescriptorBase, LogstashPutPipelineRequestParameters> - { - internal LogstashPutPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal LogstashPutPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public LogstashPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } - - public sealed partial class LogstashPutPipelineRequestDescriptor : RequestDescriptorBase - { - internal LogstashPutPipelineRequestDescriptor(Action configure) => configure.Invoke(this); - public LogstashPutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) - { - } - - internal LogstashPutPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlsLookups.LogstashPutPipeline; - protected override HttpMethod HttpMethod => HttpMethod.PUT; - protected override bool SupportsBody => false; - public LogstashPutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs new file mode 100644 index 00000000000..eeb8583054c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -0,0 +1,210 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +#nullable restore +namespace Elastic.Clients.Elasticsearch +{ + public sealed class MultiSearchTemplateRequestParameters : RequestParameters + { + [JsonIgnore] + public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } + + [JsonIgnore] + public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } + + [JsonIgnore] + public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } + + [JsonIgnore] + public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } + } + + public sealed partial class MultiSearchTemplateRequest : PlainRequestBase, IStreamSerializable + { + public MultiSearchTemplateRequest() + { + } + + public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceMsearchTemplate; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + [JsonIgnore] + public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } + + [JsonIgnore] + public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } + + [JsonIgnore] + public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } + + [JsonIgnore] + public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } + + public List SearchTemplates { get; set; } + + void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (SearchTemplates is null) + return; + foreach (var item in SearchTemplates) + { + if (item is IStreamSerializable serializable) + serializable.Serialize(stream, settings, formatting); + } + } + + async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (SearchTemplates is null) + return; + foreach (var item in SearchTemplates) + { + if (item is IStreamSerializable serializable) + await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); + } + } + } + + public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptorBase, MultiSearchTemplateRequestParameters>, IStreamSerializable + { + internal MultiSearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); + public MultiSearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceMsearchTemplate; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + public MultiSearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); + public MultiSearchTemplateRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); + public MultiSearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); + public MultiSearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); + public MultiSearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); + public MultiSearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + + List _items = new(); + void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (_items is null) + return; + foreach (var item in _items) + { + if (item is IStreamSerializable serializable) + serializable.Serialize(stream, settings, formatting); + } + } + + async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (_items is null) + return; + foreach (var item in _items) + { + if (item is IStreamSerializable serializable) + await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); + } + } + + public MultiSearchTemplateRequestDescriptor Add(RequestItem item) + { + _items.Add(item); + return this; + } + } + + public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptorBase, IStreamSerializable + { + internal MultiSearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); + public MultiSearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlsLookups.NoNamespaceMsearchTemplate; + protected override HttpMethod HttpMethod => HttpMethod.POST; + protected override bool SupportsBody => true; + public MultiSearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); + public MultiSearchTemplateRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); + public MultiSearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); + public MultiSearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); + public MultiSearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); + public MultiSearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } + + List _items = new(); + void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (_items is null) + return; + foreach (var item in _items) + { + if (item is IStreamSerializable serializable) + serializable.Serialize(stream, settings, formatting); + } + } + + async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) + { + if (_items is null) + return; + foreach (var item in _items) + { + if (item is IStreamSerializable serializable) + await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); + } + } + + public MultiSearchTemplateRequestDescriptor Add(RequestItem item) + { + _items.Add(item); + return this; + } + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs similarity index 77% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs index d9ebeef0db4..72ceb561bf7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashDeletePipelineResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateResponse.g.cs @@ -20,9 +20,16 @@ using System.Text.Json.Serialization; #nullable restore -namespace Elastic.Clients.Elasticsearch.Logstash +namespace Elastic.Clients.Elasticsearch { - public sealed partial class LogstashDeletePipelineResponse : ElasticsearchResponseBase + public sealed partial class MultiSearchTemplateResponse : ElasticsearchResponseBase { + [JsonInclude] + [JsonPropertyName("responses")] + public IReadOnlyCollection> Responses { get; init; } + + [JsonInclude] + [JsonPropertyName("took")] + public long Took { get; init; } } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs deleted file mode 100644 index 93308849e38..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Logstash.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// This file is automatically generated. -// Please do not edit these files manually. -// -// ------------------------------------------------ - -using System; -using System.Threading; -using System.Threading.Tasks; - -#nullable restore -namespace Elastic.Clients.Elasticsearch.Logstash -{ - public class LogstashNamespace : NamespacedClientProxy - { - internal LogstashNamespace(ElasticsearchClient client) : base(client) - { - } - - public LogstashDeletePipelineResponse DeletePipeline(LogstashDeletePipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task DeletePipelineAsync(LogstashDeletePipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LogstashDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LogstashDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LogstashDeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, LogstashDeletePipelineResponse>(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashDeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, LogstashDeletePipelineResponse>(descriptor); - } - - public LogstashPutPipelineResponse PutPipeline(LogstashPutPipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - public Task PutPipelineAsync(LogstashPutPipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - public LogstashPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LogstashPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - public LogstashPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, LogstashPutPipelineResponse>(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor); - } - - public Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new LogstashPutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, LogstashPutPipelineResponse>(descriptor); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index fdf350db144..2230022dfcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -19,7 +19,6 @@ using Elastic.Clients.Elasticsearch.Cluster; using Elastic.Clients.Elasticsearch.Eql; using Elastic.Clients.Elasticsearch.IndexManagement; -using Elastic.Clients.Elasticsearch.Logstash; using Elastic.Clients.Elasticsearch.Sql; using System; using System.Threading; @@ -38,8 +37,6 @@ public partial class ElasticsearchClient public IndicesNamespace Indices { get; private set; } - public LogstashNamespace Logstash { get; private set; } - public SqlNamespace Sql { get; private set; } private partial void SetupNamespaces() @@ -48,7 +45,6 @@ private partial void SetupNamespaces() Cluster = new ClusterNamespace(this); Eql = new EqlNamespace(this); Indices = new IndicesNamespace(this); - Logstash = new LogstashNamespace(this); Sql = new SqlNamespace(this); } @@ -1146,6 +1142,48 @@ public Task> MultiSearchAsync(Action, MultiSearchResponse>(descriptor); } + public MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) + { + request.BeforeRequest(); + return DoRequest>(request); + } + + public Task> MultiSearchTemplateAsync(MultiSearchTemplateRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync>(request, cancellationToken); + } + + public MultiSearchTemplateResponse MultiSearchTemplate() + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse>(descriptor); + } + + public MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse>(descriptor); + } + + public Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse>(descriptor); + } + + public Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse>(descriptor); + } + public OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestItem.g.cs similarity index 71% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestItem.g.cs index 92a9b6f8fc1..6e60997eaf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Logstash/LogstashPutPipelineResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RequestItem.g.cs @@ -15,14 +15,24 @@ // // ------------------------------------------------ -using Elastic.Transport.Products.Elasticsearch; +using Elastic.Transport; +using System; using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; using System.Text.Json.Serialization; #nullable restore -namespace Elastic.Clients.Elasticsearch.Logstash +namespace Elastic.Clients.Elasticsearch { - public sealed partial class LogstashPutPipelineResponse : ElasticsearchResponseBase + public partial class RequestItem : Union { + public RequestItem(Elastic.Clients.Elasticsearch.MultisearchHeader multisearchHeader) : base(multisearchHeader) + { + } + + public RequestItem(Elastic.Clients.Elasticsearch.TemplateConfig templateConfig) : base(templateConfig) + { + } } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TemplateConfig.g.cs new file mode 100644 index 00000000000..4616a8ed5d1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TemplateConfig.g.cs @@ -0,0 +1,133 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +#nullable restore +namespace Elastic.Clients.Elasticsearch +{ + public sealed partial class TemplateConfig + { + [JsonInclude] + [JsonPropertyName("explain")] + public bool? Explain { get; set; } + + [JsonInclude] + [JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + + [JsonInclude] + [JsonPropertyName("params")] + public Dictionary? Params { get; set; } + + [JsonInclude] + [JsonPropertyName("profile")] + public bool? Profile { get; set; } + + [JsonInclude] + [JsonPropertyName("source")] + public string? Source { get; set; } + } + + public sealed partial class TemplateConfigDescriptor : SerializableDescriptorBase + { + internal TemplateConfigDescriptor(Action configure) => configure.Invoke(this); + public TemplateConfigDescriptor() : base() + { + } + + private bool? ExplainValue { get; set; } + + private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } + + private Dictionary? ParamsValue { get; set; } + + private bool? ProfileValue { get; set; } + + private string? SourceValue { get; set; } + + public TemplateConfigDescriptor Explain(bool? explain = true) + { + ExplainValue = explain; + return Self; + } + + public TemplateConfigDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + IdValue = id; + return Self; + } + + public TemplateConfigDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public TemplateConfigDescriptor Profile(bool? profile = true) + { + ProfileValue = profile; + return Self; + } + + public TemplateConfigDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExplainValue.HasValue) + { + writer.WritePropertyName("explain"); + writer.WriteBooleanValue(ExplainValue.Value); + } + + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (ProfileValue.HasValue) + { + writer.WritePropertyName("profile"); + writer.WriteBooleanValue(ProfileValue.Value); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); + } + } +} \ No newline at end of file