Skip to content

Commit 38d3ad9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Document required app key scopes (#2084)
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 e6df7a4 commit 38d3ad9

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:37.919014",
8-
"spec_repo_commit": "0ac23b7a"
7+
"regenerated": "2024-08-01 21:20:11.603374",
8+
"spec_repo_commit": "55d5616e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-01 17:35:37.936141",
13-
"spec_repo_commit": "0ac23b7a"
12+
"regenerated": "2024-08-01 21:20:11.620598",
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'

src/datadog_api_client/v2/api/workflow_automation_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def cancel_workflow_instance(
152152
) -> WorklflowCancelInstanceResponse:
153153
"""Cancel a workflow instance.
154154
155-
Cancels a specific execution of a given workflow.
155+
Cancels a specific execution of a given workflow. This API requires an application key scoped with the workflows_run permission.
156156
157157
:param workflow_id: The ID of the workflow.
158158
:type workflow_id: str
@@ -174,7 +174,7 @@ def create_workflow_instance(
174174
) -> WorkflowInstanceCreateResponse:
175175
"""Execute a workflow.
176176
177-
Execute the given workflow
177+
Execute the given workflow. This API requires an application key scoped with the workflows_run permission.
178178
179179
:param workflow_id: The ID of the workflow.
180180
:type workflow_id: str
@@ -195,7 +195,7 @@ def get_workflow_instance(
195195
) -> WorklflowGetInstanceResponse:
196196
"""Get a workflow instance.
197197
198-
Get a specific execution of a given workflow.
198+
Get a specific execution of a given workflow. This API requires an application key scoped with the workflows_read permission.
199199
200200
:param workflow_id: The ID of the workflow.
201201
:type workflow_id: str
@@ -219,7 +219,7 @@ def list_workflow_instances(
219219
) -> WorkflowListInstancesResponse:
220220
"""List workflow instances.
221221
222-
List all instances of a given workflow.
222+
List all instances of a given workflow. This API requires an application key scoped with the workflows_read permission.
223223
224224
:param workflow_id: The ID of the workflow.
225225
:type workflow_id: str

0 commit comments

Comments
 (0)