Skip to content

Commit a60a1ba

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 764de5f0 of spec repo (#2111)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7e3991f commit a60a1ba

14 files changed

+145
-24
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-20 15:01:19.160046",
8-
"spec_repo_commit": "0f5c928e"
7+
"regenerated": "2025-03-24 14:58:36.276381",
8+
"spec_repo_commit": "764de5f0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-20 15:01:19.267162",
13-
"spec_repo_commit": "0f5c928e"
12+
"regenerated": "2025-03-24 14:58:36.293243",
13+
"spec_repo_commit": "764de5f0"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11936,9 +11936,15 @@ components:
1193611936
description: Incident ID.
1193711937
type: string
1193811938
type:
11939-
description: Incident description.
11940-
type: string
11939+
$ref: '#/components/schemas/EntityResponseIncludedIncidentType'
1194111940
type: object
11941+
EntityResponseIncludedIncidentType:
11942+
description: Incident description.
11943+
enum:
11944+
- incident
11945+
type: string
11946+
x-enum-varnames:
11947+
- INCIDENT
1194211948
EntityResponseIncludedOncall:
1194311949
description: Included oncall.
1194411950
properties:
@@ -11948,9 +11954,15 @@ components:
1194811954
description: Oncall ID.
1194911955
type: string
1195011956
type:
11951-
description: Oncall type.
11952-
type: string
11957+
$ref: '#/components/schemas/EntityResponseIncludedOncallType'
1195311958
type: object
11959+
EntityResponseIncludedOncallType:
11960+
description: Oncall type.
11961+
enum:
11962+
- oncall
11963+
type: string
11964+
x-enum-varnames:
11965+
- ONCALL
1195411966
EntityResponseIncludedRawSchema:
1195511967
description: Included raw schema.
1195611968
properties:
@@ -11960,8 +11972,7 @@ components:
1196011972
description: Raw schema ID.
1196111973
type: string
1196211974
type:
11963-
description: Raw schema type.
11964-
type: string
11975+
$ref: '#/components/schemas/EntityResponseIncludedRawSchemaType'
1196511976
type: object
1196611977
EntityResponseIncludedRawSchemaAttributes:
1196711978
description: Included raw schema attributes.
@@ -11970,6 +11981,13 @@ components:
1197011981
description: Schema from user input in base64 encoding.
1197111982
type: string
1197211983
type: object
11984+
EntityResponseIncludedRawSchemaType:
11985+
description: Raw schema type.
11986+
enum:
11987+
- rawSchema
11988+
type: string
11989+
x-enum-varnames:
11990+
- RAW_SCHEMA
1197311991
EntityResponseIncludedRelatedEntity:
1197411992
description: Included related entity.
1197511993
properties:
@@ -11981,8 +11999,7 @@ components:
1198111999
meta:
1198212000
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityMeta'
1198312001
type:
11984-
description: Related entity.
11985-
type: string
12002+
$ref: '#/components/schemas/EntityResponseIncludedRelatedEntityType'
1198612003
type: object
1198712004
EntityResponseIncludedRelatedEntityAttributes:
1198812005
description: Related entity attributes.
@@ -12018,6 +12035,13 @@ components:
1201812035
description: Entity relation source.
1201912036
type: string
1202012037
type: object
12038+
EntityResponseIncludedRelatedEntityType:
12039+
description: Related entity.
12040+
enum:
12041+
- relatedEntity
12042+
type: string
12043+
x-enum-varnames:
12044+
- RELATED_ENTITY
1202112045
EntityResponseIncludedRelatedIncidentAttributes:
1202212046
description: Incident attributes.
1202312047
properties:
@@ -12075,15 +12099,21 @@ components:
1207512099
description: Entity ID.
1207612100
type: string
1207712101
type:
12078-
description: Schema type.
12079-
type: string
12102+
$ref: '#/components/schemas/EntityResponseIncludedSchemaType'
1208012103
type: object
1208112104
EntityResponseIncludedSchemaAttributes:
1208212105
description: Included schema.
1208312106
properties:
1208412107
schema:
1208512108
$ref: '#/components/schemas/EntityV3'
1208612109
type: object
12110+
EntityResponseIncludedSchemaType:
12111+
description: Schema type.
12112+
enum:
12113+
- schema
12114+
type: string
12115+
x-enum-varnames:
12116+
- SCHEMA
1208712117
EntityResponseMeta:
1208812118
description: Entity metadata.
1208912119
properties:

packages/datadog-api-client-v2/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,17 +1349,22 @@ export { EntityData } from "./models/EntityData";
13491349
export { EntityMeta } from "./models/EntityMeta";
13501350
export { EntityRelationships } from "./models/EntityRelationships";
13511351
export { EntityResponseIncludedIncident } from "./models/EntityResponseIncludedIncident";
1352+
export { EntityResponseIncludedIncidentType } from "./models/EntityResponseIncludedIncidentType";
13521353
export { EntityResponseIncludedOncall } from "./models/EntityResponseIncludedOncall";
1354+
export { EntityResponseIncludedOncallType } from "./models/EntityResponseIncludedOncallType";
13531355
export { EntityResponseIncludedRawSchema } from "./models/EntityResponseIncludedRawSchema";
13541356
export { EntityResponseIncludedRawSchemaAttributes } from "./models/EntityResponseIncludedRawSchemaAttributes";
1357+
export { EntityResponseIncludedRawSchemaType } from "./models/EntityResponseIncludedRawSchemaType";
13551358
export { EntityResponseIncludedRelatedEntity } from "./models/EntityResponseIncludedRelatedEntity";
13561359
export { EntityResponseIncludedRelatedEntityAttributes } from "./models/EntityResponseIncludedRelatedEntityAttributes";
13571360
export { EntityResponseIncludedRelatedEntityMeta } from "./models/EntityResponseIncludedRelatedEntityMeta";
1361+
export { EntityResponseIncludedRelatedEntityType } from "./models/EntityResponseIncludedRelatedEntityType";
13581362
export { EntityResponseIncludedRelatedIncidentAttributes } from "./models/EntityResponseIncludedRelatedIncidentAttributes";
13591363
export { EntityResponseIncludedRelatedOncallAttributes } from "./models/EntityResponseIncludedRelatedOncallAttributes";
13601364
export { EntityResponseIncludedRelatedOncallEscalationItem } from "./models/EntityResponseIncludedRelatedOncallEscalationItem";
13611365
export { EntityResponseIncludedSchema } from "./models/EntityResponseIncludedSchema";
13621366
export { EntityResponseIncludedSchemaAttributes } from "./models/EntityResponseIncludedSchemaAttributes";
1367+
export { EntityResponseIncludedSchemaType } from "./models/EntityResponseIncludedSchemaType";
13631368
export { EntityResponseMeta } from "./models/EntityResponseMeta";
13641369
export { EntityToIncidents } from "./models/EntityToIncidents";
13651370
export { EntityToOncalls } from "./models/EntityToOncalls";

packages/datadog-api-client-v2/models/EntityResponseIncludedIncident.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { EntityResponseIncludedIncidentType } from "./EntityResponseIncludedIncidentType";
67
import { EntityResponseIncludedRelatedIncidentAttributes } from "./EntityResponseIncludedRelatedIncidentAttributes";
78

89
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -22,7 +23,7 @@ export class EntityResponseIncludedIncident {
2223
/**
2324
* Incident description.
2425
*/
25-
"type"?: string;
26+
"type"?: EntityResponseIncludedIncidentType;
2627

2728
/**
2829
* A container for additional, undeclared properties.
@@ -50,7 +51,7 @@ export class EntityResponseIncludedIncident {
5051
},
5152
type: {
5253
baseName: "type",
53-
type: "string",
54+
type: "EntityResponseIncludedIncidentType",
5455
},
5556
additionalProperties: {
5657
baseName: "additionalProperties",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
* Incident description.
11+
*/
12+
13+
export type EntityResponseIncludedIncidentType =
14+
| typeof INCIDENT
15+
| UnparsedObject;
16+
export const INCIDENT = "incident";

packages/datadog-api-client-v2/models/EntityResponseIncludedOncall.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { EntityResponseIncludedOncallType } from "./EntityResponseIncludedOncallType";
67
import { EntityResponseIncludedRelatedOncallAttributes } from "./EntityResponseIncludedRelatedOncallAttributes";
78

89
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -22,7 +23,7 @@ export class EntityResponseIncludedOncall {
2223
/**
2324
* Oncall type.
2425
*/
25-
"type"?: string;
26+
"type"?: EntityResponseIncludedOncallType;
2627

2728
/**
2829
* A container for additional, undeclared properties.
@@ -50,7 +51,7 @@ export class EntityResponseIncludedOncall {
5051
},
5152
type: {
5253
baseName: "type",
53-
type: "string",
54+
type: "EntityResponseIncludedOncallType",
5455
},
5556
additionalProperties: {
5657
baseName: "additionalProperties",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
* Oncall type.
11+
*/
12+
13+
export type EntityResponseIncludedOncallType = typeof ONCALL | UnparsedObject;
14+
export const ONCALL = "oncall";

packages/datadog-api-client-v2/models/EntityResponseIncludedRawSchema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { EntityResponseIncludedRawSchemaAttributes } from "./EntityResponseIncludedRawSchemaAttributes";
7+
import { EntityResponseIncludedRawSchemaType } from "./EntityResponseIncludedRawSchemaType";
78

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

@@ -22,7 +23,7 @@ export class EntityResponseIncludedRawSchema {
2223
/**
2324
* Raw schema type.
2425
*/
25-
"type"?: string;
26+
"type"?: EntityResponseIncludedRawSchemaType;
2627

2728
/**
2829
* A container for additional, undeclared properties.
@@ -50,7 +51,7 @@ export class EntityResponseIncludedRawSchema {
5051
},
5152
type: {
5253
baseName: "type",
53-
type: "string",
54+
type: "EntityResponseIncludedRawSchemaType",
5455
},
5556
additionalProperties: {
5657
baseName: "additionalProperties",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
* Raw schema type.
11+
*/
12+
13+
export type EntityResponseIncludedRawSchemaType =
14+
| typeof RAW_SCHEMA
15+
| UnparsedObject;
16+
export const RAW_SCHEMA = "rawSchema";

packages/datadog-api-client-v2/models/EntityResponseIncludedRelatedEntity.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
import { EntityResponseIncludedRelatedEntityAttributes } from "./EntityResponseIncludedRelatedEntityAttributes";
77
import { EntityResponseIncludedRelatedEntityMeta } from "./EntityResponseIncludedRelatedEntityMeta";
8+
import { EntityResponseIncludedRelatedEntityType } from "./EntityResponseIncludedRelatedEntityType";
89

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

@@ -27,7 +28,7 @@ export class EntityResponseIncludedRelatedEntity {
2728
/**
2829
* Related entity.
2930
*/
30-
"type"?: string;
31+
"type"?: EntityResponseIncludedRelatedEntityType;
3132

3233
/**
3334
* A container for additional, undeclared properties.
@@ -59,7 +60,7 @@ export class EntityResponseIncludedRelatedEntity {
5960
},
6061
type: {
6162
baseName: "type",
62-
type: "string",
63+
type: "EntityResponseIncludedRelatedEntityType",
6364
},
6465
additionalProperties: {
6566
baseName: "additionalProperties",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
* Related entity.
11+
*/
12+
13+
export type EntityResponseIncludedRelatedEntityType =
14+
| typeof RELATED_ENTITY
15+
| UnparsedObject;
16+
export const RELATED_ENTITY = "relatedEntity";

packages/datadog-api-client-v2/models/EntityResponseIncludedSchema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { EntityResponseIncludedSchemaAttributes } from "./EntityResponseIncludedSchemaAttributes";
7+
import { EntityResponseIncludedSchemaType } from "./EntityResponseIncludedSchemaType";
78

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

@@ -22,7 +23,7 @@ export class EntityResponseIncludedSchema {
2223
/**
2324
* Schema type.
2425
*/
25-
"type"?: string;
26+
"type"?: EntityResponseIncludedSchemaType;
2627

2728
/**
2829
* A container for additional, undeclared properties.
@@ -50,7 +51,7 @@ export class EntityResponseIncludedSchema {
5051
},
5152
type: {
5253
baseName: "type",
53-
type: "string",
54+
type: "EntityResponseIncludedSchemaType",
5455
},
5556
additionalProperties: {
5657
baseName: "additionalProperties",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
* Schema type.
11+
*/
12+
13+
export type EntityResponseIncludedSchemaType = typeof SCHEMA | UnparsedObject;
14+
export const SCHEMA = "schema";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,11 @@ const enumsMap: { [key: string]: any[] } = {
19591959
DowntimeNotifyEndStateTypes: ["alert", "no data", "warn"],
19601960
DowntimeResourceType: ["downtime"],
19611961
DowntimeStatus: ["active", "canceled", "ended", "scheduled"],
1962+
EntityResponseIncludedIncidentType: ["incident"],
1963+
EntityResponseIncludedOncallType: ["oncall"],
1964+
EntityResponseIncludedRawSchemaType: ["rawSchema"],
1965+
EntityResponseIncludedRelatedEntityType: ["relatedEntity"],
1966+
EntityResponseIncludedSchemaType: ["schema"],
19621967
EntityV3APIKind: ["api"],
19631968
EntityV3APIVersion: ["v3"],
19641969
EntityV3DatastoreKind: ["datastore"],

0 commit comments

Comments
 (0)