Skip to content

Commit 411d925

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Document required app key scopes (#1738)
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 01db09d commit 411d925

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
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-08-01 17:35:36.454281",
8-
"spec_repo_commit": "0ac23b7a"
7+
"regenerated": "2024-08-01 21:20:18.000721",
8+
"spec_repo_commit": "55d5616e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-01 17:35:36.472862",
13-
"spec_repo_commit": "0ac23b7a"
12+
"regenerated": "2024-08-01 21:20:18.019864",
13+
"spec_repo_commit": "55d5616e"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38048,7 +38048,8 @@ paths:
3804838048
- Teams
3804938049
/api/v2/workflows/{workflow_id}/instances:
3805038050
get:
38051-
description: List all instances of a given workflow.
38051+
description: List all instances of a given workflow. This API requires an application
38052+
key scoped with the workflows_read permission.
3805238053
operationId: ListWorkflowInstances
3805338054
parameters:
3805438055
- $ref: '#/components/parameters/WorkflowId'
@@ -38071,7 +38072,8 @@ paths:
3807138072
tags:
3807238073
- Workflow Automation
3807338074
post:
38074-
description: Execute the given workflow
38075+
description: Execute the given workflow. This API requires an application key
38076+
scoped with the workflows_run permission.
3807538077
operationId: CreateWorkflowInstance
3807638078
parameters:
3807738079
- $ref: '#/components/parameters/WorkflowId'
@@ -38100,7 +38102,8 @@ paths:
3810038102
x-codegen-request-body-name: body
3810138103
/api/v2/workflows/{workflow_id}/instances/{instance_id}:
3810238104
get:
38103-
description: Get a specific execution of a given workflow.
38105+
description: Get a specific execution of a given workflow. This API requires
38106+
an application key scoped with the workflows_read permission.
3810438107
operationId: GetWorkflowInstance
3810538108
parameters:
3810638109
- $ref: '#/components/parameters/WorkflowId'
@@ -38125,7 +38128,8 @@ paths:
3812538128
- Workflow Automation
3812638129
/api/v2/workflows/{workflow_id}/instances/{instance_id}/cancel:
3812738130
put:
38128-
description: Cancels a specific execution of a given workflow.
38131+
description: Cancels a specific execution of a given workflow. This API requires
38132+
an application key scoped with the workflows_run permission.
3812938133
operationId: CancelWorkflowInstance
3813038134
parameters:
3813138135
- $ref: '#/components/parameters/WorkflowId'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class WorkflowAutomationApi {
530530
}
531531

532532
/**
533-
* Cancels a specific execution of a given workflow.
533+
* Cancels a specific execution of a given workflow. This API requires an application key scoped with the workflows_run permission.
534534
* @param param The request object
535535
*/
536536
public cancelWorkflowInstance(
@@ -552,7 +552,7 @@ export class WorkflowAutomationApi {
552552
}
553553

554554
/**
555-
* Execute the given workflow
555+
* Execute the given workflow. This API requires an application key scoped with the workflows_run permission.
556556
* @param param The request object
557557
*/
558558
public createWorkflowInstance(
@@ -574,7 +574,7 @@ export class WorkflowAutomationApi {
574574
}
575575

576576
/**
577-
* Get a specific execution of a given workflow.
577+
* Get a specific execution of a given workflow. This API requires an application key scoped with the workflows_read permission.
578578
* @param param The request object
579579
*/
580580
public getWorkflowInstance(
@@ -596,7 +596,7 @@ export class WorkflowAutomationApi {
596596
}
597597

598598
/**
599-
* List all instances of a given workflow.
599+
* List all instances of a given workflow. This API requires an application key scoped with the workflows_read permission.
600600
* @param param The request object
601601
*/
602602
public listWorkflowInstances(

0 commit comments

Comments
 (0)