Skip to content

Commit 4700ca3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Update team schemas (#1249)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6d6c283 commit 4700ca3

File tree

66 files changed

+828
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+828
-501
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.5",
7-
"regenerated": "2023-07-24 15:54:32.046456",
8-
"spec_repo_commit": "b233d581"
7+
"regenerated": "2023-07-24 17:29:03.682059",
8+
"spec_repo_commit": "e6622470"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-24 15:54:32.067356",
13-
"spec_repo_commit": "b233d581"
12+
"regenerated": "2023-07-24 17:29:03.695920",
13+
"spec_repo_commit": "e6622470"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 83 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11592,6 +11592,8 @@ components:
1159211592
items:
1159311593
$ref: '#/components/schemas/RelationshipToTeamLinkData'
1159411594
type: array
11595+
links:
11596+
$ref: '#/components/schemas/TeamRelationshipsLinks'
1159511597
type: object
1159611598
RelationshipToUser:
1159711599
description: Relationship to user.
@@ -11619,6 +11621,8 @@ components:
1161911621
properties:
1162011622
data:
1162111623
$ref: '#/components/schemas/RelationshipToUserTeamPermissionData'
11624+
links:
11625+
$ref: '#/components/schemas/TeamRelationshipsLinks'
1162211626
type: object
1162311627
RelationshipToUserTeamPermissionData:
1162411628
description: Related user team permission data
@@ -15969,22 +15973,6 @@ components:
1596915973
required:
1597015974
- data
1597115975
type: object
15972-
TeamData:
15973-
description: A team
15974-
properties:
15975-
attributes:
15976-
$ref: '#/components/schemas/TeamAttributes'
15977-
id:
15978-
description: The team's identifier
15979-
example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
15980-
type: string
15981-
type:
15982-
$ref: '#/components/schemas/TeamType'
15983-
required:
15984-
- attributes
15985-
- id
15986-
- type
15987-
type: object
1598815976
TeamIncluded:
1598915977
description: Included resources related to the team
1599015978
oneOf:
@@ -16198,11 +16186,19 @@ components:
1619816186
user_team_permissions:
1619916187
$ref: '#/components/schemas/RelationshipToUserTeamPermission'
1620016188
type: object
16189+
TeamRelationshipsLinks:
16190+
description: Links attributes.
16191+
properties:
16192+
related:
16193+
description: Related link.
16194+
example: /api/v2/team/c75a4a8e-20c7-11ee-a3a5-da7ad0900002/links
16195+
type: string
16196+
type: object
1620116197
TeamResponse:
1620216198
description: Response with a team
1620316199
properties:
1620416200
data:
16205-
$ref: '#/components/schemas/TeamData'
16201+
$ref: '#/components/schemas/Team'
1620616202
type: object
1620716203
TeamType:
1620816204
default: team
@@ -16279,6 +16275,72 @@ components:
1627916275
items:
1628016276
$ref: '#/components/schemas/TeamIncluded'
1628116277
type: array
16278+
links:
16279+
$ref: '#/components/schemas/TeamsResponseLinks'
16280+
meta:
16281+
$ref: '#/components/schemas/TeamsResponseMeta'
16282+
type: object
16283+
TeamsResponseLinks:
16284+
description: Teams response links.
16285+
properties:
16286+
first:
16287+
description: First link.
16288+
type: string
16289+
last:
16290+
description: Last link.
16291+
nullable: true
16292+
type: string
16293+
next:
16294+
description: Next link.
16295+
type: string
16296+
prev:
16297+
description: Previous link.
16298+
nullable: true
16299+
type: string
16300+
self:
16301+
description: Current link.
16302+
type: string
16303+
type: object
16304+
TeamsResponseMeta:
16305+
description: Teams response metadata.
16306+
properties:
16307+
pagination:
16308+
$ref: '#/components/schemas/TeamsResponseMetaPagination'
16309+
type: object
16310+
TeamsResponseMetaPagination:
16311+
description: Teams response metadata.
16312+
properties:
16313+
first_offset:
16314+
description: The first offset.
16315+
format: int64
16316+
type: integer
16317+
last_offset:
16318+
description: The last offset.
16319+
format: int64
16320+
type: integer
16321+
limit:
16322+
description: Pagination limit.
16323+
format: int64
16324+
type: integer
16325+
next_offset:
16326+
description: The next offset.
16327+
format: int64
16328+
type: integer
16329+
offset:
16330+
description: The offset.
16331+
format: int64
16332+
type: integer
16333+
prev_offset:
16334+
description: The previous offset.
16335+
format: int64
16336+
type: integer
16337+
total:
16338+
description: Total results.
16339+
format: int64
16340+
type: integer
16341+
type:
16342+
description: Offset type.
16343+
type: string
1628216344
type: object
1628316345
TimeseriesFormulaQueryRequest:
1628416346
description: A request wrapper around a single timeseries query to be executed.
@@ -16920,6 +16982,10 @@ components:
1692016982
items:
1692116983
$ref: '#/components/schemas/UserTeam'
1692216984
type: array
16985+
links:
16986+
$ref: '#/components/schemas/TeamsResponseLinks'
16987+
meta:
16988+
$ref: '#/components/schemas/TeamsResponseMeta'
1692316989
type: object
1692416990
UserUpdateAttributes:
1692516991
description: Attributes of the edited user.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-05-10T16:25:49.959Z"
1+
"2023-07-12T17:29:26.749Z"

cassettes/v2/Teams_3116892301/Create-a-team-link-returns-API-error-response-response_2927866376/recording.har

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "dbff0b398973b608a32b9794ab1ba1d1",
11+
"_id": "74d49ccec0c11e5ae74a243208eae988",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-7f82f490dc758fbf\",\"name\":\"name-7f82f490dc758fbf\"},\"type\":\"team\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"handle-93860ab913118caf\",\"name\":\"name-93860ab913118caf\"},\"type\":\"team\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/team"
3939
},
4040
"response": {
41-
"bodySize": 551,
41+
"bodySize": 540,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 551,
45-
"text": "{\"data\":{\"type\":\"team\",\"id\":\"5391cf72-ef4f-11ed-9b09-da7ad0900002\",\"attributes\":{\"name\":\"name-7f82f490dc758fbf\",\"handle\":\"handle-7f82f490dc758fbf\",\"summary\":null,\"description\":null,\"color\":11,\"created_at\":\"2023-05-10T16:25:50.187661+00:00\",\"modified_at\":\"2023-05-10T16:25:50.187665+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/5391cf72-ef4f-11ed-9b09-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/5391cf72-ef4f-11ed-9b09-da7ad0900002/permission-settings\"}}}}}\n"
44+
"size": 540,
45+
"text": "{\"data\":{\"type\":\"team\",\"id\":\"a68b555c-20d9-11ee-8739-da7ad0900002\",\"attributes\":{\"name\":\"name-93860ab913118caf\",\"handle\":\"handle-93860ab913118caf\",\"summary\":null,\"description\":null,\"created_at\":\"2023-07-12T17:29:26.918845+00:00\",\"modified_at\":\"2023-07-12T17:29:26.918850+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/permission-settings\"}}}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2023-05-10T16:25:49.968Z",
61-
"time": 267
60+
"startedDateTime": "2023-07-12T17:29:26.757Z",
61+
"time": 209
6262
},
6363
{
64-
"_id": "1503c74187b6396c4bcae177adc0333d",
64+
"_id": "b1391affc74ddcea5f68c408fdee1a8a",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -88,7 +88,7 @@
8888
"text": "{\"data\":{\"attributes\":{\"label\":\"\",\"position\":0,\"url\":\"https://example.com\"},\"type\":\"team_links\"}}"
8989
},
9090
"queryString": [],
91-
"url": "https://api.datadoghq.com/api/v2/team/5391cf72-ef4f-11ed-9b09-da7ad0900002/links"
91+
"url": "https://api.datadoghq.com/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002/links"
9292
},
9393
"response": {
9494
"bodySize": 36,
@@ -110,11 +110,11 @@
110110
"status": 422,
111111
"statusText": "Unprocessable Entity"
112112
},
113-
"startedDateTime": "2023-05-10T16:25:50.262Z",
114-
"time": 196
113+
"startedDateTime": "2023-07-12T17:29:26.978Z",
114+
"time": 133
115115
},
116116
{
117-
"_id": "4fdc4bf4749554269b47590069d458a7",
117+
"_id": "bb69daa424d3590600d315b3b54c234d",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/team/5391cf72-ef4f-11ed-9b09-da7ad0900002"
134+
"url": "https://api.datadoghq.com/api/v2/team/a68b555c-20d9-11ee-8739-da7ad0900002"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -147,8 +147,8 @@
147147
"status": 204,
148148
"statusText": "No Content"
149149
},
150-
"startedDateTime": "2023-05-10T16:25:50.479Z",
151-
"time": 231
150+
"startedDateTime": "2023-07-12T17:29:27.122Z",
151+
"time": 196
152152
}
153153
],
154154
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-05-10T16:25:50.730Z"
1+
"2023-07-12T17:29:27.327Z"

0 commit comments

Comments
 (0)