Skip to content

Commit 5641197

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[ACCESS-2569] Update API specs with new apm_api_catalog_* scopes (#1997)
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 56ffb45 commit 5641197

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
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-01 17:39:12.491494",
8-
"spec_repo_commit": "acfbfe3f"
7+
"regenerated": "2024-07-02 14:03:47.915919",
8+
"spec_repo_commit": "dd2bff15"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-01 17:39:12.508105",
13-
"spec_repo_commit": "acfbfe3f"
12+
"regenerated": "2024-07-02 14:03:47.934068",
13+
"spec_repo_commit": "dd2bff15"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23566,6 +23566,11 @@ paths:
2356623566
description: Forbidden
2356723567
'429':
2356823568
$ref: '#/components/responses/TooManyRequestsResponse'
23569+
security:
23570+
- apiKeyAuth: []
23571+
appKeyAuth: []
23572+
- AuthZ:
23573+
- apm_api_catalog_read
2356923574
summary: List APIs
2357023575
tags:
2357123576
- API Management
@@ -23606,6 +23611,11 @@ paths:
2360623611
description: API not found error
2360723612
'429':
2360823613
$ref: '#/components/responses/TooManyRequestsResponse'
23614+
security:
23615+
- apiKeyAuth: []
23616+
appKeyAuth: []
23617+
- AuthZ:
23618+
- apm_api_catalog_write
2360923619
summary: Delete an API
2361023620
tags:
2361123621
- API Management
@@ -23652,6 +23662,11 @@ paths:
2365223662
description: API not found error
2365323663
'429':
2365423664
$ref: '#/components/responses/TooManyRequestsResponse'
23665+
security:
23666+
- apiKeyAuth: []
23667+
appKeyAuth: []
23668+
- AuthZ:
23669+
- apm_api_catalog_read
2365523670
summary: Get an API
2365623671
tags:
2365723672
- API Management
@@ -23707,6 +23722,11 @@ paths:
2370723722
description: API not found error
2370823723
'429':
2370923724
$ref: '#/components/responses/TooManyRequestsResponse'
23725+
security:
23726+
- apiKeyAuth: []
23727+
appKeyAuth: []
23728+
- AuthZ:
23729+
- apm_api_catalog_write
2371023730
summary: Update an API
2371123731
tags:
2371223732
- API Management
@@ -23754,6 +23774,11 @@ paths:
2375423774
description: Forbidden
2375523775
'429':
2375623776
$ref: '#/components/responses/TooManyRequestsResponse'
23777+
security:
23778+
- apiKeyAuth: []
23779+
appKeyAuth: []
23780+
- AuthZ:
23781+
- apm_api_catalog_write
2375723782
summary: Create a new API
2375823783
tags:
2375923784
- API Management

src/datadog_api_client/v2/api/api_management_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, api_client=None):
3131
self._create_open_api_endpoint = _Endpoint(
3232
settings={
3333
"response_type": (CreateOpenAPIResponse,),
34-
"auth": ["apiKeyAuth", "appKeyAuth"],
34+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
3535
"endpoint_path": "/api/v2/apicatalog/openapi",
3636
"operation_id": "create_open_api",
3737
"http_method": "POST",
@@ -51,7 +51,7 @@ def __init__(self, api_client=None):
5151
self._delete_open_api_endpoint = _Endpoint(
5252
settings={
5353
"response_type": None,
54-
"auth": ["apiKeyAuth", "appKeyAuth"],
54+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
5555
"endpoint_path": "/api/v2/apicatalog/api/{id}",
5656
"operation_id": "delete_open_api",
5757
"http_method": "DELETE",
@@ -74,7 +74,7 @@ def __init__(self, api_client=None):
7474
self._get_open_api_endpoint = _Endpoint(
7575
settings={
7676
"response_type": (file_type,),
77-
"auth": ["apiKeyAuth", "appKeyAuth"],
77+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
7878
"endpoint_path": "/api/v2/apicatalog/api/{id}/openapi",
7979
"operation_id": "get_open_api",
8080
"http_method": "GET",
@@ -97,7 +97,7 @@ def __init__(self, api_client=None):
9797
self._list_apis_endpoint = _Endpoint(
9898
settings={
9999
"response_type": (ListAPIsResponse,),
100-
"auth": ["apiKeyAuth", "appKeyAuth"],
100+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
101101
"endpoint_path": "/api/v2/apicatalog/api",
102102
"operation_id": "list_apis",
103103
"http_method": "GET",
@@ -135,7 +135,7 @@ def __init__(self, api_client=None):
135135
self._update_open_api_endpoint = _Endpoint(
136136
settings={
137137
"response_type": (UpdateOpenAPIResponse,),
138-
"auth": ["apiKeyAuth", "appKeyAuth"],
138+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
139139
"endpoint_path": "/api/v2/apicatalog/api/{id}/openapi",
140140
"operation_id": "update_open_api",
141141
"http_method": "PUT",

0 commit comments

Comments
 (0)