Skip to content

Add enum Dataset type to Dataset API spec #2655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "c38287b",
"generated": "2025-08-15 18:55:02.903"
"spec_repo_commit": "7851858",
"generated": "2025-08-18 14:48:45.228"
}
17 changes: 11 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13258,9 +13258,7 @@ components:
attributes:
$ref: '#/components/schemas/DatasetAttributesRequest'
type:
description: Resource type, always "dataset".
example: dataset
type: string
$ref: '#/components/schemas/DatasetType'
required:
- type
- attributes
Expand All @@ -13282,9 +13280,7 @@ components:
example: 123e4567-e89b-12d3-a456-426614174000
type: string
type:
description: Resource type, always "dataset".
example: dataset
type: string
$ref: '#/components/schemas/DatasetType'
type: object
DatasetResponseMulti:
description: Response containing a list of datasets.
Expand All @@ -13301,6 +13297,15 @@ components:
data:
$ref: '#/components/schemas/DatasetResponse'
type: object
DatasetType:
default: dataset
description: Resource type, always set to `dataset`.
enum:
- dataset
example: dataset
type: string
x-enum-varnames:
- DATASET
DatasetUpdateRequest:
description: Edit request for a dataset.
properties:
Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@ export { DatasetRequest } from "./models/DatasetRequest";
export { DatasetResponse } from "./models/DatasetResponse";
export { DatasetResponseMulti } from "./models/DatasetResponseMulti";
export { DatasetResponseSingle } from "./models/DatasetResponseSingle";
export { DatasetType } from "./models/DatasetType";
export { DatasetUpdateRequest } from "./models/DatasetUpdateRequest";
export { DataTransform } from "./models/DataTransform";
export { DataTransformProperties } from "./models/DataTransformProperties";
Expand Down
7 changes: 4 additions & 3 deletions packages/datadog-api-client-v2/models/DatasetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright 2020-Present Datadog, Inc.
*/
import { DatasetAttributesRequest } from "./DatasetAttributesRequest";
import { DatasetType } from "./DatasetType";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

Expand All @@ -26,9 +27,9 @@ export class DatasetRequest {
*/
"attributes": DatasetAttributesRequest;
/**
* Resource type, always "dataset".
* Resource type, always set to `dataset`.
*/
"type": string;
"type": DatasetType;

/**
* A container for additional, undeclared properties.
Expand All @@ -53,7 +54,7 @@ export class DatasetRequest {
},
type: {
baseName: "type",
type: "string",
type: "DatasetType",
required: true,
},
additionalProperties: {
Expand Down
7 changes: 4 additions & 3 deletions packages/datadog-api-client-v2/models/DatasetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright 2020-Present Datadog, Inc.
*/
import { DatasetAttributesResponse } from "./DatasetAttributesResponse";
import { DatasetType } from "./DatasetType";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

Expand All @@ -30,9 +31,9 @@ export class DatasetResponse {
*/
"id"?: string;
/**
* Resource type, always "dataset".
* Resource type, always set to `dataset`.
*/
"type"?: string;
"type"?: DatasetType;

/**
* A container for additional, undeclared properties.
Expand Down Expand Up @@ -60,7 +61,7 @@ export class DatasetResponse {
},
type: {
baseName: "type",
type: "string",
type: "DatasetType",
},
additionalProperties: {
baseName: "additionalProperties",
Expand Down
14 changes: 14 additions & 0 deletions packages/datadog-api-client-v2/models/DatasetType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* Resource type, always set to `dataset`.
*/

export type DatasetType = typeof DATASET | UnparsedObject;
export const DATASET = "dataset";
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,7 @@ const enumsMap: { [key: string]: any[] } = {
DataTransformType: ["dataTransform"],
DatadogAPIKeyType: ["DatadogAPIKey"],
DatadogIntegrationType: ["Datadog"],
DatasetType: ["dataset"],
DetailedFindingType: ["detailed_finding"],
DnsMetricKey: [
"dns_total_requests",
Expand Down