Skip to content

Commit 9196d47

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

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
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:30.579731",
8-
"spec_repo_commit": "d1e6ae92"
7+
"regenerated": "2023-05-24 12:48:39.730038",
8+
"spec_repo_commit": "ba7efe40"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-23 19:09:30.600610",
13-
"spec_repo_commit": "d1e6ae92"
12+
"regenerated": "2023-05-24 12:48:39.743445",
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

packages/datadog-api-client-v2/apis/ServiceDefinitionApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory {
6161

6262
// Apply auth methods
6363
applySecurityAuthentication(_config, requestContext, [
64+
"AuthZ",
6465
"apiKeyAuth",
6566
"appKeyAuth",
6667
]);
@@ -95,6 +96,7 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory {
9596

9697
// Apply auth methods
9798
applySecurityAuthentication(_config, requestContext, [
99+
"AuthZ",
98100
"apiKeyAuth",
99101
"appKeyAuth",
100102
]);
@@ -142,6 +144,7 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory {
142144

143145
// Apply auth methods
144146
applySecurityAuthentication(_config, requestContext, [
147+
"AuthZ",
145148
"apiKeyAuth",
146149
"appKeyAuth",
147150
]);
@@ -194,6 +197,7 @@ export class ServiceDefinitionApiRequestFactory extends BaseAPIRequestFactory {
194197

195198
// Apply auth methods
196199
applySecurityAuthentication(_config, requestContext, [
200+
"AuthZ",
197201
"apiKeyAuth",
198202
"appKeyAuth",
199203
]);

0 commit comments

Comments
 (0)