Skip to content

Commit 4cb10f0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7a9a548d of spec repo
1 parent 1eb1232 commit 4cb10f0

12 files changed

+486
-4
lines changed

.apigentools-info

+4-4
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-01-29 14:55:55.254252",
8-
"spec_repo_commit": "14f5d952"
7+
"regenerated": "2025-01-30 22:38:48.625831",
8+
"spec_repo_commit": "7a9a548d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-29 14:55:55.270118",
13-
"spec_repo_commit": "14f5d952"
12+
"regenerated": "2025-01-30 22:38:48.641330",
13+
"spec_repo_commit": "7a9a548d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+93
Original file line numberDiff line numberDiff line change
@@ -10523,6 +10523,99 @@ components:
1052310523
- $ref: '#/components/schemas/EntityV3Datastore'
1052410524
- $ref: '#/components/schemas/EntityV3Queue'
1052510525
- $ref: '#/components/schemas/EntityV3System'
10526+
- $ref: '#/components/schemas/EntityV3API'
10527+
EntityV3API:
10528+
additionalProperties: false
10529+
description: Schema for API entities.
10530+
properties:
10531+
apiVersion:
10532+
$ref: '#/components/schemas/EntityV3APIVersion'
10533+
datadog:
10534+
$ref: '#/components/schemas/EntityV3APIDatadog'
10535+
extensions:
10536+
additionalProperties: {}
10537+
description: Custom extensions. This is the free-formed field to send client-side
10538+
metadata. No Datadog features are affected by this field.
10539+
type: object
10540+
integrations:
10541+
$ref: '#/components/schemas/EntityV3Integrations'
10542+
kind:
10543+
$ref: '#/components/schemas/EntityV3APIKind'
10544+
metadata:
10545+
$ref: '#/components/schemas/EntityV3Metadata'
10546+
spec:
10547+
$ref: '#/components/schemas/EntityV3APISpec'
10548+
required:
10549+
- apiVersion
10550+
- kind
10551+
- metadata
10552+
type: object
10553+
EntityV3APIDatadog:
10554+
additionalProperties: false
10555+
description: Datadog product integrations for the API entity.
10556+
properties:
10557+
codeLocations:
10558+
$ref: '#/components/schemas/EntityV3DatadogCodeLocations'
10559+
events:
10560+
$ref: '#/components/schemas/EntityV3DatadogEvents'
10561+
logs:
10562+
$ref: '#/components/schemas/EntityV3DatadogLogs'
10563+
performanceData:
10564+
$ref: '#/components/schemas/EntityV3DatadogPerformance'
10565+
pipelines:
10566+
$ref: '#/components/schemas/EntityV3DatadogPipelines'
10567+
type: object
10568+
EntityV3APIKind:
10569+
description: The definition of Entity V3 API Kind object.
10570+
enum:
10571+
- api
10572+
example: api
10573+
type: string
10574+
x-enum-varnames:
10575+
- API
10576+
EntityV3APISpec:
10577+
additionalProperties: false
10578+
description: The definition of Entity V3 API Spec object.
10579+
properties:
10580+
implementedBy:
10581+
description: Services which implemented the API.
10582+
items:
10583+
type: string
10584+
type: array
10585+
interface:
10586+
$ref: '#/components/schemas/EntityV3APISpecInterface'
10587+
lifecycle:
10588+
description: The lifecycle state of the component.
10589+
minLength: 1
10590+
type: string
10591+
tier:
10592+
description: The importance of the component.
10593+
minLength: 1
10594+
type: string
10595+
type:
10596+
description: The type of API.
10597+
type: string
10598+
type: object
10599+
EntityV3APISpecInterface:
10600+
additionalProperties: false
10601+
description: The API definition.
10602+
oneOf:
10603+
- $ref: '#/components/schemas/EntityV3APISpecInterfaceFileRef'
10604+
- $ref: '#/components/schemas/EntityV3APISpecInterfaceDefinition'
10605+
EntityV3APISpecInterfaceDefinition:
10606+
additionalProperties: false
10607+
description: The definition of `EntityV3APISpecInterfaceDefinition` object.
10608+
properties:
10609+
definition:
10610+
description: The API definition.
10611+
type: object
10612+
EntityV3APISpecInterfaceFileRef:
10613+
additionalProperties: false
10614+
description: The definition of `EntityV3APISpecInterfaceFileRef` object.
10615+
properties:
10616+
fileRef:
10617+
description: The reference to the API definition file.
10618+
type: string
1052610619
EntityV3APIVersion:
1052710620
description: The schema version of entity type. The field is known as schema-version
1052810621
in the previous version.

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

+7
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,13 @@ export { EntityToRawSchema } from "./models/EntityToRawSchema";
12331233
export { EntityToRelatedEntities } from "./models/EntityToRelatedEntities";
12341234
export { EntityToSchema } from "./models/EntityToSchema";
12351235
export { EntityV3 } from "./models/EntityV3";
1236+
export { EntityV3API } from "./models/EntityV3API";
1237+
export { EntityV3APIDatadog } from "./models/EntityV3APIDatadog";
1238+
export { EntityV3APIKind } from "./models/EntityV3APIKind";
1239+
export { EntityV3APISpec } from "./models/EntityV3APISpec";
1240+
export { EntityV3APISpecInterface } from "./models/EntityV3APISpecInterface";
1241+
export { EntityV3APISpecInterfaceDefinition } from "./models/EntityV3APISpecInterfaceDefinition";
1242+
export { EntityV3APISpecInterfaceFileRef } from "./models/EntityV3APISpecInterfaceFileRef";
12361243
export { EntityV3APIVersion } from "./models/EntityV3APIVersion";
12371244
export { EntityV3DatadogCodeLocationItem } from "./models/EntityV3DatadogCodeLocationItem";
12381245
export { EntityV3DatadogEventItem } from "./models/EntityV3DatadogEventItem";

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

+2
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 { EntityV3API } from "./EntityV3API";
67
import { EntityV3Datastore } from "./EntityV3Datastore";
78
import { EntityV3Queue } from "./EntityV3Queue";
89
import { EntityV3Service } from "./EntityV3Service";
@@ -19,4 +20,5 @@ export type EntityV3 =
1920
| EntityV3Datastore
2021
| EntityV3Queue
2122
| EntityV3System
23+
| EntityV3API
2224
| UnparsedObject;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
import { EntityV3APIDatadog } from "./EntityV3APIDatadog";
7+
import { EntityV3APIKind } from "./EntityV3APIKind";
8+
import { EntityV3APISpec } from "./EntityV3APISpec";
9+
import { EntityV3APIVersion } from "./EntityV3APIVersion";
10+
import { EntityV3Integrations } from "./EntityV3Integrations";
11+
import { EntityV3Metadata } from "./EntityV3Metadata";
12+
13+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
14+
15+
/**
16+
* Schema for API entities.
17+
*/
18+
export class EntityV3API {
19+
/**
20+
* The schema version of entity type. The field is known as schema-version in the previous version.
21+
*/
22+
"apiVersion": EntityV3APIVersion;
23+
/**
24+
* Datadog product integrations for the API entity.
25+
*/
26+
"datadog"?: EntityV3APIDatadog;
27+
/**
28+
* Custom extensions. This is the free-formed field to send client-side metadata. No Datadog features are affected by this field.
29+
*/
30+
"extensions"?: { [key: string]: any };
31+
/**
32+
* A base schema for defining third-party integrations.
33+
*/
34+
"integrations"?: EntityV3Integrations;
35+
/**
36+
* The definition of Entity V3 API Kind object.
37+
*/
38+
"kind": EntityV3APIKind;
39+
/**
40+
* The definition of Entity V3 Metadata object.
41+
*/
42+
"metadata": EntityV3Metadata;
43+
/**
44+
* The definition of Entity V3 API Spec object.
45+
*/
46+
"spec"?: EntityV3APISpec;
47+
48+
/**
49+
* @ignore
50+
*/
51+
"_unparsed"?: boolean;
52+
53+
/**
54+
* @ignore
55+
*/
56+
static readonly attributeTypeMap: AttributeTypeMap = {
57+
apiVersion: {
58+
baseName: "apiVersion",
59+
type: "EntityV3APIVersion",
60+
required: true,
61+
},
62+
datadog: {
63+
baseName: "datadog",
64+
type: "EntityV3APIDatadog",
65+
},
66+
extensions: {
67+
baseName: "extensions",
68+
type: "{ [key: string]: any; }",
69+
},
70+
integrations: {
71+
baseName: "integrations",
72+
type: "EntityV3Integrations",
73+
},
74+
kind: {
75+
baseName: "kind",
76+
type: "EntityV3APIKind",
77+
required: true,
78+
},
79+
metadata: {
80+
baseName: "metadata",
81+
type: "EntityV3Metadata",
82+
required: true,
83+
},
84+
spec: {
85+
baseName: "spec",
86+
type: "EntityV3APISpec",
87+
},
88+
};
89+
90+
/**
91+
* @ignore
92+
*/
93+
static getAttributeTypeMap(): AttributeTypeMap {
94+
return EntityV3API.attributeTypeMap;
95+
}
96+
97+
public constructor() {}
98+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
import { EntityV3DatadogCodeLocationItem } from "./EntityV3DatadogCodeLocationItem";
7+
import { EntityV3DatadogEventItem } from "./EntityV3DatadogEventItem";
8+
import { EntityV3DatadogLogItem } from "./EntityV3DatadogLogItem";
9+
import { EntityV3DatadogPerformance } from "./EntityV3DatadogPerformance";
10+
import { EntityV3DatadogPipelines } from "./EntityV3DatadogPipelines";
11+
12+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
13+
14+
/**
15+
* Datadog product integrations for the API entity.
16+
*/
17+
export class EntityV3APIDatadog {
18+
/**
19+
* Schema for mapping source code locations to an entity.
20+
*/
21+
"codeLocations"?: Array<EntityV3DatadogCodeLocationItem>;
22+
/**
23+
* Events associations.
24+
*/
25+
"events"?: Array<EntityV3DatadogEventItem>;
26+
/**
27+
* Logs association.
28+
*/
29+
"logs"?: Array<EntityV3DatadogLogItem>;
30+
/**
31+
* Performance stats association.
32+
*/
33+
"performanceData"?: EntityV3DatadogPerformance;
34+
/**
35+
* CI Pipelines association.
36+
*/
37+
"pipelines"?: EntityV3DatadogPipelines;
38+
39+
/**
40+
* @ignore
41+
*/
42+
"_unparsed"?: boolean;
43+
44+
/**
45+
* @ignore
46+
*/
47+
static readonly attributeTypeMap: AttributeTypeMap = {
48+
codeLocations: {
49+
baseName: "codeLocations",
50+
type: "Array<EntityV3DatadogCodeLocationItem>",
51+
},
52+
events: {
53+
baseName: "events",
54+
type: "Array<EntityV3DatadogEventItem>",
55+
},
56+
logs: {
57+
baseName: "logs",
58+
type: "Array<EntityV3DatadogLogItem>",
59+
},
60+
performanceData: {
61+
baseName: "performanceData",
62+
type: "EntityV3DatadogPerformance",
63+
},
64+
pipelines: {
65+
baseName: "pipelines",
66+
type: "EntityV3DatadogPipelines",
67+
},
68+
};
69+
70+
/**
71+
* @ignore
72+
*/
73+
static getAttributeTypeMap(): AttributeTypeMap {
74+
return EntityV3APIDatadog.attributeTypeMap;
75+
}
76+
77+
public constructor() {}
78+
}
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+
* The definition of Entity V3 API Kind object.
11+
*/
12+
13+
export type EntityV3APIKind = typeof API | UnparsedObject;
14+
export const API = "api";

0 commit comments

Comments
 (0)