Skip to content

Commit 11bfbd1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7a96be5 of spec repo
1 parent ce11366 commit 11bfbd1

File tree

8 files changed

+168
-160
lines changed

8 files changed

+168
-160
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74529,9 +74529,13 @@ paths:
7452974529
- apiKeyAuth: []
7453074530
appKeyAuth: []
7453174531
- AuthZ: []
74532-
summary: Get the schedule on-call user
74532+
summary: Get scheduled on-call user
7453374533
tags:
7453474534
- On-Call
74535+
x-permission:
74536+
operator: AND
74537+
permissions:
74538+
- on_call_read
7453574539
/api/v2/on-call/teams/{team_id}/on-call:
7453674540
get:
7453774541
description: Get a team's on-call users at a given time
@@ -74574,6 +74578,10 @@ paths:
7457474578
summary: Get team on-call users
7457574579
tags:
7457674580
- On-Call
74581+
x-permission:
74582+
operator: AND
74583+
permissions:
74584+
- on_call_read
7457774585
/api/v2/on-call/teams/{team_id}/routing-rules:
7457874586
get:
7457974587
description: Get a team's On-Call routing rules

examples/v2/on-call/GetScheduleOnCallUser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Get the schedule on-call user returns "OK" response
1+
// Get scheduled on-call user returns "OK" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

src/main/java/com/datadog/api/client/v2/api/OnCallApi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ public GetScheduleOnCallUserOptionalParameters filterAtTs(String filterAtTs) {
13581358
}
13591359

13601360
/**
1361-
* Get the schedule on-call user.
1361+
* Get scheduled on-call user.
13621362
*
13631363
* <p>See {@link #getScheduleOnCallUserWithHttpInfo}.
13641364
*
@@ -1373,7 +1373,7 @@ scheduleId, new GetScheduleOnCallUserOptionalParameters())
13731373
}
13741374

13751375
/**
1376-
* Get the schedule on-call user.
1376+
* Get scheduled on-call user.
13771377
*
13781378
* <p>See {@link #getScheduleOnCallUserWithHttpInfoAsync}.
13791379
*
@@ -1390,7 +1390,7 @@ scheduleId, new GetScheduleOnCallUserOptionalParameters())
13901390
}
13911391

13921392
/**
1393-
* Get the schedule on-call user.
1393+
* Get scheduled on-call user.
13941394
*
13951395
* <p>See {@link #getScheduleOnCallUserWithHttpInfo}.
13961396
*
@@ -1405,7 +1405,7 @@ public Shift getScheduleOnCallUser(
14051405
}
14061406

14071407
/**
1408-
* Get the schedule on-call user.
1408+
* Get scheduled on-call user.
14091409
*
14101410
* <p>See {@link #getScheduleOnCallUserWithHttpInfoAsync}.
14111411
*
@@ -1485,7 +1485,7 @@ public ApiResponse<Shift> getScheduleOnCallUserWithHttpInfo(
14851485
}
14861486

14871487
/**
1488-
* Get the schedule on-call user.
1488+
* Get scheduled on-call user.
14891489
*
14901490
* <p>See {@link #getScheduleOnCallUserWithHttpInfo}.
14911491
*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-12-04T08:50:18.341Z
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
[
2+
{
3+
"httpRequest": {
4+
"body": {
5+
"type": "JSON",
6+
"json": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}"
7+
},
8+
"headers": {},
9+
"method": "POST",
10+
"path": "/api/v2/users",
11+
"keepAlive": false,
12+
"secure": true
13+
},
14+
"httpResponse": {
15+
"body": "{\"data\":{\"type\":\"users\",\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\",\"attributes\":{\"name\":null,\"handle\":\"test-get_scheduled_on_call_user_returns_ok_response-1764838218@datadoghq.com\",\"created_at\":\"2025-12-04T08:50:19.140471+00:00\",\"modified_at\":\"2025-12-04T08:50:19.140471+00:00\",\"email\":\"test-get_scheduled_on_call_user_returns_ok_response-1764838218@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/6a6c3614a2758d626d4fcde0e9727205?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n",
16+
"headers": {
17+
"Content-Type": [
18+
"application/json"
19+
]
20+
},
21+
"statusCode": 201,
22+
"reasonPhrase": "Created"
23+
},
24+
"times": {
25+
"remainingTimes": 1
26+
},
27+
"timeToLive": {
28+
"unlimited": true
29+
},
30+
"id": "94c12122-86d9-d81a-8df3-65a101f4f930"
31+
},
32+
{
33+
"httpRequest": {
34+
"body": {
35+
"type": "JSON",
36+
"json": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-11-24T08:50:18.341Z\",\"end_date\":\"2025-12-14T08:50:18.341Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-11-29T08:50:18.341Z\"}],\"name\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}"
37+
},
38+
"headers": {},
39+
"method": "POST",
40+
"path": "/api/v2/on-call/schedules",
41+
"keepAlive": false,
42+
"secure": true
43+
},
44+
"httpResponse": {
45+
"body": "{\"data\":{\"id\":\"7f4eb086-4141-4f2a-ae4a-c0a06816672b\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"ad5985ec-b9e0-4dc7-aff9-a7bb75fc334f\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}",
46+
"headers": {
47+
"Content-Type": [
48+
"application/vnd.api+json"
49+
]
50+
},
51+
"statusCode": 201,
52+
"reasonPhrase": "Created"
53+
},
54+
"times": {
55+
"remainingTimes": 1
56+
},
57+
"timeToLive": {
58+
"unlimited": true
59+
},
60+
"id": "94e1f56a-c98f-c630-6b9f-3b7477ed2f85"
61+
},
62+
{
63+
"httpRequest": {
64+
"headers": {},
65+
"method": "GET",
66+
"path": "/api/v2/on-call/schedules/7f4eb086-4141-4f2a-ae4a-c0a06816672b/on-call",
67+
"keepAlive": false,
68+
"secure": true
69+
},
70+
"httpResponse": {
71+
"body": "{\"data\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220-2025-12-04T03:50:19-05:00-2025-12-05T03:50:18-05:00\",\"type\":\"shifts\",\"attributes\":{\"end\":\"2025-12-05T03:50:18-05:00\",\"start\":\"2025-12-04T03:50:19.261184-05:00\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\",\"type\":\"users\"}}}}}",
72+
"headers": {
73+
"Content-Type": [
74+
"application/vnd.api+json"
75+
]
76+
},
77+
"statusCode": 200,
78+
"reasonPhrase": "OK"
79+
},
80+
"times": {
81+
"remainingTimes": 1
82+
},
83+
"timeToLive": {
84+
"unlimited": true
85+
},
86+
"id": "3d755a0b-81d9-c638-d625-c047ff5eca6f"
87+
},
88+
{
89+
"httpRequest": {
90+
"headers": {},
91+
"method": "DELETE",
92+
"path": "/api/v2/on-call/schedules/7f4eb086-4141-4f2a-ae4a-c0a06816672b",
93+
"keepAlive": false,
94+
"secure": true
95+
},
96+
"httpResponse": {
97+
"headers": {},
98+
"statusCode": 204,
99+
"reasonPhrase": "No Content"
100+
},
101+
"times": {
102+
"remainingTimes": 1
103+
},
104+
"timeToLive": {
105+
"unlimited": true
106+
},
107+
"id": "75c49194-b87b-768e-31c2-3a8fd7da31c3"
108+
},
109+
{
110+
"httpRequest": {
111+
"headers": {},
112+
"method": "DELETE",
113+
"path": "/api/v2/users/42e2447f-d0ee-11f0-b246-f6a778e5e220",
114+
"keepAlive": false,
115+
"secure": true
116+
},
117+
"httpResponse": {
118+
"headers": {},
119+
"statusCode": 204,
120+
"reasonPhrase": "No Content"
121+
},
122+
"times": {
123+
"remainingTimes": 1
124+
},
125+
"timeToLive": {
126+
"unlimited": true
127+
},
128+
"id": "0f7fe3df-b82d-7fdd-80ed-c05c9e77238c"
129+
}
130+
]

src/test/resources/cassettes/features/v2/Get_the_schedule_on_call_user_returns_OK_response.freeze

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/test/resources/cassettes/features/v2/Get_the_schedule_on_call_user_returns_OK_response.json

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)