Skip to content

Commit 09f630c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c3fa3e8 of spec repo
1 parent 8ec5b2c commit 09f630c

13 files changed

Lines changed: 258 additions & 85 deletions

.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": "0fe80dc",
3-
"generated": "2025-07-28 18:48:01.238"
2+
"spec_repo_commit": "c3fa3e8",
3+
"generated": "2025-07-28 20:23:40.052"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 68 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12477,31 +12477,33 @@ components:
1247712477
required:
1247812478
- type
1247912479
type: object
12480-
Dataset:
12481-
description: "Dataset object.\n\n### Datasets Constraints\n- **Tag Limit per
12482-
Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12483-
pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12484-
tag key or attribute may be used to define access within a single telemetry
12485-
type.\n - The same or different tag key may be used across different telemetry
12486-
types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12487-
a single dataset.\n - A tag value used in one dataset cannot be reused in
12488-
another dataset of the same telemetry type."
12480+
DatasetAttributesRequest:
12481+
description: Dataset metadata and configurations.
1248912482
properties:
12490-
attributes:
12491-
$ref: '#/components/schemas/DatasetAttributes'
12492-
id:
12493-
description: Unique identifier for the dataset.
12494-
example: 123e4567-e89b-12d3-a456-426614174000
12495-
type: string
12496-
type:
12497-
description: Resource type, always "dataset".
12498-
example: dataset
12483+
name:
12484+
description: Name of the dataset.
12485+
example: Security Audit Dataset
1249912486
type: string
12487+
principals:
12488+
description: List of access principals, formatted as `principal_type:id`.
12489+
Principal can be 'team' or 'role'.
12490+
example:
12491+
- role:86245fce-0a4e-11f0-92bd-da7ad0900002
12492+
items:
12493+
example: role:86245fce-0a4e-11f0-92bd-da7ad0900002
12494+
type: string
12495+
type: array
12496+
product_filters:
12497+
description: List of product-specific filters.
12498+
items:
12499+
$ref: '#/components/schemas/FiltersPerProduct'
12500+
type: array
1250012501
required:
12501-
- type
12502-
- attributes
12502+
- name
12503+
- product_filters
12504+
- principals
1250312505
type: object
12504-
DatasetAttributes:
12506+
DatasetAttributesResponse:
1250512507
description: Dataset metadata and configuration(s).
1250612508
properties:
1250712509
created_at:
@@ -12531,26 +12533,63 @@ components:
1253112533
items:
1253212534
$ref: '#/components/schemas/FiltersPerProduct'
1253312535
type: array
12534-
required:
12535-
- name
12536-
- product_filters
12537-
- principals
1253812536
type: object
1253912537
DatasetCreateRequest:
1254012538
description: Create request for a dataset.
1254112539
properties:
1254212540
data:
12543-
$ref: '#/components/schemas/Dataset'
12541+
$ref: '#/components/schemas/DatasetRequest'
1254412542
required:
1254512543
- data
1254612544
type: object
12545+
DatasetRequest:
12546+
description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag limit per
12547+
dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12548+
pairs per product.\n\n- **Tag key rules per telemetry type**:\n - Only one
12549+
tag key or attribute may be used to define access within a single telemetry
12550+
type.\n - The same or different tag key may be used across different telemetry
12551+
types.\n\n- **Tag value uniqueness**:\n - Tag values must be unique within
12552+
a single dataset.\n - A tag value used in one dataset cannot be reused in
12553+
another dataset of the same telemetry type."
12554+
properties:
12555+
attributes:
12556+
$ref: '#/components/schemas/DatasetAttributesRequest'
12557+
type:
12558+
description: Resource type, always "dataset".
12559+
example: dataset
12560+
type: string
12561+
required:
12562+
- type
12563+
- attributes
12564+
type: object
12565+
DatasetResponse:
12566+
description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag Limit per
12567+
Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12568+
pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12569+
tag key or attribute may be used to define access within a single telemetry
12570+
type.\n - The same or different tag key may be used across different telemetry
12571+
types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12572+
a single dataset.\n - A tag value used in one dataset cannot be reused in
12573+
another dataset of the same telemetry type."
12574+
properties:
12575+
attributes:
12576+
$ref: '#/components/schemas/DatasetAttributesResponse'
12577+
id:
12578+
description: Unique identifier for the dataset.
12579+
example: 123e4567-e89b-12d3-a456-426614174000
12580+
type: string
12581+
type:
12582+
description: Resource type, always "dataset".
12583+
example: dataset
12584+
type: string
12585+
type: object
1254712586
DatasetResponseMulti:
1254812587
description: Response containing a list of datasets.
1254912588
properties:
1255012589
data:
1255112590
description: The list of datasets returned in response.
1255212591
items:
12553-
$ref: '#/components/schemas/Dataset'
12592+
$ref: '#/components/schemas/DatasetResponse'
1255412593
type: array
1255512594
required:
1255612595
- data
@@ -12559,15 +12598,15 @@ components:
1255912598
description: Response containing a single dataset object.
1256012599
properties:
1256112600
data:
12562-
$ref: '#/components/schemas/Dataset'
12601+
$ref: '#/components/schemas/DatasetResponse'
1256312602
required:
1256412603
- data
1256512604
type: object
1256612605
DatasetUpdateRequest:
1256712606
description: Edit request for a dataset.
1256812607
properties:
1256912608
data:
12570-
$ref: '#/components/schemas/Dataset'
12609+
$ref: '#/components/schemas/DatasetRequest'
1257112610
required:
1257212611
- data
1257312612
type: object

features/v2/datasets.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ Feature: Datasets
1414
@generated @skip @team:DataDog/aaa-granular-access
1515
Scenario: Create a dataset returns "Bad Request" response
1616
Given new "CreateDataset" request
17-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
17+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
1818
When the request is sent
1919
Then the response status is 400 Bad Request
2020

2121
@generated @skip @team:DataDog/aaa-granular-access
2222
Scenario: Create a dataset returns "Conflict" response
2323
Given new "CreateDataset" request
24-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
24+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
2525
When the request is sent
2626
Then the response status is 409 Conflict
2727

2828
@generated @skip @team:DataDog/aaa-granular-access
2929
Scenario: Create a dataset returns "OK" response
3030
Given new "CreateDataset" request
31-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
31+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
3232
When the request is sent
3333
Then the response status is 200 OK
3434

@@ -57,23 +57,23 @@ Feature: Datasets
5757
Scenario: Edit a dataset returns "Bad Request" response
5858
Given new "UpdateDataset" request
5959
And request contains "dataset_id" parameter from "REPLACE.ME"
60-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
60+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
6161
When the request is sent
6262
Then the response status is 400 Bad Request
6363

6464
@generated @skip @team:DataDog/aaa-granular-access
6565
Scenario: Edit a dataset returns "Not Found" response
6666
Given new "UpdateDataset" request
6767
And request contains "dataset_id" parameter from "REPLACE.ME"
68-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
68+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
6969
When the request is sent
7070
Then the response status is 404 Not Found
7171

7272
@generated @skip @team:DataDog/aaa-granular-access
7373
Scenario: Edit a dataset returns "OK" response
7474
Given new "UpdateDataset" request
7575
And request contains "dataset_id" parameter from "REPLACE.ME"
76-
And body with value {"data": {"attributes": {"created_at": null, "name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "id": "123e4567-e89b-12d3-a456-426614174000", "type": "dataset"}}
76+
And body with value {"data": {"attributes": {"name": "Security Audit Dataset", "principals": ["role:86245fce-0a4e-11f0-92bd-da7ad0900002"], "product_filters": [{"filters": ["@application.id:ABCD"], "product": "logs"}]}, "type": "dataset"}}
7777
When the request is sent
7878
Then the response status is 200 OK
7979

services/datasets/src/v2/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ export {
77
} from "./DatasetsApi";
88

99
export { APIErrorResponse } from "./models/APIErrorResponse";
10-
export { Dataset } from "./models/Dataset";
11-
export { DatasetAttributes } from "./models/DatasetAttributes";
10+
export { DatasetAttributesRequest } from "./models/DatasetAttributesRequest";
11+
export { DatasetAttributesResponse } from "./models/DatasetAttributesResponse";
1212
export { DatasetCreateRequest } from "./models/DatasetCreateRequest";
13+
export { DatasetRequest } from "./models/DatasetRequest";
14+
export { DatasetResponse } from "./models/DatasetResponse";
1315
export { DatasetResponseMulti } from "./models/DatasetResponseMulti";
1416
export { DatasetResponseSingle } from "./models/DatasetResponseSingle";
1517
export { DatasetUpdateRequest } from "./models/DatasetUpdateRequest";
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
import { FiltersPerProduct } from "./FiltersPerProduct";
4+
5+
/**
6+
* Dataset metadata and configurations.
7+
*/
8+
export class DatasetAttributesRequest {
9+
/**
10+
* Name of the dataset.
11+
*/
12+
"name": string;
13+
/**
14+
* List of access principals, formatted as `principal_type:id`. Principal can be 'team' or 'role'.
15+
*/
16+
"principals": Array<string>;
17+
/**
18+
* List of product-specific filters.
19+
*/
20+
"productFilters": Array<FiltersPerProduct>;
21+
/**
22+
* A container for additional, undeclared properties.
23+
* This is a holder for any undeclared properties as specified with
24+
* the 'additionalProperties' keyword in the OAS document.
25+
*/
26+
"additionalProperties"?: { [key: string]: any };
27+
/**
28+
* @ignore
29+
*/
30+
"_unparsed"?: boolean;
31+
32+
/**
33+
* @ignore
34+
*/
35+
static readonly attributeTypeMap: AttributeTypeMap = {
36+
name: {
37+
baseName: "name",
38+
type: "string",
39+
required: true,
40+
},
41+
principals: {
42+
baseName: "principals",
43+
type: "Array<string>",
44+
required: true,
45+
},
46+
productFilters: {
47+
baseName: "product_filters",
48+
type: "Array<FiltersPerProduct>",
49+
required: true,
50+
},
51+
additionalProperties: {
52+
baseName: "additionalProperties",
53+
type: "{ [key: string]: any; }",
54+
},
55+
};
56+
57+
/**
58+
* @ignore
59+
*/
60+
static getAttributeTypeMap(): AttributeTypeMap {
61+
return DatasetAttributesRequest.attributeTypeMap;
62+
}
63+
64+
public constructor() {}
65+
}

services/datasets/src/v2/models/DatasetAttributes.ts renamed to services/datasets/src/v2/models/DatasetAttributesResponse.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FiltersPerProduct } from "./FiltersPerProduct";
55
/**
66
* Dataset metadata and configuration(s).
77
*/
8-
export class DatasetAttributes {
8+
export class DatasetAttributesResponse {
99
/**
1010
* Timestamp when the dataset was created.
1111
*/
@@ -17,15 +17,15 @@ export class DatasetAttributes {
1717
/**
1818
* Name of the dataset.
1919
*/
20-
"name": string;
20+
"name"?: string;
2121
/**
2222
* List of access principals, formatted as `principal_type:id`. Principal can be 'team' or 'role'.
2323
*/
24-
"principals": Array<string>;
24+
"principals"?: Array<string>;
2525
/**
2626
* List of product-specific filters.
2727
*/
28-
"productFilters": Array<FiltersPerProduct>;
28+
"productFilters"?: Array<FiltersPerProduct>;
2929
/**
3030
* A container for additional, undeclared properties.
3131
* This is a holder for any undeclared properties as specified with
@@ -54,17 +54,14 @@ export class DatasetAttributes {
5454
name: {
5555
baseName: "name",
5656
type: "string",
57-
required: true,
5857
},
5958
principals: {
6059
baseName: "principals",
6160
type: "Array<string>",
62-
required: true,
6361
},
6462
productFilters: {
6563
baseName: "product_filters",
6664
type: "Array<FiltersPerProduct>",
67-
required: true,
6865
},
6966
additionalProperties: {
7067
baseName: "additionalProperties",
@@ -76,7 +73,7 @@ export class DatasetAttributes {
7673
* @ignore
7774
*/
7875
static getAttributeTypeMap(): AttributeTypeMap {
79-
return DatasetAttributes.attributeTypeMap;
76+
return DatasetAttributesResponse.attributeTypeMap;
8077
}
8178

8279
public constructor() {}

services/datasets/src/v2/models/DatasetCreateRequest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3-
import { Dataset } from "./Dataset";
3+
import { DatasetRequest } from "./DatasetRequest";
44

55
/**
66
* Create request for a dataset.
77
*/
88
export class DatasetCreateRequest {
99
/**
10-
* Dataset object.
10+
* ## Dataset object.
1111
*
12-
* ### Datasets Constraints
13-
* - **Tag Limit per Dataset**:
12+
* # Datasets Constraints
13+
* - **Tag limit per dataset**:
1414
* - Each restricted dataset supports a maximum of 10 key:value pairs per product.
1515
*
16-
* - **Tag Key Rules per Telemetry Type**:
16+
* - **Tag key rules per telemetry type**:
1717
* - Only one tag key or attribute may be used to define access within a single telemetry type.
1818
* - The same or different tag key may be used across different telemetry types.
1919
*
20-
* - **Tag Value Uniqueness**:
20+
* - **Tag value uniqueness**:
2121
* - Tag values must be unique within a single dataset.
2222
* - A tag value used in one dataset cannot be reused in another dataset of the same telemetry type.
2323
*/
24-
"data": Dataset;
24+
"data": DatasetRequest;
2525
/**
2626
* A container for additional, undeclared properties.
2727
* This is a holder for any undeclared properties as specified with
@@ -39,7 +39,7 @@ export class DatasetCreateRequest {
3939
static readonly attributeTypeMap: AttributeTypeMap = {
4040
data: {
4141
baseName: "data",
42-
type: "Dataset",
42+
type: "DatasetRequest",
4343
required: true,
4444
},
4545
additionalProperties: {

0 commit comments

Comments
 (0)