Skip to content

Commit 4bbcf6a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 90ae1ed9 of spec repo
1 parent a7726fc commit 4bbcf6a

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-21 12:50:38.923679",
8-
"spec_repo_commit": "1ec2d96a"
7+
"regenerated": "2024-02-21 20:20:08.840041",
8+
"spec_repo_commit": "90ae1ed9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-02-21 12:50:38.947728",
13-
"spec_repo_commit": "1ec2d96a"
12+
"regenerated": "2024-02-21 20:20:08.854932",
13+
"spec_repo_commit": "90ae1ed9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21288,6 +21288,10 @@ components:
2128821288
required:
2128921289
- type
2129021290
type: object
21291+
UserTeamIncluded:
21292+
description: Included resources related to the team membership
21293+
oneOf:
21294+
- $ref: '#/components/schemas/User'
2129121295
UserTeamPermission:
2129221296
description: A user's permissions for a given team
2129321297
properties:
@@ -21342,6 +21346,11 @@ components:
2134221346
properties:
2134321347
data:
2134421348
$ref: '#/components/schemas/UserTeam'
21349+
included:
21350+
description: Resources related to the team memberships
21351+
items:
21352+
$ref: '#/components/schemas/UserTeamIncluded'
21353+
type: array
2134521354
type: object
2134621355
UserTeamRole:
2134721356
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
@@ -1838,6 +1838,7 @@ export { UsersType } from "./models/UsersType";
18381838
export { UserTeam } from "./models/UserTeam";
18391839
export { UserTeamAttributes } from "./models/UserTeamAttributes";
18401840
export { UserTeamCreate } from "./models/UserTeamCreate";
1841+
export { UserTeamIncluded } from "./models/UserTeamIncluded";
18411842
export { UserTeamPermission } from "./models/UserTeamPermission";
18421843
export { UserTeamPermissionAttributes } from "./models/UserTeamPermissionAttributes";
18431844
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)