Skip to content

Commit d060f74

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove cases_* scopes that are not public (#1879)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 45ded98 commit d060f74

File tree

3 files changed

+17
-84
lines changed

3 files changed

+17
-84
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-04-26 19:29:40.171069",
8-
"spec_repo_commit": "0e208c14"
7+
"regenerated": "2024-05-01 14:56:34.869653",
8+
"spec_repo_commit": "769244ad"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-04-26 19:29:40.188640",
13-
"spec_repo_commit": "0e208c14"
12+
"regenerated": "2024-05-01 14:56:34.886205",
13+
"spec_repo_commit": "769244ad"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -22725,8 +22725,6 @@ components:
2272522725
apm_service_catalog_read: View service catalog and service definitions.
2272622726
apm_service_catalog_write: Add, modify, and delete service catalog definitions
2272722727
when those definitions are maintained by Datadog.
22728-
cases_read: Read all cases data.
22729-
cases_write: Create, update and delete cases data.
2273022728
ci_visibility_pipelines_write: Create CI Visibility pipeline spans using
2273122729
the API.
2273222730
ci_visibility_read: View CI Visibility.
@@ -23966,11 +23964,6 @@ paths:
2396623964
$ref: '#/components/responses/NotFoundResponse'
2396723965
'429':
2396823966
$ref: '#/components/responses/TooManyRequestsResponse'
23969-
security:
23970-
- apiKeyAuth: []
23971-
appKeyAuth: []
23972-
- AuthZ:
23973-
- cases_read
2397423967
summary: Search cases
2397523968
tags:
2397623969
- Case Management
@@ -24005,11 +23998,6 @@ paths:
2400523998
$ref: '#/components/responses/NotFoundResponse'
2400623999
'429':
2400724000
$ref: '#/components/responses/TooManyRequestsResponse'
24008-
security:
24009-
- apiKeyAuth: []
24010-
appKeyAuth: []
24011-
- AuthZ:
24012-
- cases_write
2401324001
summary: Create a case
2401424002
tags:
2401524003
- Case Management
@@ -24034,11 +24022,6 @@ paths:
2403424022
$ref: '#/components/responses/NotFoundResponse'
2403524023
'429':
2403624024
$ref: '#/components/responses/TooManyRequestsResponse'
24037-
security:
24038-
- apiKeyAuth: []
24039-
appKeyAuth: []
24040-
- AuthZ:
24041-
- cases_read
2404224025
summary: Get all projects
2404324026
tags:
2404424027
- Case Management
@@ -24069,11 +24052,6 @@ paths:
2406924052
$ref: '#/components/responses/NotFoundResponse'
2407024053
'429':
2407124054
$ref: '#/components/responses/TooManyRequestsResponse'
24072-
security:
24073-
- apiKeyAuth: []
24074-
appKeyAuth: []
24075-
- AuthZ:
24076-
- cases_write
2407724055
summary: Create a project
2407824056
tags:
2407924057
- Case Management
@@ -24096,11 +24074,6 @@ paths:
2409624074
description: API error response
2409724075
'429':
2409824076
$ref: '#/components/responses/TooManyRequestsResponse'
24099-
security:
24100-
- apiKeyAuth: []
24101-
appKeyAuth: []
24102-
- AuthZ:
24103-
- cases_write
2410424077
summary: Remove a project
2410524078
tags:
2410624079
- Case Management
@@ -24126,11 +24099,6 @@ paths:
2412624099
$ref: '#/components/responses/NotFoundResponse'
2412724100
'429':
2412824101
$ref: '#/components/responses/TooManyRequestsResponse'
24129-
security:
24130-
- apiKeyAuth: []
24131-
appKeyAuth: []
24132-
- AuthZ:
24133-
- cases_read
2413424102
summary: Get the details of a project
2413524103
tags:
2413624104
- Case Management
@@ -24157,11 +24125,6 @@ paths:
2415724125
$ref: '#/components/responses/NotFoundResponse'
2415824126
'429':
2415924127
$ref: '#/components/responses/TooManyRequestsResponse'
24160-
security:
24161-
- apiKeyAuth: []
24162-
appKeyAuth: []
24163-
- AuthZ:
24164-
- cases_read
2416524128
summary: Get the details of a case
2416624129
tags:
2416724130
- Case Management
@@ -24195,11 +24158,6 @@ paths:
2419524158
$ref: '#/components/responses/NotFoundResponse'
2419624159
'429':
2419724160
$ref: '#/components/responses/TooManyRequestsResponse'
24198-
security:
24199-
- apiKeyAuth: []
24200-
appKeyAuth: []
24201-
- AuthZ:
24202-
- cases_write
2420324161
summary: Archive case
2420424162
tags:
2420524163
- Case Management
@@ -24233,11 +24191,6 @@ paths:
2423324191
$ref: '#/components/responses/NotFoundResponse'
2423424192
'429':
2423524193
$ref: '#/components/responses/TooManyRequestsResponse'
24236-
security:
24237-
- apiKeyAuth: []
24238-
appKeyAuth: []
24239-
- AuthZ:
24240-
- cases_write
2424124194
summary: Assign case
2424224195
tags:
2424324196
- Case Management
@@ -24271,11 +24224,6 @@ paths:
2427124224
$ref: '#/components/responses/NotFoundResponse'
2427224225
'429':
2427324226
$ref: '#/components/responses/TooManyRequestsResponse'
24274-
security:
24275-
- apiKeyAuth: []
24276-
appKeyAuth: []
24277-
- AuthZ:
24278-
- cases_write
2427924227
summary: Update case priority
2428024228
tags:
2428124229
- Case Management
@@ -24309,11 +24257,6 @@ paths:
2430924257
$ref: '#/components/responses/NotFoundResponse'
2431024258
'429':
2431124259
$ref: '#/components/responses/TooManyRequestsResponse'
24312-
security:
24313-
- apiKeyAuth: []
24314-
appKeyAuth: []
24315-
- AuthZ:
24316-
- cases_write
2431724260
summary: Update case status
2431824261
tags:
2431924262
- Case Management
@@ -24347,11 +24290,6 @@ paths:
2434724290
$ref: '#/components/responses/NotFoundResponse'
2434824291
'429':
2434924292
$ref: '#/components/responses/TooManyRequestsResponse'
24350-
security:
24351-
- apiKeyAuth: []
24352-
appKeyAuth: []
24353-
- AuthZ:
24354-
- cases_write
2435524293
summary: Unarchive case
2435624294
tags:
2435724295
- Case Management
@@ -24385,11 +24323,6 @@ paths:
2438524323
$ref: '#/components/responses/NotFoundResponse'
2438624324
'429':
2438724325
$ref: '#/components/responses/TooManyRequestsResponse'
24388-
security:
24389-
- apiKeyAuth: []
24390-
appKeyAuth: []
24391-
- AuthZ:
24392-
- cases_write
2439324326
summary: Unassign case
2439424327
tags:
2439524328
- 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", "AuthZ"],
44+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
70+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
96+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
116+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
136+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
159+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
182+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
205+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
221+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
263+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
289+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
315+
"auth": ["apiKeyAuth", "appKeyAuth"],
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", "AuthZ"],
341+
"auth": ["apiKeyAuth", "appKeyAuth"],
342342
"endpoint_path": "/api/v2/cases/{case_id}/status",
343343
"operation_id": "update_status",
344344
"http_method": "POST",

0 commit comments

Comments
 (0)