File tree Expand file tree Collapse file tree 7 files changed +35
-12
lines changed
packages/datadog-api-client-v2 Expand file tree Collapse file tree 7 files changed +35
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "spec_repo_commit": "3a6cb30 ",
3
- "generated": "2025-08-12 15:42:26.157 "
2
+ "spec_repo_commit": "d5d9444 ",
3
+ "generated": "2025-08-13 14:24:19.464 "
4
4
}
Original file line number Diff line number Diff line change @@ -13264,9 +13264,7 @@ components:
13264
13264
attributes:
13265
13265
$ref: '#/components/schemas/DatasetAttributesRequest'
13266
13266
type:
13267
- description: Resource type, always "dataset".
13268
- example: dataset
13269
- type: string
13267
+ $ref: '#/components/schemas/DatasetType'
13270
13268
required:
13271
13269
- type
13272
13270
- attributes
@@ -13288,9 +13286,7 @@ components:
13288
13286
example: 123e4567-e89b-12d3-a456-426614174000
13289
13287
type: string
13290
13288
type:
13291
- description: Resource type, always "dataset".
13292
- example: dataset
13293
- type: string
13289
+ $ref: '#/components/schemas/DatasetType'
13294
13290
type: object
13295
13291
DatasetResponseMulti:
13296
13292
description: Response containing a list of datasets.
@@ -13307,6 +13303,15 @@ components:
13307
13303
data:
13308
13304
$ref: '#/components/schemas/DatasetResponse'
13309
13305
type: object
13306
+ DatasetType:
13307
+ default: dataset
13308
+ description: Resource type, always "dataset".
13309
+ enum:
13310
+ - dataset
13311
+ example: dataset
13312
+ type: string
13313
+ x-enum-varnames:
13314
+ - DATASET
13310
13315
DatasetUpdateRequest:
13311
13316
description: Edit request for a dataset.
13312
13317
properties:
Original file line number Diff line number Diff line change @@ -1512,6 +1512,7 @@ export { DatasetRequest } from "./models/DatasetRequest";
1512
1512
export { DatasetResponse } from "./models/DatasetResponse" ;
1513
1513
export { DatasetResponseMulti } from "./models/DatasetResponseMulti" ;
1514
1514
export { DatasetResponseSingle } from "./models/DatasetResponseSingle" ;
1515
+ export { DatasetType } from "./models/DatasetType" ;
1515
1516
export { DatasetUpdateRequest } from "./models/DatasetUpdateRequest" ;
1516
1517
export { DataTransform } from "./models/DataTransform" ;
1517
1518
export { DataTransformProperties } from "./models/DataTransformProperties" ;
Original file line number Diff line number Diff line change 4
4
* Copyright 2020-Present Datadog, Inc.
5
5
*/
6
6
import { DatasetAttributesRequest } from "./DatasetAttributesRequest" ;
7
+ import { DatasetType } from "./DatasetType" ;
7
8
8
9
import { AttributeTypeMap } from "../../datadog-api-client-common/util" ;
9
10
@@ -28,7 +29,7 @@ export class DatasetRequest {
28
29
/**
29
30
* Resource type, always "dataset".
30
31
*/
31
- "type" : string ;
32
+ "type" : DatasetType ;
32
33
33
34
/**
34
35
* A container for additional, undeclared properties.
@@ -53,7 +54,7 @@ export class DatasetRequest {
53
54
} ,
54
55
type : {
55
56
baseName : "type" ,
56
- type : "string " ,
57
+ type : "DatasetType " ,
57
58
required : true ,
58
59
} ,
59
60
additionalProperties : {
Original file line number Diff line number Diff line change 4
4
* Copyright 2020-Present Datadog, Inc.
5
5
*/
6
6
import { DatasetAttributesResponse } from "./DatasetAttributesResponse" ;
7
+ import { DatasetType } from "./DatasetType" ;
7
8
8
9
import { AttributeTypeMap } from "../../datadog-api-client-common/util" ;
9
10
@@ -32,7 +33,7 @@ export class DatasetResponse {
32
33
/**
33
34
* Resource type, always "dataset".
34
35
*/
35
- "type" ?: string ;
36
+ "type" ?: DatasetType ;
36
37
37
38
/**
38
39
* A container for additional, undeclared properties.
@@ -60,7 +61,7 @@ export class DatasetResponse {
60
61
} ,
61
62
type : {
62
63
baseName : "type" ,
63
- type : "string " ,
64
+ type : "DatasetType " ,
64
65
} ,
65
66
additionalProperties : {
66
67
baseName : "additionalProperties" ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
+ * Copyright 2020-Present Datadog, Inc.
5
+ */
6
+
7
+ import { UnparsedObject } from "../../datadog-api-client-common/util" ;
8
+
9
+ /**
10
+ * Resource type, always "dataset".
11
+ */
12
+
13
+ export type DatasetType = typeof DATASET | UnparsedObject ;
14
+ export const DATASET = "dataset" ;
Original file line number Diff line number Diff line change @@ -2465,6 +2465,7 @@ const enumsMap: { [key: string]: any[] } = {
2465
2465
DataTransformType : [ "dataTransform" ] ,
2466
2466
DatadogAPIKeyType : [ "DatadogAPIKey" ] ,
2467
2467
DatadogIntegrationType : [ "Datadog" ] ,
2468
+ DatasetType : [ "dataset" ] ,
2468
2469
DetailedFindingType : [ "detailed_finding" ] ,
2469
2470
DnsMetricKey : [
2470
2471
"dns_total_requests" ,
You can’t perform that action at this time.
0 commit comments