Skip to content

Commit 53e576b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 12acfbe9 of spec repo
1 parent c4f8718 commit 53e576b

File tree

5 files changed

+117
-5
lines changed

5 files changed

+117
-5
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.5",
7-
"regenerated": "2023-08-03 18:00:18.464046",
8-
"spec_repo_commit": "b1453658"
7+
"regenerated": "2023-08-07 13:02:16.615139",
8+
"spec_repo_commit": "12acfbe9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-03 18:00:18.481981",
13-
"spec_repo_commit": "b1453658"
12+
"regenerated": "2023-08-07 13:02:16.635031",
13+
"spec_repo_commit": "12acfbe9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -15997,6 +15997,17 @@ components:
1599715997
TeamAttributes:
1599815998
description: Team attributes
1599915999
properties:
16000+
avatar:
16001+
description: Unicode representation of the avatar for the team, limited
16002+
to a single grapheme
16003+
example: "\U0001F951"
16004+
nullable: true
16005+
type: string
16006+
banner:
16007+
description: Banner selection for the team
16008+
format: int64
16009+
nullable: true
16010+
type: integer
1600016011
created_at:
1600116012
description: Creation date of the team
1600216013
format: date-time
@@ -16010,6 +16021,12 @@ components:
1601016021
example: example-team
1601116022
maxLength: 195
1601216023
type: string
16024+
hidden_modules:
16025+
description: Collection of hidden modules for the team
16026+
items:
16027+
description: String identifier of the module
16028+
type: string
16029+
type: array
1601316030
link_count:
1601416031
description: The number of links belonging to the team
1601516032
format: int32
@@ -16036,6 +16053,12 @@ components:
1603616053
maximum: 2147483647
1603716054
readOnly: true
1603816055
type: integer
16056+
visible_modules:
16057+
description: Collection of visible modules for the team
16058+
items:
16059+
description: String identifier of the module
16060+
type: string
16061+
type: array
1603916062
required:
1604016063
- handle
1604116064
- name
@@ -16339,6 +16362,17 @@ components:
1633916362
TeamUpdateAttributes:
1634016363
description: Team update attributes
1634116364
properties:
16365+
avatar:
16366+
description: Unicode representation of the avatar for the team, limited
16367+
to a single grapheme
16368+
example: "\U0001F951"
16369+
nullable: true
16370+
type: string
16371+
banner:
16372+
description: Banner selection for the team
16373+
format: int64
16374+
nullable: true
16375+
type: integer
1634216376
color:
1634316377
description: An identifier for the color representing the team
1634416378
format: int32
@@ -16353,11 +16387,23 @@ components:
1635316387
example: example-team
1635416388
maxLength: 195
1635516389
type: string
16390+
hidden_modules:
16391+
description: Collection of hidden modules for the team
16392+
items:
16393+
description: String identifier of the module
16394+
type: string
16395+
type: array
1635616396
name:
1635716397
description: The name of the team
1635816398
example: Example Team
1635916399
maxLength: 200
1636016400
type: string
16401+
visible_modules:
16402+
description: Collection of visible modules for the team
16403+
items:
16404+
description: String identifier of the module
16405+
type: string
16406+
type: array
1636116407
required:
1636216408
- handle
1636316409
- name

features/v2/teams.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Feature: Teams
223223
Scenario: Update a team returns "API error response." response
224224
Given new "UpdateTeam" request
225225
And request contains "team_id" parameter from "REPLACE.ME"
226-
And body with value {"data": {"attributes": {"handle": "example-team", "name": "Example Team"}, "relationships": {"team_links": {"data": [{"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001", "type": "team_links"}], "links": {"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"}}}, "type": "team"}}
226+
And body with value {"data": {"attributes": {"avatar": "\ud83e\udd51", "banner": null, "handle": "example-team", "hidden_modules": [], "name": "Example Team", "visible_modules": []}, "relationships": {"team_links": {"data": [{"id": "f9bb8444-af7f-11ec-ac2c-da7ad0900001", "type": "team_links"}], "links": {"related": "/api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links"}}}, "type": "team"}}
227227
When the request is sent
228228
Then the response status is 409 API error response.
229229

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

+33
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Team attributes
1111
*/
1212
export class TeamAttributes {
13+
/**
14+
* Unicode representation of the avatar for the team, limited to a single grapheme
15+
*/
16+
"avatar"?: string;
17+
/**
18+
* Banner selection for the team
19+
*/
20+
"banner"?: number;
1321
/**
1422
* Creation date of the team
1523
*/
@@ -22,6 +30,10 @@ export class TeamAttributes {
2230
* The team's identifier
2331
*/
2432
"handle": string;
33+
/**
34+
* Collection of hidden modules for the team
35+
*/
36+
"hiddenModules"?: Array<string>;
2537
/**
2638
* The number of links belonging to the team
2739
*/
@@ -42,6 +54,10 @@ export class TeamAttributes {
4254
* The number of users belonging to the team
4355
*/
4456
"userCount"?: number;
57+
/**
58+
* Collection of visible modules for the team
59+
*/
60+
"visibleModules"?: Array<string>;
4561

4662
/**
4763
* @ignore
@@ -52,6 +68,15 @@ export class TeamAttributes {
5268
* @ignore
5369
*/
5470
static readonly attributeTypeMap: AttributeTypeMap = {
71+
avatar: {
72+
baseName: "avatar",
73+
type: "string",
74+
},
75+
banner: {
76+
baseName: "banner",
77+
type: "number",
78+
format: "int64",
79+
},
5580
createdAt: {
5681
baseName: "created_at",
5782
type: "Date",
@@ -66,6 +91,10 @@ export class TeamAttributes {
6691
type: "string",
6792
required: true,
6893
},
94+
hiddenModules: {
95+
baseName: "hidden_modules",
96+
type: "Array<string>",
97+
},
6998
linkCount: {
7099
baseName: "link_count",
71100
type: "number",
@@ -90,6 +119,10 @@ export class TeamAttributes {
90119
type: "number",
91120
format: "int32",
92121
},
122+
visibleModules: {
123+
baseName: "visible_modules",
124+
type: "Array<string>",
125+
},
93126
};
94127

95128
/**

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

+33
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Team update attributes
1111
*/
1212
export class TeamUpdateAttributes {
13+
/**
14+
* Unicode representation of the avatar for the team, limited to a single grapheme
15+
*/
16+
"avatar"?: string;
17+
/**
18+
* Banner selection for the team
19+
*/
20+
"banner"?: number;
1321
/**
1422
* An identifier for the color representing the team
1523
*/
@@ -22,10 +30,18 @@ export class TeamUpdateAttributes {
2230
* The team's identifier
2331
*/
2432
"handle": string;
33+
/**
34+
* Collection of hidden modules for the team
35+
*/
36+
"hiddenModules"?: Array<string>;
2537
/**
2638
* The name of the team
2739
*/
2840
"name": string;
41+
/**
42+
* Collection of visible modules for the team
43+
*/
44+
"visibleModules"?: Array<string>;
2945

3046
/**
3147
* @ignore
@@ -36,6 +52,15 @@ export class TeamUpdateAttributes {
3652
* @ignore
3753
*/
3854
static readonly attributeTypeMap: AttributeTypeMap = {
55+
avatar: {
56+
baseName: "avatar",
57+
type: "string",
58+
},
59+
banner: {
60+
baseName: "banner",
61+
type: "number",
62+
format: "int64",
63+
},
3964
color: {
4065
baseName: "color",
4166
type: "number",
@@ -50,11 +75,19 @@ export class TeamUpdateAttributes {
5075
type: "string",
5176
required: true,
5277
},
78+
hiddenModules: {
79+
baseName: "hidden_modules",
80+
type: "Array<string>",
81+
},
5382
name: {
5483
baseName: "name",
5584
type: "string",
5685
required: true,
5786
},
87+
visibleModules: {
88+
baseName: "visible_modules",
89+
type: "Array<string>",
90+
},
5891
};
5992

6093
/**

0 commit comments

Comments
 (0)