Skip to content

Commit 6216dd5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add auth scopes for the service_definition endpoints (#1479)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c660509 commit 6216dd5

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
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.4",
7-
"regenerated": "2023-05-23 19:09:17.970557",
8-
"spec_repo_commit": "d1e6ae92"
7+
"regenerated": "2023-05-24 12:48:53.735604",
8+
"spec_repo_commit": "ba7efe40"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-23 19:09:17.983042",
13-
"spec_repo_commit": "d1e6ae92"
12+
"regenerated": "2023-05-24 12:48:53.752207",
13+
"spec_repo_commit": "ba7efe40"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14569,6 +14569,9 @@ components:
1456914569
authorizationCode:
1457014570
authorizationUrl: /oauth2/v1/authorize
1457114571
scopes:
14572+
apm_service_catalog_read: View service catalog and service definitions.
14573+
apm_service_catalog_write: Add, modify, and delete service catalog definitions
14574+
when those definitions are maintained by Datadog.
1457214575
dashboards_read: View dashboards.
1457314576
dashboards_write: Create and change dashboards.
1457414577
events_read: Read Events data.
@@ -22264,6 +22267,11 @@ paths:
2226422267
$ref: '#/components/responses/ForbiddenResponse'
2226522268
'429':
2226622269
$ref: '#/components/responses/TooManyRequestsResponse'
22270+
security:
22271+
- apiKeyAuth: []
22272+
appKeyAuth: []
22273+
- AuthZ:
22274+
- apm_service_catalog_read
2226722275
summary: Get all service definitions
2226822276
tags:
2226922277
- Service Definition
@@ -22296,6 +22304,11 @@ paths:
2229622304
$ref: '#/components/responses/ConflictResponse'
2229722305
'429':
2229822306
$ref: '#/components/responses/TooManyRequestsResponse'
22307+
security:
22308+
- apiKeyAuth: []
22309+
appKeyAuth: []
22310+
- AuthZ:
22311+
- apm_service_catalog_write
2229922312
summary: Create or update service definition
2230022313
tags:
2230122314
- Service Definition
@@ -22317,6 +22330,11 @@ paths:
2231722330
$ref: '#/components/responses/NotFoundResponse'
2231822331
'429':
2231922332
$ref: '#/components/responses/TooManyRequestsResponse'
22333+
security:
22334+
- apiKeyAuth: []
22335+
appKeyAuth: []
22336+
- AuthZ:
22337+
- apm_service_catalog_write
2232022338
summary: Delete a single service definition
2232122339
tags:
2232222340
- Service Definition
@@ -22343,6 +22361,11 @@ paths:
2234322361
$ref: '#/components/responses/ConflictResponse'
2234422362
'429':
2234522363
$ref: '#/components/responses/TooManyRequestsResponse'
22364+
security:
22365+
- apiKeyAuth: []
22366+
appKeyAuth: []
22367+
- AuthZ:
22368+
- apm_service_catalog_read
2234622369
summary: Get a single service definition
2234722370
tags:
2234822371
- Service Definition

src/datadog_api_client/v2/api/service_definition_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, api_client=None):
3737
self._create_or_update_service_definitions_endpoint = _Endpoint(
3838
settings={
3939
"response_type": (ServiceDefinitionCreateResponse,),
40-
"auth": ["apiKeyAuth", "appKeyAuth"],
40+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
4141
"endpoint_path": "/api/v2/services/definitions",
4242
"operation_id": "create_or_update_service_definitions",
4343
"http_method": "POST",
@@ -58,7 +58,7 @@ def __init__(self, api_client=None):
5858
self._delete_service_definition_endpoint = _Endpoint(
5959
settings={
6060
"response_type": None,
61-
"auth": ["apiKeyAuth", "appKeyAuth"],
61+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
6262
"endpoint_path": "/api/v2/services/definitions/{service_name}",
6363
"operation_id": "delete_service_definition",
6464
"http_method": "DELETE",
@@ -83,7 +83,7 @@ def __init__(self, api_client=None):
8383
self._get_service_definition_endpoint = _Endpoint(
8484
settings={
8585
"response_type": (ServiceDefinitionGetResponse,),
86-
"auth": ["apiKeyAuth", "appKeyAuth"],
86+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
8787
"endpoint_path": "/api/v2/services/definitions/{service_name}",
8888
"operation_id": "get_service_definition",
8989
"http_method": "GET",
@@ -113,7 +113,7 @@ def __init__(self, api_client=None):
113113
self._list_service_definitions_endpoint = _Endpoint(
114114
settings={
115115
"response_type": (ServiceDefinitionsListResponse,),
116-
"auth": ["apiKeyAuth", "appKeyAuth"],
116+
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
117117
"endpoint_path": "/api/v2/services/definitions",
118118
"operation_id": "list_service_definitions",
119119
"http_method": "GET",

0 commit comments

Comments
 (0)