Skip to content

Commit d9a21df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[ACCESS-2569] Update API specs with new cases_* scopes (#2001)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5641197 commit d9a21df

File tree

3 files changed

+82
-17
lines changed

3 files changed

+82
-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": "2024-07-02 14:03:47.915919",
8-
"spec_repo_commit": "dd2bff15"
7+
"regenerated": "2024-07-02 14:51:00.390386",
8+
"spec_repo_commit": "1e8d5fca"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-02 14:03:47.934068",
13-
"spec_repo_commit": "dd2bff15"
12+
"regenerated": "2024-07-02 14:51:00.407176",
13+
"spec_repo_commit": "1e8d5fca"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24571,6 +24571,11 @@ paths:
2457124571
$ref: '#/components/responses/NotFoundResponse'
2457224572
'429':
2457324573
$ref: '#/components/responses/TooManyRequestsResponse'
24574+
security:
24575+
- apiKeyAuth: []
24576+
appKeyAuth: []
24577+
- AuthZ:
24578+
- cases_read
2457424579
summary: Search cases
2457524580
tags:
2457624581
- Case Management
@@ -24605,6 +24610,11 @@ paths:
2460524610
$ref: '#/components/responses/NotFoundResponse'
2460624611
'429':
2460724612
$ref: '#/components/responses/TooManyRequestsResponse'
24613+
security:
24614+
- apiKeyAuth: []
24615+
appKeyAuth: []
24616+
- AuthZ:
24617+
- cases_write
2460824618
summary: Create a case
2460924619
tags:
2461024620
- Case Management
@@ -24629,6 +24639,11 @@ paths:
2462924639
$ref: '#/components/responses/NotFoundResponse'
2463024640
'429':
2463124641
$ref: '#/components/responses/TooManyRequestsResponse'
24642+
security:
24643+
- apiKeyAuth: []
24644+
appKeyAuth: []
24645+
- AuthZ:
24646+
- cases_read
2463224647
summary: Get all projects
2463324648
tags:
2463424649
- Case Management
@@ -24659,6 +24674,11 @@ paths:
2465924674
$ref: '#/components/responses/NotFoundResponse'
2466024675
'429':
2466124676
$ref: '#/components/responses/TooManyRequestsResponse'
24677+
security:
24678+
- apiKeyAuth: []
24679+
appKeyAuth: []
24680+
- AuthZ:
24681+
- cases_write
2466224682
summary: Create a project
2466324683
tags:
2466424684
- Case Management
@@ -24681,6 +24701,11 @@ paths:
2468124701
description: API error response
2468224702
'429':
2468324703
$ref: '#/components/responses/TooManyRequestsResponse'
24704+
security:
24705+
- apiKeyAuth: []
24706+
appKeyAuth: []
24707+
- AuthZ:
24708+
- cases_write
2468424709
summary: Remove a project
2468524710
tags:
2468624711
- Case Management
@@ -24706,6 +24731,11 @@ paths:
2470624731
$ref: '#/components/responses/NotFoundResponse'
2470724732
'429':
2470824733
$ref: '#/components/responses/TooManyRequestsResponse'
24734+
security:
24735+
- apiKeyAuth: []
24736+
appKeyAuth: []
24737+
- AuthZ:
24738+
- cases_read
2470924739
summary: Get the details of a project
2471024740
tags:
2471124741
- Case Management
@@ -24732,6 +24762,11 @@ paths:
2473224762
$ref: '#/components/responses/NotFoundResponse'
2473324763
'429':
2473424764
$ref: '#/components/responses/TooManyRequestsResponse'
24765+
security:
24766+
- apiKeyAuth: []
24767+
appKeyAuth: []
24768+
- AuthZ:
24769+
- cases_read
2473524770
summary: Get the details of a case
2473624771
tags:
2473724772
- Case Management
@@ -24765,6 +24800,11 @@ paths:
2476524800
$ref: '#/components/responses/NotFoundResponse'
2476624801
'429':
2476724802
$ref: '#/components/responses/TooManyRequestsResponse'
24803+
security:
24804+
- apiKeyAuth: []
24805+
appKeyAuth: []
24806+
- AuthZ:
24807+
- cases_write
2476824808
summary: Archive case
2476924809
tags:
2477024810
- Case Management
@@ -24798,6 +24838,11 @@ paths:
2479824838
$ref: '#/components/responses/NotFoundResponse'
2479924839
'429':
2480024840
$ref: '#/components/responses/TooManyRequestsResponse'
24841+
security:
24842+
- apiKeyAuth: []
24843+
appKeyAuth: []
24844+
- AuthZ:
24845+
- cases_write
2480124846
summary: Assign case
2480224847
tags:
2480324848
- Case Management
@@ -24831,6 +24876,11 @@ paths:
2483124876
$ref: '#/components/responses/NotFoundResponse'
2483224877
'429':
2483324878
$ref: '#/components/responses/TooManyRequestsResponse'
24879+
security:
24880+
- apiKeyAuth: []
24881+
appKeyAuth: []
24882+
- AuthZ:
24883+
- cases_write
2483424884
summary: Update case priority
2483524885
tags:
2483624886
- Case Management
@@ -24864,6 +24914,11 @@ paths:
2486424914
$ref: '#/components/responses/NotFoundResponse'
2486524915
'429':
2486624916
$ref: '#/components/responses/TooManyRequestsResponse'
24917+
security:
24918+
- apiKeyAuth: []
24919+
appKeyAuth: []
24920+
- AuthZ:
24921+
- cases_write
2486724922
summary: Update case status
2486824923
tags:
2486924924
- Case Management
@@ -24897,6 +24952,11 @@ paths:
2489724952
$ref: '#/components/responses/NotFoundResponse'
2489824953
'429':
2489924954
$ref: '#/components/responses/TooManyRequestsResponse'
24955+
security:
24956+
- apiKeyAuth: []
24957+
appKeyAuth: []
24958+
- AuthZ:
24959+
- cases_write
2490024960
summary: Unarchive case
2490124961
tags:
2490224962
- Case Management
@@ -24930,6 +24990,11 @@ paths:
2493024990
$ref: '#/components/responses/NotFoundResponse'
2493124991
'429':
2493224992
$ref: '#/components/responses/TooManyRequestsResponse'
24993+
security:
24994+
- apiKeyAuth: []
24995+
appKeyAuth: []
24996+
- AuthZ:
24997+
- cases_write
2493324998
summary: Unassign case
2493424999
tags:
2493525000
- Case Management

src/datadog_api_client/v2/api/case_management_api.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, api_client=None):
4141
self._archive_case_endpoint = _Endpoint(
4242
settings={
4343
"response_type": (CaseResponse,),
44-
"auth": ["apiKeyAuth", "appKeyAuth"],
44+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
4545
"endpoint_path": "/api/v2/cases/{case_id}/archive",
4646
"operation_id": "archive_case",
4747
"http_method": "POST",
@@ -67,7 +67,7 @@ def __init__(self, api_client=None):
6767
self._assign_case_endpoint = _Endpoint(
6868
settings={
6969
"response_type": (CaseResponse,),
70-
"auth": ["apiKeyAuth", "appKeyAuth"],
70+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
7171
"endpoint_path": "/api/v2/cases/{case_id}/assign",
7272
"operation_id": "assign_case",
7373
"http_method": "POST",
@@ -93,7 +93,7 @@ def __init__(self, api_client=None):
9393
self._create_case_endpoint = _Endpoint(
9494
settings={
9595
"response_type": (CaseResponse,),
96-
"auth": ["apiKeyAuth", "appKeyAuth"],
96+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
9797
"endpoint_path": "/api/v2/cases",
9898
"operation_id": "create_case",
9999
"http_method": "POST",
@@ -113,7 +113,7 @@ def __init__(self, api_client=None):
113113
self._create_project_endpoint = _Endpoint(
114114
settings={
115115
"response_type": (ProjectResponse,),
116-
"auth": ["apiKeyAuth", "appKeyAuth"],
116+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
117117
"endpoint_path": "/api/v2/cases/projects",
118118
"operation_id": "create_project",
119119
"http_method": "POST",
@@ -133,7 +133,7 @@ def __init__(self, api_client=None):
133133
self._delete_project_endpoint = _Endpoint(
134134
settings={
135135
"response_type": None,
136-
"auth": ["apiKeyAuth", "appKeyAuth"],
136+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
137137
"endpoint_path": "/api/v2/cases/projects/{project_id}",
138138
"operation_id": "delete_project",
139139
"http_method": "DELETE",
@@ -156,7 +156,7 @@ def __init__(self, api_client=None):
156156
self._get_case_endpoint = _Endpoint(
157157
settings={
158158
"response_type": (CaseResponse,),
159-
"auth": ["apiKeyAuth", "appKeyAuth"],
159+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
160160
"endpoint_path": "/api/v2/cases/{case_id}",
161161
"operation_id": "get_case",
162162
"http_method": "GET",
@@ -179,7 +179,7 @@ def __init__(self, api_client=None):
179179
self._get_project_endpoint = _Endpoint(
180180
settings={
181181
"response_type": (ProjectResponse,),
182-
"auth": ["apiKeyAuth", "appKeyAuth"],
182+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
183183
"endpoint_path": "/api/v2/cases/projects/{project_id}",
184184
"operation_id": "get_project",
185185
"http_method": "GET",
@@ -202,7 +202,7 @@ def __init__(self, api_client=None):
202202
self._get_projects_endpoint = _Endpoint(
203203
settings={
204204
"response_type": (ProjectsResponse,),
205-
"auth": ["apiKeyAuth", "appKeyAuth"],
205+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
206206
"endpoint_path": "/api/v2/cases/projects",
207207
"operation_id": "get_projects",
208208
"http_method": "GET",
@@ -218,7 +218,7 @@ def __init__(self, api_client=None):
218218
self._search_cases_endpoint = _Endpoint(
219219
settings={
220220
"response_type": (CasesResponse,),
221-
"auth": ["apiKeyAuth", "appKeyAuth"],
221+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
222222
"endpoint_path": "/api/v2/cases",
223223
"operation_id": "search_cases",
224224
"http_method": "GET",
@@ -260,7 +260,7 @@ def __init__(self, api_client=None):
260260
self._unarchive_case_endpoint = _Endpoint(
261261
settings={
262262
"response_type": (CaseResponse,),
263-
"auth": ["apiKeyAuth", "appKeyAuth"],
263+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
264264
"endpoint_path": "/api/v2/cases/{case_id}/unarchive",
265265
"operation_id": "unarchive_case",
266266
"http_method": "POST",
@@ -286,7 +286,7 @@ def __init__(self, api_client=None):
286286
self._unassign_case_endpoint = _Endpoint(
287287
settings={
288288
"response_type": (CaseResponse,),
289-
"auth": ["apiKeyAuth", "appKeyAuth"],
289+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
290290
"endpoint_path": "/api/v2/cases/{case_id}/unassign",
291291
"operation_id": "unassign_case",
292292
"http_method": "POST",
@@ -312,7 +312,7 @@ def __init__(self, api_client=None):
312312
self._update_priority_endpoint = _Endpoint(
313313
settings={
314314
"response_type": (CaseResponse,),
315-
"auth": ["apiKeyAuth", "appKeyAuth"],
315+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
316316
"endpoint_path": "/api/v2/cases/{case_id}/priority",
317317
"operation_id": "update_priority",
318318
"http_method": "POST",
@@ -338,7 +338,7 @@ def __init__(self, api_client=None):
338338
self._update_status_endpoint = _Endpoint(
339339
settings={
340340
"response_type": (CaseResponse,),
341-
"auth": ["apiKeyAuth", "appKeyAuth"],
341+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
342342
"endpoint_path": "/api/v2/cases/{case_id}/status",
343343
"operation_id": "update_status",
344344
"http_method": "POST",

0 commit comments

Comments
 (0)