From 8a08643e732c3e4d3e37de56611bb08a79d10895 Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Mon, 11 Nov 2024 13:30:00 -0800 Subject: [PATCH] Release `Microsoft.DurableTask` `2024-10-01-preview` (#31246) * Release Durable Task 2024-10-01-preview * Address review. TSP config changes * Add default service-dir in tspconfig * actually fix tspconfig * make readonly property not required for SDK compilation * use recommended default service-dir * Update tspconfig * Remove (hopefully) unnecessary readme files * fix up readme.md --- .../2024-10-01-preview/Operations_List.json | 28 + .../Schedulers_CreateOrUpdate.json | 94 ++ .../2024-10-01-preview/Schedulers_Delete.json | 18 + .../2024-10-01-preview/Schedulers_Get.json | 44 + .../Schedulers_ListByResourceGroup.json | 47 + .../Schedulers_ListBySubscription.json | 46 + .../2024-10-01-preview/Schedulers_Update.json | 63 ++ .../TaskHubs_CreateOrUpdate.json | 54 + .../2024-10-01-preview/TaskHubs_Delete.json | 19 + .../2024-10-01-preview/TaskHubs_Get.json | 32 + .../TaskHubs_ListByScheduler.json | 36 + .../DurableTask.Management/main.tsp | 157 +++ .../DurableTask.Management/tspconfig.yaml | 53 + .../2024-10-01-preview/durabletask.json | 970 ++++++++++++++++++ .../examples/Operations_List.json | 28 + .../examples/Schedulers_CreateOrUpdate.json | 94 ++ .../examples/Schedulers_Delete.json | 18 + .../examples/Schedulers_Get.json | 44 + .../Schedulers_ListByResourceGroup.json | 47 + .../Schedulers_ListBySubscription.json | 46 + .../examples/Schedulers_Update.json | 63 ++ .../examples/TaskHubs_CreateOrUpdate.json | 54 + .../examples/TaskHubs_Delete.json | 19 + .../examples/TaskHubs_Get.json | 32 + .../examples/TaskHubs_ListByScheduler.json | 36 + .../durabletask/resource-manager/readme.md | 42 + 26 files changed, 2184 insertions(+) create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Operations_List.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_CreateOrUpdate.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Delete.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Get.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListByResourceGroup.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListBySubscription.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Update.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_CreateOrUpdate.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Delete.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Get.json create mode 100644 specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_ListByScheduler.json create mode 100644 specification/durabletask/DurableTask.Management/main.tsp create mode 100644 specification/durabletask/DurableTask.Management/tspconfig.yaml create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/durabletask.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Operations_List.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_CreateOrUpdate.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Delete.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Get.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListByResourceGroup.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListBySubscription.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Update.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_CreateOrUpdate.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Delete.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Get.json create mode 100644 specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_ListByScheduler.json create mode 100644 specification/durabletask/resource-manager/readme.md diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Operations_List.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Operations_List.json new file mode 100644 index 000000000000..b2e9c4e50029 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "jqsgzvpbtspnikfz", + "isDataAction": true, + "display": { + "provider": "bosyazksbxugcbsdipxwmdc", + "resource": "texxqckghuv", + "operation": "cwgwrxyusyqdrcbxrlmnjzpwxatuk", + "description": "mqzopqigvcyggcvezqgvyufbd" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/akpblld" + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_CreateOrUpdate.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_CreateOrUpdate.json new file mode 100644 index 000000000000..a50a658a5662 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_CreateOrUpdate.json @@ -0,0 +1,94 @@ +{ + "title": "Schedulers_CreateOrUpdate", + "operationId": "Schedulers_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "resource": { + "location": "northcentralus", + "properties": { + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + } + } + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "fwxpolhofploqzwdooyg", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "fwxpolhofploqzwdooyg", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Delete.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Delete.json new file mode 100644 index 000000000000..05fb5efbda89 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Schedulers_Delete", + "operationId": "Schedulers_Delete", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Get.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Get.json new file mode 100644 index 000000000000..66975f144747 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Get.json @@ -0,0 +1,44 @@ +{ + "title": "Schedulers_Get", + "operationId": "Schedulers_Get", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler" + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "testscheduler", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListByResourceGroup.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListByResourceGroup.json new file mode 100644 index 000000000000..a6d1e835e1e3 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "title": "Schedulers_ListByResourceGroup", + "operationId": "Schedulers_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key2138": "fjaeecgnvqd" + }, + "name": "testscheduler", + "type": "tglszobjxdhauglzxuqozeg", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListBySubscription.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListBySubscription.json new file mode 100644 index 000000000000..ece2b589d78a --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_ListBySubscription.json @@ -0,0 +1,46 @@ +{ + "title": "Schedulers_ListBySubscription", + "operationId": "Schedulers_ListBySubscription", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key2138": "fjaeecgnvqd" + }, + "name": "testscheduler", + "type": "tglszobjxdhauglzxuqozeg", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Update.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Update.json new file mode 100644 index 000000000000..8bae2c2a977a --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/Schedulers_Update.json @@ -0,0 +1,63 @@ +{ + "title": "Schedulers_Update", + "operationId": "Schedulers_Update", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "properties": { + "tags": { + "key8653": "lr" + }, + "properties": { + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 10 + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "testscheduler", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_CreateOrUpdate.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_CreateOrUpdate.json new file mode 100644 index 000000000000..07bdbfecdf68 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_CreateOrUpdate.json @@ -0,0 +1,54 @@ +{ + "title": "TaskHubs_CreateOrUpdate", + "operationId": "TaskHubs_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtaskhub", + "resource": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Delete.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Delete.json new file mode 100644 index 000000000000..0b42f63f827a --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "TaskHubs_Delete", + "operationId": "TaskHubs_Delete", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtuskhub" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Get.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Get.json new file mode 100644 index 000000000000..4aef5a655f26 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_Get.json @@ -0,0 +1,32 @@ +{ + "title": "TaskHubs_Get", + "operationId": "TaskHubs_Get", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtuskhub" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_ListByScheduler.json b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_ListByScheduler.json new file mode 100644 index 000000000000..633525868661 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/examples/2024-10-01-preview/TaskHubs_ListByScheduler.json @@ -0,0 +1,36 @@ +{ + "title": "TaskHubs_ListByScheduler", + "operationId": "TaskHubs_ListByScheduler", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testtaskhub" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "name": "testtaskhub", + "type": "enkfjxsqktqyeiibofppkxruyb", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/DurableTask.Management/main.tsp b/specification/durabletask/DurableTask.Management/main.tsp new file mode 100644 index 000000000000..7e953c4cd78e --- /dev/null +++ b/specification/durabletask/DurableTask.Management/main.tsp @@ -0,0 +1,157 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +@armProviderNamespace +@service({ + title: "Microsoft.DurableTask", +}) +@versioned(Versions) +namespace Microsoft.DurableTask; + +interface Operations extends Azure.ResourceManager.Operations {} + +@doc("API Versions") +enum Versions { + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + @doc("2024-10-01-preview") + v2024_10_01_Preview: "2024-10-01-preview", +} + +@doc("A Durable Task Scheduler resource") +@added(Versions.v2024_10_01_Preview) +model Scheduler is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Scheduler, + "schedulerName", + "schedulers", + "^[a-zA-Z0-9-]{3,64}$" + >; +} + +@doc("Details of the Scheduler") +@added(Versions.v2024_10_01_Preview) +model SchedulerProperties { + @visibility("read") + @doc("The status of the last operation") + provisioningState?: ProvisioningState; + + @doc("URL of the durable task scheduler") + @visibility("read") + endpoint?: string; + + @doc("IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR") + ipAllowlist: string[]; + + @doc("SKU of the durable task scheduler") + sku: SchedulerSku; +} + +@doc("The SKU (Stock Keeping Unit) assigned to this durable task scheduler") +@added(Versions.v2024_10_01_Preview) +model SchedulerSku { + @doc("The name of the SKU") + name: string; + + @doc("The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy") + capacity?: int32; + + @doc("Indicates whether the current SKU configuration is zone redundant") + @visibility("read") + redundancyState?: RedundancyState; +} + +@doc("A Task Hub resource belonging to the scheduler") +@added(Versions.v2024_10_01_Preview) +@parentResource(Scheduler) +model TaskHub is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + TaskHub, + "taskHubName", + "taskHubs", + "^[a-zA-Z0-9-]{3,64}$" + >; +} + +@doc("The state of the resource redundancy") +union RedundancyState { + string, + + @doc("The resource is not redundant") + None: "None", + + @doc("The resource is zone redundant") + Zone: "Zone", +} + +@doc("The properties of Task Hub") +model TaskHubProperties { + @visibility("read") + @doc("The status of the last operation") + provisioningState?: ProvisioningState; + + @doc("URL of the durable task scheduler dashboard") + @visibility("read") + dashboardUrl?: url; +} + +@doc("The status of the current operation") +@Azure.Core.lroStatus +union ProvisioningState { + string, + ResourceProvisioningState, + + @doc("The resource is being provisioned") + Provisioning: "Provisioning", + + @doc("The resource is updating") + Updating: "Updating", + + @doc("The resource is being deleted") + Deleting: "Deleting", + + @doc("The resource create request has been accepted") + Accepted: "Accepted", +} + +@armResourceOperations(Scheduler) +interface Schedulers { + @doc("Get a Scheduler") + @errorsDoc("Not found error: resource does not exist") + get is ArmResourceRead; + @doc("Create or update a Scheduler") + @errorsDoc("Validation error: required parameters are missing") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + @doc("Update a Scheduler") + @errorsDoc("Validation error: required parameters are missing") + update is ArmResourcePatchAsync; + @doc("Delete a Scheduler") + delete is ArmResourceDeleteWithoutOkAsync; + @doc("List Schedulers by resource group") + listByResourceGroup is ArmResourceListByParent; + @doc("List Schedulers by subscription") + listBySubscription is ArmListBySubscription; +} + +@armResourceOperations(TaskHub) +interface TaskHubs { + @doc("Get a Task Hub") + @errorsDoc("Not found error: resource does not exist") + get is ArmResourceRead; + @doc("Create or Update a Task Hub") + @errorsDoc("Validation error: required parameters are missing") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + @doc("Delete a Task Hub") + delete is ArmResourceDeleteWithoutOkAsync; + @doc("List Task Hubs") + listByScheduler is ArmResourceListByParent; +} diff --git a/specification/durabletask/DurableTask.Management/tspconfig.yaml b/specification/durabletask/DurableTask.Management/tspconfig.yaml new file mode 100644 index 000000000000..751c10e800c1 --- /dev/null +++ b/specification/durabletask/DurableTask.Management/tspconfig.yaml @@ -0,0 +1,53 @@ +parameters: + "service-dir": + default: "sdk/durabletask" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + azure-resource-provider-folder: "resource-manager" + emitter-output-dir: "{project-root}/.." + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/durabletask.json" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-durabletask" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-durabletask" + namespace: "com.azure.resourcemanager.durabletask" + service-name: "durabletask" + flavor: azure + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/durabletask" + package-dir: "armdurabletask" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-examples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true + remove-unreferenced-types: true + "@azure-tools/typespec-csharp": + package-dir: "Azure.ResourceManager.DurableTask" + flavor: azure + clear-output-folder: true + model-namespace: false + namespace: "{package-dir}" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-durabletask" + flavor: "azure" + packageDetails: + name: "@azure/arm-durabletask" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/durabletask.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/durabletask.json new file mode 100644 index 000000000000..c517559e5636 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/durabletask.json @@ -0,0 +1,970 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.DurableTask", + "version": "2024-10-01-preview", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Schedulers" + }, + { + "name": "TaskHubs" + } + ], + "paths": { + "/providers/Microsoft.DurableTask/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DurableTask/schedulers": { + "get": { + "operationId": "Schedulers_ListBySubscription", + "tags": [ + "Schedulers" + ], + "description": "List Schedulers by subscription", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SchedulerListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_ListBySubscription": { + "$ref": "./examples/Schedulers_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers": { + "get": { + "operationId": "Schedulers_ListByResourceGroup", + "tags": [ + "Schedulers" + ], + "description": "List Schedulers by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SchedulerListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_ListByResourceGroup": { + "$ref": "./examples/Schedulers_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { + "get": { + "operationId": "Schedulers_Get", + "tags": [ + "Schedulers" + ], + "description": "Get a Scheduler", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Scheduler" + } + }, + "default": { + "description": "Not found error: resource does not exist", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_Get": { + "$ref": "./examples/Schedulers_Get.json" + } + } + }, + "put": { + "operationId": "Schedulers_CreateOrUpdate", + "tags": [ + "Schedulers" + ], + "description": "Create or update a Scheduler", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/Scheduler" + } + } + ], + "responses": { + "200": { + "description": "Resource 'Scheduler' update operation succeeded", + "schema": { + "$ref": "#/definitions/Scheduler" + } + }, + "201": { + "description": "Resource 'Scheduler' create operation succeeded", + "schema": { + "$ref": "#/definitions/Scheduler" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "Validation error: required parameters are missing", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_CreateOrUpdate": { + "$ref": "./examples/Schedulers_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Schedulers_Update", + "tags": [ + "Schedulers" + ], + "description": "Update a Scheduler", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/SchedulerUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Scheduler" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "Validation error: required parameters are missing", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_Update": { + "$ref": "./examples/Schedulers_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Schedulers_Delete", + "tags": [ + "Schedulers" + ], + "description": "Delete a Scheduler", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Schedulers_Delete": { + "$ref": "./examples/Schedulers_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs": { + "get": { + "operationId": "TaskHubs_ListByScheduler", + "tags": [ + "TaskHubs" + ], + "description": "List Task Hubs", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TaskHubListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TaskHubs_ListByScheduler": { + "$ref": "./examples/TaskHubs_ListByScheduler.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": { + "get": { + "operationId": "TaskHubs_Get", + "tags": [ + "TaskHubs" + ], + "description": "Get a Task Hub", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "taskHubName", + "in": "path", + "description": "The name of the TaskHub", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/TaskHub" + } + }, + "default": { + "description": "Not found error: resource does not exist", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TaskHubs_Get": { + "$ref": "./examples/TaskHubs_Get.json" + } + } + }, + "put": { + "operationId": "TaskHubs_CreateOrUpdate", + "tags": [ + "TaskHubs" + ], + "description": "Create or Update a Task Hub", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "taskHubName", + "in": "path", + "description": "The name of the TaskHub", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/TaskHub" + } + } + ], + "responses": { + "200": { + "description": "Resource 'TaskHub' update operation succeeded", + "schema": { + "$ref": "#/definitions/TaskHub" + } + }, + "201": { + "description": "Resource 'TaskHub' create operation succeeded", + "schema": { + "$ref": "#/definitions/TaskHub" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "Validation error: required parameters are missing", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TaskHubs_CreateOrUpdate": { + "$ref": "./examples/TaskHubs_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "TaskHubs_Delete", + "tags": [ + "TaskHubs" + ], + "description": "Delete a Task Hub", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "schedulerName", + "in": "path", + "description": "The name of the Scheduler", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + }, + { + "name": "taskHubName", + "in": "path", + "description": "The name of the TaskHub", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,64}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "TaskHubs_Delete": { + "$ref": "./examples/TaskHubs_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.ResourceManager.CommonTypes.TrackedResourceUpdate": { + "type": "object", + "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" + } + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The status of the current operation", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "The resource is being provisioned" + }, + { + "name": "Updating", + "value": "Updating", + "description": "The resource is updating" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The resource create request has been accepted" + } + ] + }, + "readOnly": true + }, + "RedundancyState": { + "type": "string", + "description": "The state of the resource redundancy", + "enum": [ + "None", + "Zone" + ], + "x-ms-enum": { + "name": "RedundancyState", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "The resource is not redundant" + }, + { + "name": "Zone", + "value": "Zone", + "description": "The resource is zone redundant" + } + ] + } + }, + "Scheduler": { + "type": "object", + "description": "A Durable Task Scheduler resource", + "properties": { + "properties": { + "$ref": "#/definitions/SchedulerProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "SchedulerListResult": { + "type": "object", + "description": "The response of a Scheduler list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Scheduler items on this page", + "items": { + "$ref": "#/definitions/Scheduler" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "SchedulerProperties": { + "type": "object", + "description": "Details of the Scheduler", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation", + "readOnly": true + }, + "endpoint": { + "type": "string", + "description": "URL of the durable task scheduler", + "readOnly": true + }, + "ipAllowlist": { + "type": "array", + "description": "IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR", + "items": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/SchedulerSku", + "description": "SKU of the durable task scheduler" + } + }, + "required": [ + "ipAllowlist", + "sku" + ] + }, + "SchedulerPropertiesUpdate": { + "type": "object", + "description": "Details of the Scheduler", + "properties": { + "ipAllowlist": { + "type": "array", + "description": "IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR", + "items": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/SchedulerSkuUpdate", + "description": "SKU of the durable task scheduler" + } + } + }, + "SchedulerSku": { + "type": "object", + "description": "The SKU (Stock Keeping Unit) assigned to this durable task scheduler", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU" + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy" + }, + "redundancyState": { + "$ref": "#/definitions/RedundancyState", + "description": "Indicates whether the current SKU configuration is zone redundant", + "readOnly": true + } + }, + "required": [ + "name" + ] + }, + "SchedulerSkuUpdate": { + "type": "object", + "description": "The SKU (Stock Keeping Unit) assigned to this durable task scheduler", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU" + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy" + } + } + }, + "SchedulerUpdate": { + "type": "object", + "description": "A Durable Task Scheduler resource", + "properties": { + "properties": { + "$ref": "#/definitions/SchedulerPropertiesUpdate", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.TrackedResourceUpdate" + } + ] + }, + "TaskHub": { + "type": "object", + "description": "A Task Hub resource belonging to the scheduler", + "properties": { + "properties": { + "$ref": "#/definitions/TaskHubProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "TaskHubListResult": { + "type": "object", + "description": "The response of a TaskHub list operation.", + "properties": { + "value": { + "type": "array", + "description": "The TaskHub items on this page", + "items": { + "$ref": "#/definitions/TaskHub" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "TaskHubProperties": { + "type": "object", + "description": "The properties of Task Hub", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation", + "readOnly": true + }, + "dashboardUrl": { + "type": "string", + "format": "uri", + "description": "URL of the durable task scheduler dashboard", + "readOnly": true + } + } + } + }, + "parameters": {} +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Operations_List.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..b2e9c4e50029 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "jqsgzvpbtspnikfz", + "isDataAction": true, + "display": { + "provider": "bosyazksbxugcbsdipxwmdc", + "resource": "texxqckghuv", + "operation": "cwgwrxyusyqdrcbxrlmnjzpwxatuk", + "description": "mqzopqigvcyggcvezqgvyufbd" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/akpblld" + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_CreateOrUpdate.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_CreateOrUpdate.json new file mode 100644 index 000000000000..a50a658a5662 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_CreateOrUpdate.json @@ -0,0 +1,94 @@ +{ + "title": "Schedulers_CreateOrUpdate", + "operationId": "Schedulers_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "resource": { + "location": "northcentralus", + "properties": { + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + } + } + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "fwxpolhofploqzwdooyg", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "fwxpolhofploqzwdooyg", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Delete.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Delete.json new file mode 100644 index 000000000000..05fb5efbda89 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Schedulers_Delete", + "operationId": "Schedulers_Delete", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Get.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Get.json new file mode 100644 index 000000000000..66975f144747 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Get.json @@ -0,0 +1,44 @@ +{ + "title": "Schedulers_Get", + "operationId": "Schedulers_Get", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler" + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "testscheduler", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListByResourceGroup.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListByResourceGroup.json new file mode 100644 index 000000000000..a6d1e835e1e3 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListByResourceGroup.json @@ -0,0 +1,47 @@ +{ + "title": "Schedulers_ListByResourceGroup", + "operationId": "Schedulers_ListByResourceGroup", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key2138": "fjaeecgnvqd" + }, + "name": "testscheduler", + "type": "tglszobjxdhauglzxuqozeg", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListBySubscription.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListBySubscription.json new file mode 100644 index 000000000000..ece2b589d78a --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_ListBySubscription.json @@ -0,0 +1,46 @@ +{ + "title": "Schedulers_ListBySubscription", + "operationId": "Schedulers_ListBySubscription", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key2138": "fjaeecgnvqd" + }, + "name": "testscheduler", + "type": "tglszobjxdhauglzxuqozeg", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Update.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Update.json new file mode 100644 index 000000000000..8bae2c2a977a --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/Schedulers_Update.json @@ -0,0 +1,63 @@ +{ + "title": "Schedulers_Update", + "operationId": "Schedulers_Update", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "properties": { + "tags": { + "key8653": "lr" + }, + "properties": { + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 10 + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "northcentralus", + "properties": { + "provisioningState": "Succeeded", + "endpoint": "https://test.northcentralus.1.durabletask.io", + "ipAllowlist": [ + "10.0.0.0/8" + ], + "sku": { + "name": "Dedicated", + "capacity": 3, + "redundancyState": "Zone" + } + }, + "tags": { + "key7131": "ryohwcoiccwsnewjigfmijz", + "key2138": "fjaeecgnvqd" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler", + "name": "testscheduler", + "type": "vwqdbpynxwfhiopdypuabwvfohnr", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_CreateOrUpdate.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_CreateOrUpdate.json new file mode 100644 index 000000000000..07bdbfecdf68 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_CreateOrUpdate.json @@ -0,0 +1,54 @@ +{ + "title": "TaskHubs_CreateOrUpdate", + "operationId": "TaskHubs_CreateOrUpdate", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtaskhub", + "resource": { + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Delete.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Delete.json new file mode 100644 index 000000000000..0b42f63f827a --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "TaskHubs_Delete", + "operationId": "TaskHubs_Delete", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtuskhub" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Get.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Get.json new file mode 100644 index 000000000000..4aef5a655f26 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_Get.json @@ -0,0 +1,32 @@ +{ + "title": "TaskHubs_Get", + "operationId": "TaskHubs_Get", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testscheduler", + "taskHubName": "testtuskhub" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "name": "testtaskhub", + "type": "afoounwhp", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + } + } +} diff --git a/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_ListByScheduler.json b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_ListByScheduler.json new file mode 100644 index 000000000000..633525868661 --- /dev/null +++ b/specification/durabletask/resource-manager/Microsoft.DurableTask/preview/2024-10-01-preview/examples/TaskHubs_ListByScheduler.json @@ -0,0 +1,36 @@ +{ + "title": "TaskHubs_ListByScheduler", + "operationId": "TaskHubs_ListByScheduler", + "parameters": { + "api-version": "2024-10-01-preview", + "subscriptionId": "EE9BD735-67CE-4A90-89C4-439D3F6A4C93", + "resourceGroupName": "rgopenapi", + "schedulerName": "testtaskhub" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/EE9BD735-67CE-4A90-89C4-439D3F6A4C93/resourceGroups/rgopenapi/providers/Microsoft.DurableTask/schedulers/testscheduler/taskHubs/testtaskhub", + "properties": { + "provisioningState": "Succeeded", + "dashboardUrl": "https://test-db.northcentralus.1.durabletask.io/taskhubs/testtaskhub" + }, + "name": "testtaskhub", + "type": "enkfjxsqktqyeiibofppkxruyb", + "systemData": { + "createdBy": "tenmbevaunjzikxowqexrsx", + "createdByType": "User", + "createdAt": "2024-04-17T15:34:17.365Z", + "lastModifiedBy": "xfvdcegtj", + "lastModifiedByType": "User", + "lastModifiedAt": "2024-04-17T15:34:17.366Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/durabletask/resource-manager/readme.md b/specification/durabletask/resource-manager/readme.md new file mode 100644 index 000000000000..05ba831ab055 --- /dev/null +++ b/specification/durabletask/resource-manager/readme.md @@ -0,0 +1,42 @@ +# Durable Task Service + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for durabletask. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the durabletask. + +```yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2024-10-01-preview +``` + +### Tag: package-2024-10-01-preview + +These settings apply only when `--tag=package-2024-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-10-01-preview' +input-file: + - Microsoft.DurableTask/preview/2024-10-01-preview/durabletask.json +``` + +---