Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -67941,6 +67926,7 @@ paths:
- us3.datadoghq.com
- us5.datadoghq.com
- ap1.datadoghq.com
- ap2.datadoghq.com
- datadoghq.eu
- ddog-gov.com
subdomain:
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
Expand Down
85 changes: 0 additions & 85 deletions src/main/java/com/datadog/api/client/v2/api/DatasetsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ public CompletableFuture<DatasetResponseSingle> createDatasetAsync(DatasetCreate
*/
public ApiResponse<DatasetResponseSingle> 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
Expand Down Expand Up @@ -143,16 +136,6 @@ public ApiResponse<DatasetResponseSingle> createDatasetWithHttpInfo(DatasetCreat
*/
public CompletableFuture<ApiResponse<DatasetResponseSingle>> 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<ApiResponse<DatasetResponseSingle>> 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
Expand Down Expand Up @@ -241,13 +224,6 @@ public CompletableFuture<Void> deleteDatasetAsync(String datasetId) {
* </table>
*/
public ApiResponse<Void> 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
Expand Down Expand Up @@ -291,16 +267,6 @@ public ApiResponse<Void> deleteDatasetWithHttpInfo(String datasetId) throws ApiE
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
*/
public CompletableFuture<ApiResponse<Void>> 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<ApiResponse<Void>> 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
Expand Down Expand Up @@ -387,13 +353,6 @@ public CompletableFuture<DatasetResponseMulti> getAllDatasetsAsync() {
* </table>
*/
public ApiResponse<DatasetResponseMulti> 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";
Expand Down Expand Up @@ -428,16 +387,6 @@ public ApiResponse<DatasetResponseMulti> getAllDatasetsWithHttpInfo() throws Api
* @return CompletableFuture&lt;ApiResponse&lt;DatasetResponseMulti&gt;&gt;
*/
public CompletableFuture<ApiResponse<DatasetResponseMulti>> 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<ApiResponse<DatasetResponseMulti>> 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";
Expand Down Expand Up @@ -519,13 +468,6 @@ public CompletableFuture<DatasetResponseSingle> getDatasetAsync(String datasetId
*/
public ApiResponse<DatasetResponseSingle> 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
Expand Down Expand Up @@ -570,16 +512,6 @@ public ApiResponse<DatasetResponseSingle> getDatasetWithHttpInfo(String datasetI
*/
public CompletableFuture<ApiResponse<DatasetResponseSingle>> 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<ApiResponse<DatasetResponseSingle>> 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
Expand Down Expand Up @@ -677,13 +609,6 @@ public CompletableFuture<DatasetResponseSingle> updateDatasetAsync(
*/
public ApiResponse<DatasetResponseSingle> 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
Expand Down Expand Up @@ -735,16 +660,6 @@ public ApiResponse<DatasetResponseSingle> updateDatasetWithHttpInfo(
*/
public CompletableFuture<ApiResponse<DatasetResponseSingle>> 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<ApiResponse<DatasetResponseSingle>> 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
Expand Down
Loading