Skip to content

Commit 777d489

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9439087 of spec repo
1 parent 720f5e8 commit 777d489

File tree

43 files changed

+852
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+852
-167
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "b75095c",
3-
"generated": "2025-07-31 10:46:07.850"
2+
"spec_repo_commit": "9439087",
3+
"generated": "2025-07-31 15:47:35.485"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 84 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12512,31 +12512,33 @@ components:
1251212512
required:
1251312513
- type
1251412514
type: object
12515-
Dataset:
12516-
description: "Dataset object.\n\n### Datasets Constraints\n- **Tag Limit per
12517-
Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12518-
pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12519-
tag key or attribute may be used to define access within a single telemetry
12520-
type.\n - The same or different tag key may be used across different telemetry
12521-
types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12522-
a single dataset.\n - A tag value used in one dataset cannot be reused in
12523-
another dataset of the same telemetry type."
12515+
DatasetAttributesRequest:
12516+
description: Dataset metadata and configurations.
1252412517
properties:
12525-
attributes:
12526-
$ref: '#/components/schemas/DatasetAttributes'
12527-
id:
12528-
description: Unique identifier for the dataset.
12529-
example: 123e4567-e89b-12d3-a456-426614174000
12530-
type: string
12531-
type:
12532-
description: Resource type, always "dataset".
12533-
example: dataset
12518+
name:
12519+
description: Name of the dataset.
12520+
example: Security Audit Dataset
1253412521
type: string
12522+
principals:
12523+
description: List of access principals, formatted as `principal_type:id`.
12524+
Principal can be 'team' or 'role'.
12525+
example:
12526+
- role:94172442-be03-11e9-a77a-3b7612558ac1
12527+
items:
12528+
example: role:94172442-be03-11e9-a77a-3b7612558ac1
12529+
type: string
12530+
type: array
12531+
product_filters:
12532+
description: List of product-specific filters.
12533+
items:
12534+
$ref: '#/components/schemas/FiltersPerProduct'
12535+
type: array
1253512536
required:
12536-
- type
12537-
- attributes
12537+
- name
12538+
- product_filters
12539+
- principals
1253812540
type: object
12539-
DatasetAttributes:
12541+
DatasetAttributesResponse:
1254012542
description: Dataset metadata and configuration(s).
1254112543
properties:
1254212544
created_at:
@@ -12566,43 +12568,76 @@ components:
1256612568
items:
1256712569
$ref: '#/components/schemas/FiltersPerProduct'
1256812570
type: array
12569-
required:
12570-
- name
12571-
- product_filters
12572-
- principals
1257312571
type: object
1257412572
DatasetCreateRequest:
1257512573
description: Create request for a dataset.
1257612574
properties:
1257712575
data:
12578-
$ref: '#/components/schemas/Dataset'
12576+
$ref: '#/components/schemas/DatasetRequest'
1257912577
required:
1258012578
- data
1258112579
type: object
12580+
DatasetRequest:
12581+
description: "**Datasets Object Constraints**\n- **Tag limit per dataset**:\n
12582+
\ - Each restricted dataset supports a maximum of 10 key:value pairs per product.\n\n-
12583+
**Tag key rules per telemetry type**:\n - Only one tag key or attribute may
12584+
be used to define access within a single telemetry type.\n - The same or
12585+
different tag key may be used across different telemetry types.\n\n- **Tag
12586+
value uniqueness**:\n - Tag values must be unique within a single dataset.\n
12587+
\ - A tag value used in one dataset cannot be reused in another dataset of
12588+
the same telemetry type."
12589+
properties:
12590+
attributes:
12591+
$ref: '#/components/schemas/DatasetAttributesRequest'
12592+
type:
12593+
description: Resource type, always "dataset".
12594+
example: dataset
12595+
type: string
12596+
required:
12597+
- type
12598+
- attributes
12599+
type: object
12600+
DatasetResponse:
12601+
description: "**Datasets Object Constraints**\n- **Tag Limit per Dataset**:\n
12602+
\ - Each restricted dataset supports a maximum of 10 key:value pairs per product.\n\n-
12603+
**Tag Key Rules per Telemetry Type**:\n - Only one tag key or attribute may
12604+
be used to define access within a single telemetry type.\n - The same or
12605+
different tag key may be used across different telemetry types.\n\n- **Tag
12606+
Value Uniqueness**:\n - Tag values must be unique within a single dataset.\n
12607+
\ - A tag value used in one dataset cannot be reused in another dataset of
12608+
the same telemetry type."
12609+
properties:
12610+
attributes:
12611+
$ref: '#/components/schemas/DatasetAttributesResponse'
12612+
id:
12613+
description: Unique identifier for the dataset.
12614+
example: 123e4567-e89b-12d3-a456-426614174000
12615+
type: string
12616+
type:
12617+
description: Resource type, always "dataset".
12618+
example: dataset
12619+
type: string
12620+
type: object
1258212621
DatasetResponseMulti:
1258312622
description: Response containing a list of datasets.
1258412623
properties:
1258512624
data:
1258612625
description: The list of datasets returned in response.
1258712626
items:
12588-
$ref: '#/components/schemas/Dataset'
12627+
$ref: '#/components/schemas/DatasetResponse'
1258912628
type: array
12590-
required:
12591-
- data
1259212629
type: object
1259312630
DatasetResponseSingle:
1259412631
description: Response containing a single dataset object.
1259512632
properties:
1259612633
data:
12597-
$ref: '#/components/schemas/Dataset'
12598-
required:
12599-
- data
12634+
$ref: '#/components/schemas/DatasetResponse'
1260012635
type: object
1260112636
DatasetUpdateRequest:
1260212637
description: Edit request for a dataset.
1260312638
properties:
1260412639
data:
12605-
$ref: '#/components/schemas/Dataset'
12640+
$ref: '#/components/schemas/DatasetRequest'
1260612641
required:
1260712642
- data
1260812643
type: object
@@ -48274,6 +48309,9 @@ paths:
4827448309
operator: OR
4827548310
permissions:
4827648311
- user_access_read
48312+
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
48313+
48314+
contact [Datadog support](https://docs.datadoghq.com/help/).**'
4827748315
post:
4827848316
description: Create a dataset with the configurations in the request.
4827948317
operationId: CreateDataset
@@ -48285,7 +48323,7 @@ paths:
4828548323
attributes:
4828648324
name: Test RUM Dataset
4828748325
principals:
48288-
- role:23bacb30-1c59-11f0-a596-da7ad0900002
48326+
- role:94172442-be03-11e9-a77a-3b7612558ac1
4828948327
product_filters:
4829048328
- filters:
4829148329
- '@application.id:application_123'
@@ -48323,6 +48361,9 @@ paths:
4832348361
operator: OR
4832448362
permissions:
4832548363
- user_access_manage
48364+
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
48365+
48366+
contact [Datadog support](https://docs.datadoghq.com/help/).**'
4832648367
/api/v2/datasets/{dataset_id}:
4832748368
delete:
4832848369
description: Deletes the dataset associated with the ID.
@@ -48350,6 +48391,9 @@ paths:
4835048391
x-permission:
4835148392
operator: OPEN
4835248393
permissions: []
48394+
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
48395+
48396+
contact [Datadog support](https://docs.datadoghq.com/help/).**'
4835348397
get:
4835448398
description: Retrieves the dataset associated with the ID.
4835548399
operationId: GetDataset
@@ -48380,6 +48424,9 @@ paths:
4838048424
x-permission:
4838148425
operator: OPEN
4838248426
permissions: []
48427+
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
48428+
48429+
contact [Datadog support](https://docs.datadoghq.com/help/).**'
4838348430
put:
4838448431
description: Edits the dataset associated with the ID.
4838548432
operationId: UpdateDataset
@@ -48418,6 +48465,9 @@ paths:
4841848465
x-permission:
4841948466
operator: OPEN
4842048467
permissions: []
48468+
x-unstable: '**Note: Data Access is in preview. If you have any feedback,
48469+
48470+
contact [Datadog support](https://docs.datadoghq.com/help/).**'
4842148471
/api/v2/deletion/data/{product}:
4842248472
post:
4842348473
description: Creates a data deletion request by providing a query and a timeframe

docs/datadog_api_client.v2.model.rst

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4834,17 +4834,17 @@ datadog\_api\_client.v2.model.datadog\_integration\_update module
48344834
:members:
48354835
:show-inheritance:
48364836

4837-
datadog\_api\_client.v2.model.dataset module
4838-
--------------------------------------------
4837+
datadog\_api\_client.v2.model.dataset\_attributes\_request module
4838+
-----------------------------------------------------------------
48394839

4840-
.. automodule:: datadog_api_client.v2.model.dataset
4840+
.. automodule:: datadog_api_client.v2.model.dataset_attributes_request
48414841
:members:
48424842
:show-inheritance:
48434843

4844-
datadog\_api\_client.v2.model.dataset\_attributes module
4845-
--------------------------------------------------------
4844+
datadog\_api\_client.v2.model.dataset\_attributes\_response module
4845+
------------------------------------------------------------------
48464846

4847-
.. automodule:: datadog_api_client.v2.model.dataset_attributes
4847+
.. automodule:: datadog_api_client.v2.model.dataset_attributes_response
48484848
:members:
48494849
:show-inheritance:
48504850

@@ -4855,6 +4855,20 @@ datadog\_api\_client.v2.model.dataset\_create\_request module
48554855
:members:
48564856
:show-inheritance:
48574857

4858+
datadog\_api\_client.v2.model.dataset\_request module
4859+
-----------------------------------------------------
4860+
4861+
.. automodule:: datadog_api_client.v2.model.dataset_request
4862+
:members:
4863+
:show-inheritance:
4864+
4865+
datadog\_api\_client.v2.model.dataset\_response module
4866+
------------------------------------------------------
4867+
4868+
.. automodule:: datadog_api_client.v2.model.dataset_response
4869+
:members:
4870+
:show-inheritance:
4871+
48584872
datadog\_api\_client.v2.model.dataset\_response\_multi module
48594873
-------------------------------------------------------------
48604874

examples/v2/datasets/CreateDataset.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,33 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v2.api.datasets_api import DatasetsApi
7-
from datadog_api_client.v2.model.dataset import Dataset
8-
from datadog_api_client.v2.model.dataset_attributes import DatasetAttributes
7+
from datadog_api_client.v2.model.dataset_attributes_request import DatasetAttributesRequest
98
from datadog_api_client.v2.model.dataset_create_request import DatasetCreateRequest
9+
from datadog_api_client.v2.model.dataset_request import DatasetRequest
1010
from datadog_api_client.v2.model.filters_per_product import FiltersPerProduct
1111

1212
body = DatasetCreateRequest(
13-
data=Dataset(
14-
attributes=DatasetAttributes(
15-
created_at=None,
13+
data=DatasetRequest(
14+
attributes=DatasetAttributesRequest(
1615
name="Security Audit Dataset",
1716
principals=[
18-
"role:86245fce-0a4e-11f0-92bd-da7ad0900002",
17+
"role:94172442-be03-11e9-a77a-3b7612558ac1",
1918
],
2019
product_filters=[
2120
FiltersPerProduct(
2221
filters=[
2322
"@application.id:ABCD",
2423
],
25-
product="logs",
24+
product="metrics",
2625
),
2726
],
2827
),
29-
id="123e4567-e89b-12d3-a456-426614174000",
3028
type="dataset",
3129
),
3230
)
3331

3432
configuration = Configuration()
33+
configuration.unstable_operations["create_dataset"] = True
3534
with ApiClient(configuration) as api_client:
3635
api_instance = DatasetsApi(api_client)
3736
response = api_instance.create_dataset(body=body)

examples/v2/datasets/DeleteDataset.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
Delete a dataset returns "No Content" response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.datasets_api import DatasetsApi
78

9+
# there is a valid "dataset" in the system
10+
DATASET_ID = environ["DATASET_ID"]
11+
812
configuration = Configuration()
13+
configuration.unstable_operations["delete_dataset"] = True
914
with ApiClient(configuration) as api_client:
1015
api_instance = DatasetsApi(api_client)
1116
api_instance.delete_dataset(
12-
dataset_id="dataset_id",
17+
dataset_id=DATASET_ID,
1318
)

examples/v2/datasets/GetAllDatasets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from datadog_api_client.v2.api.datasets_api import DatasetsApi
77

88
configuration = Configuration()
9+
configuration.unstable_operations["get_all_datasets"] = True
910
with ApiClient(configuration) as api_client:
1011
api_instance = DatasetsApi(api_client)
1112
response = api_instance.get_all_datasets()

examples/v2/datasets/GetDataset.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
Get a single dataset by ID returns "OK" response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.datasets_api import DatasetsApi
78

9+
# there is a valid "dataset" in the system
10+
DATASET_ID = environ["DATASET_ID"]
11+
812
configuration = Configuration()
13+
configuration.unstable_operations["get_dataset"] = True
914
with ApiClient(configuration) as api_client:
1015
api_instance = DatasetsApi(api_client)
1116
response = api_instance.get_dataset(
12-
dataset_id="dataset_id",
17+
dataset_id=DATASET_ID,
1318
)
1419

1520
print(response)

examples/v2/datasets/UpdateDataset.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,41 @@
22
Edit a dataset returns "OK" response
33
"""
44

5+
from os import environ
56
from datadog_api_client import ApiClient, Configuration
67
from datadog_api_client.v2.api.datasets_api import DatasetsApi
7-
from datadog_api_client.v2.model.dataset import Dataset
8-
from datadog_api_client.v2.model.dataset_attributes import DatasetAttributes
8+
from datadog_api_client.v2.model.dataset_attributes_request import DatasetAttributesRequest
9+
from datadog_api_client.v2.model.dataset_request import DatasetRequest
910
from datadog_api_client.v2.model.dataset_update_request import DatasetUpdateRequest
1011
from datadog_api_client.v2.model.filters_per_product import FiltersPerProduct
1112

13+
# there is a valid "dataset" in the system
14+
DATASET_ID = environ["DATASET_ID"]
15+
1216
body = DatasetUpdateRequest(
13-
data=Dataset(
14-
attributes=DatasetAttributes(
15-
created_at=None,
17+
data=DatasetRequest(
18+
attributes=DatasetAttributesRequest(
1619
name="Security Audit Dataset",
1720
principals=[
18-
"role:86245fce-0a4e-11f0-92bd-da7ad0900002",
21+
"role:94172442-be03-11e9-a77a-3b7612558ac1",
1922
],
2023
product_filters=[
2124
FiltersPerProduct(
2225
filters=[
23-
"@application.id:ABCD",
26+
"@application.id:1234",
2427
],
25-
product="logs",
28+
product="metrics",
2629
),
2730
],
2831
),
29-
id="123e4567-e89b-12d3-a456-426614174000",
3032
type="dataset",
3133
),
3234
)
3335

3436
configuration = Configuration()
37+
configuration.unstable_operations["update_dataset"] = True
3538
with ApiClient(configuration) as api_client:
3639
api_instance = DatasetsApi(api_client)
37-
response = api_instance.update_dataset(dataset_id="dataset_id", body=body)
40+
response = api_instance.update_dataset(dataset_id=DATASET_ID, body=body)
3841

3942
print(response)

0 commit comments

Comments
 (0)