Skip to content

Commit 65c19f1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update summary for Get schedule on-call user endpoint (#2564)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b6d5889 commit 65c19f1

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
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": "2025-05-14 09:52:26.086305",
8-
"spec_repo_commit": "996fd99d"
7+
"regenerated": "2025-05-14 14:48:49.728472",
8+
"spec_repo_commit": "90c6252d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 09:52:26.102327",
13-
"spec_repo_commit": "996fd99d"
12+
"regenerated": "2025-05-14 14:48:49.744180",
13+
"spec_repo_commit": "90c6252d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51849,7 +51849,7 @@ paths:
5184951849
- apiKeyAuth: []
5185051850
appKeyAuth: []
5185151851
- AuthZ: []
51852-
summary: Get the schedule of an on-call user
51852+
summary: Get the schedule on-call user
5185351853
tags:
5185451854
- On-Call
5185551855
/api/v2/on-call/teams/{team_id}/routing-rules:

examples/v2/on-call/GetScheduleOnCallUser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get the schedule of an on-call user returns "OK" response
2+
Get the schedule on-call user returns "OK" response
33
"""
44

55
from os import environ

src/datadog_api_client/v2/api/on_call_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def get_schedule_on_call_user(
498498
include: Union[str, UnsetType] = unset,
499499
filter_at_ts: Union[str, UnsetType] = unset,
500500
) -> Shift:
501-
"""Get the schedule of an on-call user.
501+
"""Get the schedule on-call user.
502502
503503
Retrieves the user who is on-call for the specified schedule at a given time.
504504

tests/v2/cassettes/test_scenarios/test_get_the_schedule_of_an_oncall_user_returns_ok_response.frozen

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-05-13T23:33:52.641Z
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"layers":[{"effective_date":"2025-05-03T00:41:58.620Z","end_date":"2025-05-23T00:41:58.620Z","interval":{"days":1},"members":[{"user":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596"}}],"name":"Layer
4-
1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-05-08T00:41:58.620Z"}],"name":"Test-Get_the_schedule_of_an_on_call_user_returns_OK_response-1747096918","tags":["tag1","tag2"],"time_zone":"America/New_York"},"relationships":{"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}},"type":"schedules"}}'
3+
body: '{"data":{"attributes":{"layers":[{"effective_date":"2025-05-03T23:33:52.641Z","end_date":"2025-05-23T23:33:52.641Z","interval":{"days":1},"members":[{"user":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596"}}],"name":"Layer
4+
1","restrictions":[{"end_day":"friday","end_time":"17:00:00","start_day":"monday","start_time":"09:00:00"}],"rotation_start":"2025-05-08T23:33:52.641Z"}],"name":"Test-Get_the_schedule_on_call_user_returns_OK_response-1747179232","tags":["tag1","tag2"],"time_zone":"America/New_York"},"relationships":{"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}},"type":"schedules"}}'
55
headers:
66
accept:
77
- application/json
@@ -11,7 +11,7 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/on-call/schedules
1212
response:
1313
body:
14-
string: '{"data":{"id":"a69018b0-28a9-4ec1-ad13-dd74bb82ad3c","type":"schedules","attributes":{"name":"Test-Get_the_schedule_of_an_on_call_user_returns_OK_response-1747096918","tags":["tag1","tag2"],"time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"133a579b-0b88-4732-91bd-7eb4a75271ab","type":"layers"}]},"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}}}}'
14+
string: '{"data":{"id":"37ca26fb-0143-4b2a-802c-8c01cd2179ab","type":"schedules","attributes":{"name":"Test-Get_the_schedule_on_call_user_returns_OK_response-1747179232","tags":["tag1","tag2"],"time_zone":"America/New_York"},"relationships":{"layers":{"data":[{"id":"bf12302a-842c-4d31-bfe8-198ac926c41c","type":"layers"}]},"teams":{"data":[{"id":"65aea9d0-941c-4607-bf8a-14fc0dac2820","type":"teams"}]}}}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -24,10 +24,10 @@ interactions:
2424
accept:
2525
- application/json
2626
method: GET
27-
uri: https://api.datadoghq.com/api/v2/on-call/schedules/a69018b0-28a9-4ec1-ad13-dd74bb82ad3c/on-call
27+
uri: https://api.datadoghq.com/api/v2/on-call/schedules/37ca26fb-0143-4b2a-802c-8c01cd2179ab/on-call
2828
response:
2929
body:
30-
string: '{"data":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596-2025-05-12T20:41:59-04:00-2025-05-13T20:41:58-04:00","type":"shifts","attributes":{"end":"2025-05-13T20:41:58-04:00","start":"2025-05-12T20:41:59.394997-04:00"},"relationships":{"user":{"data":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596","type":"users"}}}}}'
30+
string: '{"data":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596-2025-05-13T19:33:53-04:00-2025-05-14T19:33:52-04:00","type":"shifts","attributes":{"end":"2025-05-14T19:33:52-04:00","start":"2025-05-13T19:33:53.520152-04:00"},"relationships":{"user":{"data":{"id":"890f29d4-0b7a-11f0-aeb2-760fcae4f596","type":"users"}}}}}'
3131
headers:
3232
content-type:
3333
- application/vnd.api+json
@@ -40,7 +40,7 @@ interactions:
4040
accept:
4141
- '*/*'
4242
method: DELETE
43-
uri: https://api.datadoghq.com/api/v2/on-call/schedules/a69018b0-28a9-4ec1-ad13-dd74bb82ad3c
43+
uri: https://api.datadoghq.com/api/v2/on-call/schedules/37ca26fb-0143-4b2a-802c-8c01cd2179ab
4444
response:
4545
body:
4646
string: ''

tests/v2/features/on-call.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,21 @@ Feature: On-Call
123123
Then the response status is 200 OK
124124

125125
@generated @skip @team:DataDog/bugle
126-
Scenario: Get the schedule of an on-call user returns "Bad Request" response
126+
Scenario: Get the schedule on-call user returns "Bad Request" response
127127
Given new "GetScheduleOnCallUser" request
128128
And request contains "schedule_id" parameter from "REPLACE.ME"
129129
When the request is sent
130130
Then the response status is 400 Bad Request
131131

132132
@generated @skip @team:DataDog/bugle
133-
Scenario: Get the schedule of an on-call user returns "Not Found" response
133+
Scenario: Get the schedule on-call user returns "Not Found" response
134134
Given new "GetScheduleOnCallUser" request
135135
And request contains "schedule_id" parameter from "REPLACE.ME"
136136
When the request is sent
137137
Then the response status is 404 Not Found
138138

139139
@team:DataDog/bugle
140-
Scenario: Get the schedule of an on-call user returns "OK" response
140+
Scenario: Get the schedule on-call user returns "OK" response
141141
Given new "GetScheduleOnCallUser" request
142142
And there is a valid "schedule" in the system
143143
And request contains "schedule_id" parameter from "schedule.data.id"

0 commit comments

Comments
 (0)