diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0bf5e783b1d..01701bf7e30 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -65998,9 +65998,6 @@ paths: operator: OR permissions: - user_access_read - x-unstable: '**Note: Data Access is in preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).**' post: description: Create a dataset with the configurations in the request. operationId: CreateDataset @@ -66050,9 +66047,6 @@ paths: operator: OR permissions: - user_access_manage - x-unstable: '**Note: Data Access is in preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).**' /api/v2/datasets/{dataset_id}: delete: description: Deletes the dataset associated with the ID. @@ -66082,9 +66076,6 @@ paths: operator: OR permissions: - user_access_manage - x-unstable: '**Note: Data Access is in preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).**' get: description: Retrieves the dataset associated with the ID. operationId: GetDataset @@ -66116,9 +66107,6 @@ paths: x-permission: operator: OPEN permissions: [] - x-unstable: '**Note: Data Access is in preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).**' put: description: Edits the dataset associated with the ID. operationId: UpdateDataset @@ -66159,9 +66147,6 @@ paths: operator: OR permissions: - user_access_manage - x-unstable: '**Note: Data Access is in preview. If you have any feedback, - - contact [Datadog support](https://docs.datadoghq.com/help/).**' /api/v2/deletion/data/{product}: post: description: Creates a data deletion request by providing a query and a timeframe @@ -67941,6 +67926,7 @@ paths: - us3.datadoghq.com - us5.datadoghq.com - ap1.datadoghq.com + - ap2.datadoghq.com - datadoghq.eu - ddog-gov.com subdomain: diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index bb1f49b26a2..160b620e03b 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -300,6 +300,7 @@ public class ApiClient { "us3.datadoghq.com", "us5.datadoghq.com", "ap1.datadoghq.com", + "ap2.datadoghq.com", "datadoghq.eu", "ddog-gov.com")))); put( @@ -729,11 +730,6 @@ public class ApiClient { put("v2.muteFindings", false); put("v2.runThreatHuntingJob", false); put("v2.searchSecurityMonitoringHistsignals", false); - put("v2.createDataset", false); - put("v2.deleteDataset", false); - put("v2.getAllDatasets", false); - put("v2.getDataset", false); - put("v2.updateDataset", false); put("v2.cancelDataDeletionRequest", false); put("v2.createDataDeletionRequest", false); put("v2.getDataDeletionRequests", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java b/src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java index 36dfd338a83..89c92b1f840 100644 --- a/src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java @@ -94,13 +94,6 @@ public CompletableFuture createDatasetAsync(DatasetCreate */ public ApiResponse createDatasetWithHttpInfo(DatasetCreateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "createDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -143,16 +136,6 @@ public ApiResponse createDatasetWithHttpInfo(DatasetCreat */ public CompletableFuture> createDatasetWithHttpInfoAsync( DatasetCreateRequest body) { - // Check if unstable operation is enabled - String operationId = "createDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -241,13 +224,6 @@ public CompletableFuture deleteDatasetAsync(String datasetId) { * */ public ApiResponse deleteDatasetWithHttpInfo(String datasetId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'datasetId' is set @@ -291,16 +267,6 @@ public ApiResponse deleteDatasetWithHttpInfo(String datasetId) throws ApiE * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteDatasetWithHttpInfoAsync(String datasetId) { - // Check if unstable operation is enabled - String operationId = "deleteDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'datasetId' is set @@ -387,13 +353,6 @@ public CompletableFuture getAllDatasetsAsync() { * */ public ApiResponse getAllDatasetsWithHttpInfo() throws ApiException { - // Check if unstable operation is enabled - String operationId = "getAllDatasets"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v2/datasets"; @@ -428,16 +387,6 @@ public ApiResponse getAllDatasetsWithHttpInfo() throws Api * @return CompletableFuture<ApiResponse<DatasetResponseMulti>> */ public CompletableFuture> getAllDatasetsWithHttpInfoAsync() { - // Check if unstable operation is enabled - String operationId = "getAllDatasets"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/v2/datasets"; @@ -519,13 +468,6 @@ public CompletableFuture getDatasetAsync(String datasetId */ public ApiResponse getDatasetWithHttpInfo(String datasetId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = null; // verify the required parameter 'datasetId' is set @@ -570,16 +512,6 @@ public ApiResponse getDatasetWithHttpInfo(String datasetI */ public CompletableFuture> getDatasetWithHttpInfoAsync( String datasetId) { - // Check if unstable operation is enabled - String operationId = "getDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = null; // verify the required parameter 'datasetId' is set @@ -677,13 +609,6 @@ public CompletableFuture updateDatasetAsync( */ public ApiResponse updateDatasetWithHttpInfo( String datasetId, DatasetUpdateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "updateDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } Object localVarPostBody = body; // verify the required parameter 'datasetId' is set @@ -735,16 +660,6 @@ public ApiResponse updateDatasetWithHttpInfo( */ public CompletableFuture> updateDatasetWithHttpInfoAsync( String datasetId, DatasetUpdateRequest body) { - // Check if unstable operation is enabled - String operationId = "updateDataset"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } Object localVarPostBody = body; // verify the required parameter 'datasetId' is set