Skip to content

Commit 771bd50

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7725b08 of spec repo
1 parent 8f65703 commit 771bd50

5 files changed

Lines changed: 57 additions & 14 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/datadog_api_client/configuration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ def __init__(
490490
"v2.get_all_datasets": False,
491491
"v2.get_dataset": False,
492492
"v2.update_dataset": False,
493-
"v2.execute_ddsql_tabular_query": False,
494-
"v2.fetch_ddsql_tabular_query": False,
495493
"v2.cancel_data_deletion_request": False,
496494
"v2.create_data_deletion_request": False,
497495
"v2.get_data_deletion_requests": False,

src/datadog_api_client/v2/api/customer_org_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ def disable_customer_org(
5454
and return the resulting state from the downstream service. Requires the
5555
``org_management`` permission.
5656
57+
**Limitations** :
58+
59+
* **Organization age** : Only organizations created within the last 10 days can be disabled
60+
through this endpoint. This restriction is a safeguard against accidentally disabling
61+
long-running organizations. Attempting to disable an older organization returns a ``403 Forbidden``.
62+
* **Feature flag** : The feature flag ``org_disable_self_service_enabled`` must be enabled for the
63+
target organization or one of its ancestor organizations. Contact
64+
`Datadog support <https://docs.datadoghq.com/help/>`_ to enable this for your organization.
65+
Requests for organizations without this flag return a ``403 Forbidden``.
66+
* **Already-disabled organizations** : If the target organization is already disabled, the request
67+
returns a ``409 Conflict``.
68+
5769
:type body: CustomerOrgDisableRequest
5870
:rtype: CustomerOrgDisableResponse
5971
"""

src/datadog_api_client/v2/model/ddsql_tabular_query_column.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ def __init__(self_, name: str, type: str, values: List[Any], **kwargs):
4444
for the full, up-to-date list.
4545
:type type: str
4646
47-
:param values: Column values in row order. The element type matches the column's ``type`` ;
48-
for example a ``VARCHAR`` column carries strings, a ``TIMESTAMP`` column carries
49-
Unix-millisecond integers. ``null`` is allowed for missing values.
47+
:param values: Column values in row order, one entry per result row. The element type
48+
follows the column's ``type``. The following serialization rules should be
49+
taken into account:
50+
51+
* ``BIGINT`` values are encoded as JSON numbers in the signed 64-bit integer range.
52+
* ``DECIMAL`` values are encoded as JSON numbers with 64-bit double precision.
53+
* ``TIMESTAMP`` and ``DATE`` values are encoded as Unix-millisecond integers; a
54+
``DATE`` resolves to midnight UTC.
55+
* ``JSON`` values are returned as a JSON-encoded string.
56+
57+
``null`` is allowed for any column type where a value is missing.
5058
:type values: [bool, date, datetime, dict, float, int, list, str, UUID, none_type]
5159
"""
5260
super().__init__(kwargs)

tests/v2/features/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)