Skip to content

Commit ba3892d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0c1f81cc of spec repo
1 parent 330aef7 commit ba3892d

File tree

7 files changed

+199
-8
lines changed

7 files changed

+199
-8
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": "2024-10-02 16:22:29.866275",
8-
"spec_repo_commit": "3f12bebc"
7+
"regenerated": "2024-10-02 20:53:15.515783",
8+
"spec_repo_commit": "0c1f81cc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-02 16:22:29.880506",
13-
"spec_repo_commit": "3f12bebc"
12+
"regenerated": "2024-10-02 20:53:15.530903",
13+
"spec_repo_commit": "0c1f81cc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+32-1
Original file line numberDiff line numberDiff line change
@@ -10930,7 +10930,7 @@ components:
1093010930
IncidentResponseIncludedItem:
1093110931
description: An object related to an incident that is included in the response.
1093210932
oneOf:
10933-
- $ref: '#/components/schemas/User'
10933+
- $ref: '#/components/schemas/IncidentUserData'
1093410934
- $ref: '#/components/schemas/IncidentAttachmentData'
1093510935
IncidentResponseMeta:
1093610936
description: The metadata object containing pagination metadata.
@@ -11869,6 +11869,37 @@ components:
1186911869
required:
1187011870
- data
1187111871
type: object
11872+
IncidentUserAttributes:
11873+
description: Attributes of user object returned by the API.
11874+
properties:
11875+
email:
11876+
description: Email of the user.
11877+
type: string
11878+
handle:
11879+
description: Handle of the user.
11880+
type: string
11881+
icon:
11882+
description: URL of the user's icon.
11883+
type: string
11884+
name:
11885+
description: Name of the user.
11886+
nullable: true
11887+
type: string
11888+
uuid:
11889+
description: UUID of the user.
11890+
type: string
11891+
type: object
11892+
IncidentUserData:
11893+
description: User object returned by the API.
11894+
properties:
11895+
attributes:
11896+
$ref: '#/components/schemas/IncidentUserAttributes'
11897+
id:
11898+
description: ID of the user.
11899+
type: string
11900+
type:
11901+
$ref: '#/components/schemas/UsersType'
11902+
type: object
1187211903
IncidentUserDefinedFieldType:
1187311904
description: The incident user defined fields type.
1187411905
enum:

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

+2
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,8 @@ export { IncidentUpdateAttributes } from "./models/IncidentUpdateAttributes";
12351235
export { IncidentUpdateData } from "./models/IncidentUpdateData";
12361236
export { IncidentUpdateRelationships } from "./models/IncidentUpdateRelationships";
12371237
export { IncidentUpdateRequest } from "./models/IncidentUpdateRequest";
1238+
export { IncidentUserAttributes } from "./models/IncidentUserAttributes";
1239+
export { IncidentUserData } from "./models/IncidentUserData";
12381240
export { IncidentUserDefinedFieldType } from "./models/IncidentUserDefinedFieldType";
12391241
export { IncludeType } from "./models/IncludeType";
12401242
export { IntakePayloadAccepted } from "./models/IntakePayloadAccepted";

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { IncidentAttachmentData } from "./IncidentAttachmentData";
7-
import { User } from "./User";
7+
import { IncidentUserData } from "./IncidentUserData";
88

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

@@ -13,6 +13,6 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1313
*/
1414

1515
export type IncidentResponseIncludedItem =
16-
| User
16+
| IncidentUserData
1717
| IncidentAttachmentData
1818
| UnparsedObject;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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 { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Attributes of user object returned by the API.
11+
*/
12+
export class IncidentUserAttributes {
13+
/**
14+
* Email of the user.
15+
*/
16+
"email"?: string;
17+
/**
18+
* Handle of the user.
19+
*/
20+
"handle"?: string;
21+
/**
22+
* URL of the user's icon.
23+
*/
24+
"icon"?: string;
25+
/**
26+
* Name of the user.
27+
*/
28+
"name"?: string;
29+
/**
30+
* UUID of the user.
31+
*/
32+
"uuid"?: string;
33+
34+
/**
35+
* A container for additional, undeclared properties.
36+
* This is a holder for any undeclared properties as specified with
37+
* the 'additionalProperties' keyword in the OAS document.
38+
*/
39+
"additionalProperties"?: { [key: string]: any };
40+
41+
/**
42+
* @ignore
43+
*/
44+
"_unparsed"?: boolean;
45+
46+
/**
47+
* @ignore
48+
*/
49+
static readonly attributeTypeMap: AttributeTypeMap = {
50+
email: {
51+
baseName: "email",
52+
type: "string",
53+
},
54+
handle: {
55+
baseName: "handle",
56+
type: "string",
57+
},
58+
icon: {
59+
baseName: "icon",
60+
type: "string",
61+
},
62+
name: {
63+
baseName: "name",
64+
type: "string",
65+
},
66+
uuid: {
67+
baseName: "uuid",
68+
type: "string",
69+
},
70+
additionalProperties: {
71+
baseName: "additionalProperties",
72+
type: "any",
73+
},
74+
};
75+
76+
/**
77+
* @ignore
78+
*/
79+
static getAttributeTypeMap(): AttributeTypeMap {
80+
return IncidentUserAttributes.attributeTypeMap;
81+
}
82+
83+
public constructor() {}
84+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 { IncidentUserAttributes } from "./IncidentUserAttributes";
7+
import { UsersType } from "./UsersType";
8+
9+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
10+
11+
/**
12+
* User object returned by the API.
13+
*/
14+
export class IncidentUserData {
15+
/**
16+
* Attributes of user object returned by the API.
17+
*/
18+
"attributes"?: IncidentUserAttributes;
19+
/**
20+
* ID of the user.
21+
*/
22+
"id"?: string;
23+
/**
24+
* Users resource type.
25+
*/
26+
"type"?: UsersType;
27+
28+
/**
29+
* A container for additional, undeclared properties.
30+
* This is a holder for any undeclared properties as specified with
31+
* the 'additionalProperties' keyword in the OAS document.
32+
*/
33+
"additionalProperties"?: { [key: string]: any };
34+
35+
/**
36+
* @ignore
37+
*/
38+
"_unparsed"?: boolean;
39+
40+
/**
41+
* @ignore
42+
*/
43+
static readonly attributeTypeMap: AttributeTypeMap = {
44+
attributes: {
45+
baseName: "attributes",
46+
type: "IncidentUserAttributes",
47+
},
48+
id: {
49+
baseName: "id",
50+
type: "string",
51+
},
52+
type: {
53+
baseName: "type",
54+
type: "UsersType",
55+
},
56+
additionalProperties: {
57+
baseName: "additionalProperties",
58+
type: "any",
59+
},
60+
};
61+
62+
/**
63+
* @ignore
64+
*/
65+
static getAttributeTypeMap(): AttributeTypeMap {
66+
return IncidentUserData.attributeTypeMap;
67+
}
68+
69+
public constructor() {}
70+
}

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ import { IncidentUpdateAttributes } from "./IncidentUpdateAttributes";
536536
import { IncidentUpdateData } from "./IncidentUpdateData";
537537
import { IncidentUpdateRelationships } from "./IncidentUpdateRelationships";
538538
import { IncidentUpdateRequest } from "./IncidentUpdateRequest";
539+
import { IncidentUserAttributes } from "./IncidentUserAttributes";
540+
import { IncidentUserData } from "./IncidentUserData";
539541
import { IncidentsResponse } from "./IncidentsResponse";
540542
import { IntakePayloadAccepted } from "./IntakePayloadAccepted";
541543
import { InterfaceAttributes } from "./InterfaceAttributes";
@@ -2489,6 +2491,8 @@ const typeMap: { [index: string]: any } = {
24892491
IncidentUpdateData: IncidentUpdateData,
24902492
IncidentUpdateRelationships: IncidentUpdateRelationships,
24912493
IncidentUpdateRequest: IncidentUpdateRequest,
2494+
IncidentUserAttributes: IncidentUserAttributes,
2495+
IncidentUserData: IncidentUserData,
24922496
IncidentsResponse: IncidentsResponse,
24932497
IntakePayloadAccepted: IntakePayloadAccepted,
24942498
InterfaceAttributes: InterfaceAttributes,
@@ -3368,7 +3372,7 @@ const oneOfMap: { [index: string]: string[] } = {
33683372
"JiraIntegrationMetadata",
33693373
],
33703374
IncidentIntegrationMetadataResponseIncludedItem: ["User"],
3371-
IncidentResponseIncludedItem: ["User", "IncidentAttachmentData"],
3375+
IncidentResponseIncludedItem: ["IncidentUserData", "IncidentAttachmentData"],
33723376
IncidentServiceIncludedItems: ["User"],
33733377
IncidentTeamIncludedItems: ["User"],
33743378
IncidentTimelineCellCreateAttributes: [

0 commit comments

Comments
 (0)