Skip to content

Commit 04a10d4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b7f92f57 of spec repo
1 parent b72526c commit 04a10d4

File tree

6 files changed

+38
-4
lines changed

6 files changed

+38
-4
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": "2024-02-12 17:39:16.275525",
8-
"spec_repo_commit": "3cda457d"
7+
"regenerated": "2024-02-13 18:10:15.156123",
8+
"spec_repo_commit": "b7f92f57"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-02-12 17:39:16.290807",
13-
"spec_repo_commit": "3cda457d"
12+
"regenerated": "2024-02-13 18:10:15.173668",
13+
"spec_repo_commit": "b7f92f57"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21265,6 +21265,10 @@ components:
2126521265
required:
2126621266
- type
2126721267
type: object
21268+
UserTeamIncluded:
21269+
description: Included resources related to the team membership
21270+
oneOf:
21271+
- $ref: '#/components/schemas/User'
2126821272
UserTeamPermission:
2126921273
description: A user's permissions for a given team
2127021274
properties:
@@ -21319,6 +21323,11 @@ components:
2131921323
properties:
2132021324
data:
2132121325
$ref: '#/components/schemas/UserTeam'
21326+
included:
21327+
description: Resources related to the team memberships
21328+
items:
21329+
$ref: '#/components/schemas/UserTeamIncluded'
21330+
type: array
2132221331
type: object
2132321332
UserTeamRole:
2132421333
description: The user's role within the team

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,7 @@ export { UsersType } from "./models/UsersType";
18421842
export { UserTeam } from "./models/UserTeam";
18431843
export { UserTeamAttributes } from "./models/UserTeamAttributes";
18441844
export { UserTeamCreate } from "./models/UserTeamCreate";
1845+
export { UserTeamIncluded } from "./models/UserTeamIncluded";
18451846
export { UserTeamPermission } from "./models/UserTeamPermission";
18461847
export { UserTeamPermissionAttributes } from "./models/UserTeamPermissionAttributes";
18471848
export { UserTeamPermissionType } from "./models/UserTeamPermissionType";

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,6 +2954,7 @@ const oneOfMap: { [index: string]: string[] } = {
29542954
TeamIncluded: ["User", "TeamLink", "UserTeamPermission"],
29552955
TimeseriesQuery: ["MetricsTimeseriesQuery", "EventsTimeseriesQuery"],
29562956
UserResponseIncludedItem: ["Organization", "Permission", "Role"],
2957+
UserTeamIncluded: ["User"],
29572958
};
29582959

29592960
export class ObjectSerializer {
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+
import { User } from "./User";
7+
8+
import { UnparsedObject } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Included resources related to the team membership
12+
*/
13+
14+
export type UserTeamIncluded = User | UnparsedObject;

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

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

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

@@ -15,6 +16,10 @@ export class UserTeamResponse {
1516
* A user's relationship with a team
1617
*/
1718
"data"?: UserTeam;
19+
/**
20+
* Resources related to the team memberships
21+
*/
22+
"included"?: Array<UserTeamIncluded>;
1823

1924
/**
2025
* @ignore
@@ -29,6 +34,10 @@ export class UserTeamResponse {
2934
baseName: "data",
3035
type: "UserTeam",
3136
},
37+
included: {
38+
baseName: "included",
39+
type: "Array<UserTeamIncluded>",
40+
},
3241
};
3342

3443
/**

0 commit comments

Comments
 (0)