Skip to content

Commit ab3ba24

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35b02d0 of spec repo
1 parent 6d0cb8a commit ab3ba24

4 files changed

Lines changed: 161 additions & 6 deletions

File tree

hugo/content/en/api/v2/workflow-automation/examples.json

Lines changed: 49 additions & 6 deletions
Large diffs are not rendered by default.

hugo/content/en/api/v2/workflow-automation/request.CreateWorkflow.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "A sample workflow.",
55
"name": "Example Workflow",
66
"published": true,
7+
"runAs": {
8+
"type": "owner"
9+
},
710
"spec": {
811
"connectionEnvs": [
912
{

hugo/content/en/api/v2/workflow-automation/request.UpdateWorkflow.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "A sample workflow.",
55
"name": "Example Workflow",
66
"published": true,
7+
"runAs": {
8+
"type": "owner"
9+
},
710
"spec": {
811
"connectionEnvs": [
912
{

hugo/data/api/v2/full_spec.yaml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26764,6 +26764,8 @@ components:
2676426764
description: "A sample workflow."
2676526765
name: "Example Workflow"
2676626766
published: true
26767+
runAs:
26768+
type: owner
2676726769
spec:
2676826770
annotations:
2676926771
- display:
@@ -122546,6 +122548,8 @@ components:
122546122548
description: "A sample workflow."
122547122549
name: "Example Workflow"
122548122550
published: true
122551+
runAs:
122552+
type: owner
122549122553
spec:
122550122554
annotations:
122551122555
- display:
@@ -125496,6 +125500,12 @@ components:
125496125500
published:
125497125501
description: Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published.
125498125502
type: boolean
125503+
runAs:
125504+
$ref: "#/components/schemas/WorkflowRunAs"
125505+
writeOnly: true
125506+
runAsUserMode:
125507+
$ref: "#/components/schemas/WorkflowRunAsUserMode"
125508+
readOnly: true
125499125509
spec:
125500125510
$ref: "#/components/schemas/Spec"
125501125511
tags:
@@ -125524,6 +125534,9 @@ components:
125524125534
$ref: "#/components/schemas/WorkflowUserRelationship"
125525125535
owner:
125526125536
$ref: "#/components/schemas/WorkflowUserRelationship"
125537+
runAs:
125538+
$ref: "#/components/schemas/WorkflowUserRelationship"
125539+
description: The service account used to run the workflow. Present when `runAsUserMode` is `service_account`.
125527125540
readOnly: true
125528125541
type: object
125529125542
WorkflowDataType:
@@ -125567,6 +125580,12 @@ components:
125567125580
published:
125568125581
description: Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published.
125569125582
type: boolean
125583+
runAs:
125584+
$ref: "#/components/schemas/WorkflowRunAs"
125585+
writeOnly: true
125586+
runAsUserMode:
125587+
$ref: "#/components/schemas/WorkflowRunAsUserMode"
125588+
readOnly: true
125570125589
spec:
125571125590
$ref: "#/components/schemas/Spec"
125572125591
tags:
@@ -125685,6 +125704,9 @@ components:
125685125704
published:
125686125705
description: Whether the workflow is published. Unpublished workflows can only be run manually. Automatic triggers such as Schedule do not fire until the workflow is published.
125687125706
type: boolean
125707+
runAsUserMode:
125708+
$ref: "#/components/schemas/WorkflowRunAsUserMode"
125709+
readOnly: true
125688125710
spec:
125689125711
$ref: "#/components/schemas/Spec"
125690125712
nullable: true
@@ -125702,6 +125724,82 @@ components:
125702125724
required:
125703125725
- name
125704125726
type: object
125727+
WorkflowRunAs:
125728+
description: Identity used to run the workflow.
125729+
example:
125730+
type: owner
125731+
oneOf:
125732+
- $ref: "#/components/schemas/WorkflowRunAsOwner"
125733+
- $ref: "#/components/schemas/WorkflowRunAsServiceAccount"
125734+
- $ref: "#/components/schemas/WorkflowRunAsInitiator"
125735+
WorkflowRunAsInitiator:
125736+
additionalProperties: false
125737+
description: Run the workflow as the user who initiates the execution.
125738+
properties:
125739+
type:
125740+
$ref: "#/components/schemas/WorkflowRunAsInitiatorType"
125741+
required:
125742+
- type
125743+
type: object
125744+
WorkflowRunAsInitiatorType:
125745+
description: The initiator run-as type.
125746+
enum:
125747+
- initiator
125748+
example: initiator
125749+
type: string
125750+
x-enum-varnames:
125751+
- INITIATOR
125752+
WorkflowRunAsOwner:
125753+
additionalProperties: false
125754+
description: Run the workflow as its owner.
125755+
properties:
125756+
type:
125757+
$ref: "#/components/schemas/WorkflowRunAsOwnerType"
125758+
required:
125759+
- type
125760+
type: object
125761+
WorkflowRunAsOwnerType:
125762+
description: The owner run-as type.
125763+
enum:
125764+
- owner
125765+
example: owner
125766+
type: string
125767+
x-enum-varnames:
125768+
- OWNER
125769+
WorkflowRunAsServiceAccount:
125770+
additionalProperties: false
125771+
description: Run the workflow as a service account.
125772+
properties:
125773+
id:
125774+
description: The service account identifier.
125775+
example: 00000000-0000-0000-0000-000000000007
125776+
type: string
125777+
type:
125778+
$ref: "#/components/schemas/WorkflowRunAsServiceAccountType"
125779+
required:
125780+
- type
125781+
- id
125782+
type: object
125783+
WorkflowRunAsServiceAccountType:
125784+
description: The service account run-as type.
125785+
enum:
125786+
- service_account
125787+
example: service_account
125788+
type: string
125789+
x-enum-varnames:
125790+
- SERVICE_ACCOUNT
125791+
WorkflowRunAsUserMode:
125792+
description: The effective type of identity used to run the workflow.
125793+
enum:
125794+
- owner
125795+
- service_account
125796+
- initiator
125797+
example: owner
125798+
type: string
125799+
x-enum-varnames:
125800+
- OWNER
125801+
- SERVICE_ACCOUNT
125802+
- INITIATOR
125705125803
WorkflowTriggerWrapper:
125706125804
description: "Schema for a Workflow-based trigger."
125707125805
properties:
@@ -224334,6 +224432,7 @@ paths:
224334224432
description: A sample workflow.
224335224433
name: Example Workflow
224336224434
published: true
224435+
runAsUserMode: owner
224337224436
spec: {}
224338224437
tags:
224339224438
- team:infra
@@ -224389,6 +224488,8 @@ paths:
224389224488
description: A sample workflow.
224390224489
name: Example Workflow
224391224490
published: true
224491+
runAs:
224492+
type: owner
224392224493
spec:
224393224494
annotations:
224394224495
- display:
@@ -224455,6 +224556,7 @@ paths:
224455224556
data:
224456224557
attributes:
224457224558
name: Example Workflow
224559+
runAsUserMode: owner
224458224560
spec: {}
224459224561
id: 00000000-0000-0000-0000-000000000001
224460224562
type: workflows
@@ -224540,6 +224642,7 @@ paths:
224540224642
description: A sample workflow.
224541224643
name: Example Workflow
224542224644
published: true
224645+
runAsUserMode: owner
224543224646
spec: {}
224544224647
tags:
224545224648
- team:infra
@@ -224597,6 +224700,8 @@ paths:
224597224700
description: A sample workflow.
224598224701
name: Example Workflow
224599224702
published: true
224703+
runAs:
224704+
type: owner
224600224705
spec:
224601224706
annotations:
224602224707
- display:
@@ -224664,6 +224769,7 @@ paths:
224664224769
data:
224665224770
attributes:
224666224771
name: Example Workflow
224772+
runAsUserMode: owner
224667224773
id: 00000000-0000-0000-0000-000000000003
224668224774
type: workflows
224669224775
schema:

0 commit comments

Comments
 (0)