-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Publish private branch 'jiwang6/workflow-api' (#22241)
* Add purview workflow api. * Fix prettier check errors * Fix workflow tag * Fix spell check error * Fix linter error * Fix spell error and remove redundant example * Remove readme.md * Fix linter warning * Add reassign workflow request API * Add nextLink in example file * Fix spell error * Fix example value * fix opertaion id * Fix some issue * Fix reassign task request operationId * Fix azure_auth scope * Re-organize workflow API * Add enum option for some parameters * Fix enum option for some parameters * Rename request type filter * Add description for top level resource schema * Add description for top level resource schema * Add RequestEventPayloadWebRequest multiple sub models * Rename and change the model of some properties * Update workflow swagger * Update workflow swagger for SDK board review * Update workflow app model * Remove list/get/cancel userrequest api * lint error fix * Fix lint error * Fix small swagger issue * fix small swagger issue * Add unknow words * fix small swagger issue * Fix small swagger issue * Fix some properties * Fix swagger Co-authored-by: Jing Wang <[email protected]>
- Loading branch information
1 parent
deba715
commit 3bb28b0
Showing
19 changed files
with
3,090 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...e.Analytics.Purview.Workflow/preview/2022-05-01-preview/examples/ApproveApprovalTask.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"taskId": "98d98e2c-23fa-4157-a3f8-ff8ce5cc095c", | ||
"approvalResponseComment": { | ||
"comment": "Thanks for raising this!" | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ure.Analytics.Purview.Workflow/preview/2022-05-01-preview/examples/CancelWorkflowRun.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"workflowRunId": "b7aaf54b-59c2-4a0e-a7d0-f431044f2198", | ||
"runCancelReply": { | ||
"comment": "Thanks!" | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
....Analytics.Purview.Workflow/preview/2022-05-01-preview/examples/ClaimDSARTaskRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"taskId": "d5bd0215-df84-4245-8e18-3a8f012be376", | ||
"dsarTaskClaimCommand": { | ||
"comment": "Thanks!" | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
195 changes: 195 additions & 0 deletions
195
...alytics.Purview.Workflow/preview/2022-05-01-preview/examples/CreateOrReplaceWorkflow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745", | ||
"workflowCreateOrUpdateCommand": { | ||
"name": "Create glossary term workflow", | ||
"description": "", | ||
"triggers": [ | ||
{ | ||
"type": "when_term_creation_is_requested", | ||
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48" | ||
} | ||
], | ||
"isEnabled": true, | ||
"actionDag": { | ||
"actions": { | ||
"Start and wait for an approval": { | ||
"type": "Approval", | ||
"inputs": { | ||
"parameters": { | ||
"approvalType": "PendingOnAll", | ||
"title": "Approval Request for Create Glossary Term", | ||
"assignedTo": [ | ||
"eece94d9-0619-4669-bb8a-d6ecec5220bc" | ||
] | ||
} | ||
}, | ||
"runAfter": {} | ||
}, | ||
"Condition": { | ||
"type": "If", | ||
"expression": { | ||
"and": [ | ||
{ | ||
"equals": [ | ||
"@outputs('Start and wait for an approval')['body/outcome']", | ||
"Approved" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"Create glossary term": { | ||
"type": "CreateTerm", | ||
"runAfter": {} | ||
}, | ||
"Send email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - APPROVED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": { | ||
"Create glossary term": [ | ||
"Succeeded" | ||
] | ||
} | ||
} | ||
}, | ||
"else": { | ||
"actions": { | ||
"Send reject email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - REJECTED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": {} | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Start and wait for an approval": [ | ||
"Succeeded" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "179682a4-917d-11ed-a1eb-0242ac120002", | ||
"triggers": [ | ||
{ | ||
"type": "when_term_creation_is_requested", | ||
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48" | ||
} | ||
], | ||
"createdTime": "2023-01-11T07:05:22.812901453Z", | ||
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc", | ||
"lastUpdateTime": "2023-01-11T07:05:22.812901453Z", | ||
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc", | ||
"name": "Create glossary term workflow", | ||
"isEnabled": true, | ||
"description": "", | ||
"actionDag": { | ||
"actions": { | ||
"Start and wait for an approval": { | ||
"type": "Approval", | ||
"inputs": { | ||
"parameters": { | ||
"approvalType": "PendingOnAll", | ||
"title": "Approval Request for Create Glossary Term", | ||
"assignedTo": [ | ||
"eece94d9-0619-4669-bb8a-d6ecec5220bc" | ||
] | ||
} | ||
}, | ||
"runAfter": {} | ||
}, | ||
"Condition": { | ||
"type": "If", | ||
"expression": { | ||
"and": [ | ||
{ | ||
"equals": [ | ||
"@outputs('Start and wait for an approval')['body/outcome']", | ||
"Approved" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"Create glossary term": { | ||
"type": "CreateTerm", | ||
"runAfter": {} | ||
}, | ||
"Send email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - APPROVED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": { | ||
"Create glossary term": [ | ||
"Succeeded" | ||
] | ||
}, | ||
"runtimeConfiguration": { | ||
"secureInput": false, | ||
"secureOutput": false | ||
} | ||
} | ||
}, | ||
"else": { | ||
"actions": { | ||
"Send reject email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - REJECTED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": {}, | ||
"runtimeConfiguration": { | ||
"secureInput": false, | ||
"secureOutput": false | ||
} | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Start and wait for an approval": [ | ||
"Succeeded" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
.../Azure.Analytics.Purview.Workflow/preview/2022-05-01-preview/examples/DeleteWorkflow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
...ane/Azure.Analytics.Purview.Workflow/preview/2022-05-01-preview/examples/GetWorkflow.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"parameters": { | ||
"workflowId": "d503b2d2-84da-4a85-9e85-6e82e39d59a0", | ||
"api-version": "2022-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "773b326e-751c-4277-96a6-c4f522e9750f", | ||
"triggers": [ | ||
{ | ||
"type": "when_term_creation_is_requested" | ||
} | ||
], | ||
"createdTime": "2023-01-11T10:14:45.485999448Z", | ||
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc", | ||
"lastUpdateTime": "2023-01-11T10:14:45.485999448Z", | ||
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc", | ||
"name": "Create glossary term", | ||
"isEnabled": true, | ||
"description": "", | ||
"actionDag": { | ||
"actions": { | ||
"Start and wait for an approval": { | ||
"type": "Approval", | ||
"inputs": { | ||
"parameters": { | ||
"approvalType": "PendingOnAll", | ||
"title": "Approval Request for Create Glossary Term", | ||
"assignedTo": [ | ||
"eece94d9-0619-4669-bb8a-d6ecec5220bc" | ||
] | ||
} | ||
}, | ||
"runAfter": {} | ||
}, | ||
"Condition": { | ||
"type": "If", | ||
"expression": { | ||
"and": [ | ||
{ | ||
"equals": [ | ||
"@outputs('Start and wait for an approval')['body/outcome']", | ||
"Approved" | ||
] | ||
} | ||
] | ||
}, | ||
"actions": { | ||
"Create glossary term": { | ||
"type": "CreateTerm", | ||
"runAfter": {} | ||
}, | ||
"Send email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - APPROVED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": { | ||
"Create glossary term": [ | ||
"Succeeded" | ||
] | ||
}, | ||
"runtimeConfiguration": { | ||
"secureInput": false, | ||
"secureOutput": false | ||
} | ||
} | ||
}, | ||
"else": { | ||
"actions": { | ||
"Send reject email notification": { | ||
"type": "EmailNotification", | ||
"inputs": { | ||
"parameters": { | ||
"emailSubject": "Glossary Term Create - REJECTED", | ||
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.", | ||
"emailRecipients": [ | ||
"@{triggerBody()['request']['requestor']}" | ||
] | ||
} | ||
}, | ||
"runAfter": {}, | ||
"runtimeConfiguration": { | ||
"secureInput": false, | ||
"secureOutput": false | ||
} | ||
} | ||
} | ||
}, | ||
"runAfter": { | ||
"Start and wait for an approval": [ | ||
"Succeeded" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.