Skip to content

Commit 8b83d90

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7725b08 of spec repo
1 parent 996c71a commit 8b83d90

6 files changed

Lines changed: 64 additions & 48 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31063,9 +31063,17 @@ components:
3106331063
type: string
3106431064
values:
3106531065
description: |-
31066-
Column values in row order. The element type matches the column's `type`;
31067-
for example a `VARCHAR` column carries strings, a `TIMESTAMP` column carries
31068-
Unix-millisecond integers. `null` is allowed for missing values.
31066+
Column values in row order, one entry per result row. The element type
31067+
follows the column's `type`. The following serialization rules should be
31068+
taken into account:
31069+
31070+
- `BIGINT` values are encoded as JSON numbers in the signed 64-bit integer range.
31071+
- `DECIMAL` values are encoded as JSON numbers with 64-bit double precision.
31072+
- `TIMESTAMP` and `DATE` values are encoded as Unix-millisecond integers; a
31073+
`DATE` resolves to midnight UTC.
31074+
- `JSON` values are returned as a JSON-encoded string.
31075+
31076+
`null` is allowed for any column type where a value is missing.
3106931077
example:
3107031078
- web-store
3107131079
- checkout
@@ -135602,9 +135610,6 @@ paths:
135602135610
summary: Execute a tabular DDSQL query
135603135611
tags:
135604135612
- DDSQL
135605-
x-unstable: |-
135606-
**Note**: This endpoint is in preview and is subject to change.
135607-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135608135613
/api/v2/ddsql/query/tabular/fetch:
135609135614
post:
135610135615
description: |-
@@ -135713,9 +135718,6 @@ paths:
135713135718
summary: Fetch the result of a DDSQL query
135714135719
tags:
135715135720
- DDSQL
135716-
x-unstable: |-
135717-
**Note**: This endpoint is in preview and is subject to change.
135718-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
135719135721
/api/v2/deletion/data/{product}:
135720135722
post:
135721135723
description: Creates a data deletion request by providing a query and a timeframe targeting the proper data.
@@ -166072,6 +166074,18 @@ paths:
166072166074
the authenticated org or the request is rejected. Successful calls disable the org
166073166075
and return the resulting state from the downstream service. Requires the
166074166076
`org_management` permission.
166077+
166078+
**Limitations**:
166079+
166080+
- **Organization age**: Only organizations created within the last 10 days can be disabled
166081+
through this endpoint. This restriction is a safeguard against accidentally disabling
166082+
long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`.
166083+
- **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the
166084+
target organization or one of its ancestor organizations. Contact
166085+
[Datadog support](https://docs.datadoghq.com/help/) to enable this for your organization.
166086+
Requests for organizations without this flag return a `403 Forbidden`.
166087+
- **Already-disabled organizations**: If the target organization is already disabled, the request
166088+
returns a `409 Conflict`.
166075166089
operationId: DisableCustomerOrg
166076166090
requestBody:
166077166091
content:
@@ -166120,6 +166134,12 @@ paths:
166120166134
schema:
166121166135
$ref: "#/components/schemas/JSONAPIErrorResponse"
166122166136
description: Forbidden
166137+
"409":
166138+
content:
166139+
application/json:
166140+
schema:
166141+
$ref: "#/components/schemas/JSONAPIErrorResponse"
166142+
description: Conflict
166123166143
"429":
166124166144
$ref: "#/components/responses/TooManyRequestsResponse"
166125166145
"500":

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,6 @@ public class ApiClient {
10041004
put("v2.getAllDatasets", false);
10051005
put("v2.getDataset", false);
10061006
put("v2.updateDataset", false);
1007-
put("v2.executeDdsqlTabularQuery", false);
1008-
put("v2.fetchDdsqlTabularQuery", false);
10091007
put("v2.cancelDataDeletionRequest", false);
10101008
put("v2.createDataDeletionRequest", false);
10111009
put("v2.getDataDeletionRequests", false);

src/main/java/com/datadog/api/client/v2/api/CustomerOrgApi.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ public CompletableFuture<CustomerOrgDisableResponse> disableCustomerOrgAsync(
8282
* resulting state from the downstream service. Requires the <code>org_management</code>
8383
* permission.
8484
*
85+
* <p><strong>Limitations</strong>:
86+
*
87+
* <ul>
88+
* <li><strong>Organization age</strong>: Only organizations created within the last 10 days can
89+
* be disabled through this endpoint. This restriction is a safeguard against accidentally
90+
* disabling long-running organizations. Attempting to disable an older organization returns
91+
* a <code>403 Forbidden</code>.
92+
* <li><strong>Feature flag</strong>: The feature flag <code>org_disable_self_service_enabled
93+
* </code> must be enabled for the target organization or one of its ancestor organizations.
94+
* Contact <a href="https://docs.datadoghq.com/help/">Datadog support</a> to enable this for
95+
* your organization. Requests for organizations without this flag return a <code>
96+
* 403 Forbidden</code>.
97+
* <li><strong>Already-disabled organizations</strong>: If the target organization is already
98+
* disabled, the request returns a <code>409 Conflict</code>.
99+
* </ul>
100+
*
85101
* @param body (required)
86102
* @return ApiResponse&lt;CustomerOrgDisableResponse&gt;
87103
* @throws ApiException if fails to make API call
@@ -93,6 +109,7 @@ public CompletableFuture<CustomerOrgDisableResponse> disableCustomerOrgAsync(
93109
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
94110
* <tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
95111
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
112+
* <tr><td> 409 </td><td> Conflict </td><td> - </td></tr>
96113
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
97114
* <tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
98115
* </table>

src/main/java/com/datadog/api/client/v2/api/DdsqlApi.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ public CompletableFuture<DdsqlTabularQueryResponse> executeDdsqlTabularQueryAsyn
9797
*/
9898
public ApiResponse<DdsqlTabularQueryResponse> executeDdsqlTabularQueryWithHttpInfo(
9999
DdsqlTabularQueryRequest body) throws ApiException {
100-
// Check if unstable operation is enabled
101-
String operationId = "executeDdsqlTabularQuery";
102-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
103-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
104-
} else {
105-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
106-
}
107100
Object localVarPostBody = body;
108101

109102
// verify the required parameter 'body' is set
@@ -146,16 +139,6 @@ public ApiResponse<DdsqlTabularQueryResponse> executeDdsqlTabularQueryWithHttpIn
146139
*/
147140
public CompletableFuture<ApiResponse<DdsqlTabularQueryResponse>>
148141
executeDdsqlTabularQueryWithHttpInfoAsync(DdsqlTabularQueryRequest body) {
149-
// Check if unstable operation is enabled
150-
String operationId = "executeDdsqlTabularQuery";
151-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
152-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
153-
} else {
154-
CompletableFuture<ApiResponse<DdsqlTabularQueryResponse>> result = new CompletableFuture<>();
155-
result.completeExceptionally(
156-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
157-
return result;
158-
}
159142
Object localVarPostBody = body;
160143

161144
// verify the required parameter 'body' is set
@@ -252,13 +235,6 @@ public CompletableFuture<DdsqlTabularQueryResponse> fetchDdsqlTabularQueryAsync(
252235
*/
253236
public ApiResponse<DdsqlTabularQueryResponse> fetchDdsqlTabularQueryWithHttpInfo(
254237
DdsqlTabularQueryFetchRequest body) throws ApiException {
255-
// Check if unstable operation is enabled
256-
String operationId = "fetchDdsqlTabularQuery";
257-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
258-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
259-
} else {
260-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
261-
}
262238
Object localVarPostBody = body;
263239

264240
// verify the required parameter 'body' is set
@@ -301,16 +277,6 @@ public ApiResponse<DdsqlTabularQueryResponse> fetchDdsqlTabularQueryWithHttpInfo
301277
*/
302278
public CompletableFuture<ApiResponse<DdsqlTabularQueryResponse>>
303279
fetchDdsqlTabularQueryWithHttpInfoAsync(DdsqlTabularQueryFetchRequest body) {
304-
// Check if unstable operation is enabled
305-
String operationId = "fetchDdsqlTabularQuery";
306-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
307-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
308-
} else {
309-
CompletableFuture<ApiResponse<DdsqlTabularQueryResponse>> result = new CompletableFuture<>();
310-
result.completeExceptionally(
311-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
312-
return result;
313-
}
314280
Object localVarPostBody = body;
315281

316282
// verify the required parameter 'body' is set

src/main/java/com/datadog/api/client/v2/model/DdsqlTabularQueryColumn.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,19 @@ public DdsqlTabularQueryColumn addValuesItem(Object valuesItem) {
105105
}
106106

107107
/**
108-
* Column values in row order. The element type matches the column's <code>type</code>; for
109-
* example a <code>VARCHAR</code> column carries strings, a <code>TIMESTAMP</code> column carries
110-
* Unix-millisecond integers. <code>null</code> is allowed for missing values.
108+
* Column values in row order, one entry per result row. The element type follows the column's
109+
* <code>type</code>. The following serialization rules should be taken into account:
110+
*
111+
* <ul>
112+
* <li><code>BIGINT</code> values are encoded as JSON numbers in the signed 64-bit integer
113+
* range.
114+
* <li><code>DECIMAL</code> values are encoded as JSON numbers with 64-bit double precision.
115+
* <li><code>TIMESTAMP</code> and <code>DATE</code> values are encoded as Unix-millisecond
116+
* integers; a <code>DATE</code> resolves to midnight UTC.
117+
* <li><code>JSON</code> values are returned as a JSON-encoded string.
118+
* </ul>
119+
*
120+
* <p><code>null</code> is allowed for any column type where a value is missing.
111121
*
112122
* @return values
113123
*/

src/test/resources/com/datadog/api/client/v2/api/customer_org.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Feature: Customer Org
1717
When the request is sent
1818
Then the response status is 400 Bad Request
1919

20+
@generated @skip @team:DataDog/org-management
21+
Scenario: Disable the authenticated customer organization returns "Conflict" response
22+
When the request is sent
23+
Then the response status is 409 Conflict
24+
2025
@generated @skip @team:DataDog/org-management
2126
Scenario: Disable the authenticated customer organization returns "OK" response
2227
When the request is sent

0 commit comments

Comments
 (0)