From 33396e1f288fff8528dd9c545c5c0c549ffec35d Mon Sep 17 00:00:00 2001 From: Nneka Okeke <149507727+NneOkeke@users.noreply.github.com> Date: Tue, 23 Jul 2024 01:38:27 -0400 Subject: [PATCH] Move Computeschedule from private to public preview (#29660) * initial commit to clone computeschedule to public repo * changes to fix merge requirement errors * change to address spellcheck * added rpaas to the readme file to meet the RP quality checklist for rpaas RPs * made changes to address comments * address validation failure * changes to address validation of armid errors * made changes to address guid validation errors * removed older versions * added more example files to match private preview * trigger re-run of checks --------- Co-authored-by: Razvan Badea <156206747+razvanbadea-msft@users.noreply.github.com> --- custom-words.txt | 7 +- .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...chinesCancelOperations_MaximumSet_Gen.json | 47 + ...chinesCancelOperations_MinimumSet_Gen.json | 24 + ...hinesExecuteDeallocate_MaximumSet_Gen.json | 59 + ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 + ...chinesExecuteHibernate_MaximumSet_Gen.json | 59 + ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 + ...alMachinesExecuteStart_MaximumSet_Gen.json | 59 + ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 + ...inesGetOperationStatus_MaximumSet_Gen.json | 47 + ...inesGetOperationStatus_MinimumSet_Gen.json | 24 + ...chinesSubmitDeallocate_MaximumSet_Gen.json | 64 + ...chinesSubmitDeallocate_MinimumSet_Gen.json | 32 + ...achinesSubmitHibernate_MaximumSet_Gen.json | 64 + ...achinesSubmitHibernate_MinimumSet_Gen.json | 32 + ...ualMachinesSubmitStart_MaximumSet_Gen.json | 64 + ...ualMachinesSubmitStart_MinimumSet_Gen.json | 32 + .../ComputeSchedule.Management/main.tsp | 29 + .../ComputeSchedule.Management/models.tsp | 378 +++++ .../ComputeSchedule.Management/routes.tsp | 92 ++ .../ComputeSchedule.Management/tspconfig.yaml | 11 + .../2024-06-01-preview/computeschedule.json | 1349 +++++++++++++++++ .../Operations_List_MaximumSet_Gen.json | 28 + .../Operations_List_MinimumSet_Gen.json | 12 + ...chinesCancelOperations_MaximumSet_Gen.json | 47 + ...chinesCancelOperations_MinimumSet_Gen.json | 24 + ...hinesExecuteDeallocate_MaximumSet_Gen.json | 59 + ...hinesExecuteDeallocate_MinimumSet_Gen.json | 27 + ...chinesExecuteHibernate_MaximumSet_Gen.json | 59 + ...chinesExecuteHibernate_MinimumSet_Gen.json | 27 + ...alMachinesExecuteStart_MaximumSet_Gen.json | 59 + ...alMachinesExecuteStart_MinimumSet_Gen.json | 27 + ...inesGetOperationStatus_MaximumSet_Gen.json | 47 + ...inesGetOperationStatus_MinimumSet_Gen.json | 24 + ...chinesSubmitDeallocate_MaximumSet_Gen.json | 64 + ...chinesSubmitDeallocate_MinimumSet_Gen.json | 32 + ...achinesSubmitHibernate_MaximumSet_Gen.json | 64 + ...achinesSubmitHibernate_MinimumSet_Gen.json | 32 + ...ualMachinesSubmitStart_MaximumSet_Gen.json | 64 + ...ualMachinesSubmitStart_MinimumSet_Gen.json | 32 + .../resource-manager/readme.az.md | 28 + .../resource-manager/readme.cli.md | 1 + .../resource-manager/readme.csharp.md | 15 + .../resource-manager/readme.go.md | 11 + .../resource-manager/readme.md | 79 + .../resource-manager/readme.python.md | 18 + .../resource-manager/readme.typescript.md | 14 + 49 files changed, 3487 insertions(+), 1 deletion(-) create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json create mode 100644 specification/computeschedule/ComputeSchedule.Management/main.tsp create mode 100644 specification/computeschedule/ComputeSchedule.Management/models.tsp create mode 100644 specification/computeschedule/ComputeSchedule.Management/routes.tsp create mode 100644 specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/computeschedule.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json create mode 100644 specification/computeschedule/resource-manager/readme.az.md create mode 100644 specification/computeschedule/resource-manager/readme.cli.md create mode 100644 specification/computeschedule/resource-manager/readme.csharp.md create mode 100644 specification/computeschedule/resource-manager/readme.go.md create mode 100644 specification/computeschedule/resource-manager/readme.md create mode 100644 specification/computeschedule/resource-manager/readme.python.md create mode 100644 specification/computeschedule/resource-manager/readme.typescript.md diff --git a/custom-words.txt b/custom-words.txt index 575b10b85ea6..1f21121e61ec 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -593,6 +593,8 @@ corda coreml corent cortana +Correlationid +correlationid cosell cosmosdb costcenter @@ -721,6 +723,7 @@ ddos ddthh deadletter deadlettered +deadlinetype deallocate deallocated deallocates @@ -1613,6 +1616,7 @@ localmachine localmapview localrun localsearch +locationparameter lockdown logalert logalertv1metricmeasurement @@ -2061,6 +2065,7 @@ openstack openxmlformats operationalinsights operationalization +operationids operationresults operationsmanagement operationstatus @@ -4059,4 +4064,4 @@ tpurgent virtualnetworkaddressname VMBM Vmdb -VNIC +VNIC \ No newline at end of file diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..611fd9cdde51 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_ListMax - generated by [MaximumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ennucrkvxylbsli", + "isDataAction": true, + "display": { + "provider": "brssqjspiggui", + "resource": "aujpznmlzjgsyynq", + "operation": "sjldnlycokfcufegoktphlwpvxkx", + "description": "deurosfshmtoujzbhldvflxxkz" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..a354a7ed854b --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_ListMax - generated by [MinimumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json new file mode 100644 index 000000000000..f55b5052cb2d --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -0,0 +1,47 @@ +{ + "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesCancelOperations", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "juzzyocyywfxwakqmgahb", + "requestBody": { + "operationIds": [ + "23480d2f-1dca-4610-afb4-dd25eec1f34r" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ] + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json new file mode 100644 index 000000000000..de6dac36c786 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesCancelOperations", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "lzrfledwkzrp", + "requestBody": { + "operationIds": [ + "01080d2f-1dca-4610-afb4-dd25eec1f3df" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + {} + ] + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json new file mode 100644 index 000000000000..9e5039c4a1cb --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "dspazcfydfdhxer", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eddf1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "lydvixvsrotpqrztll" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json new file mode 100644 index 000000000000..a7b15939d228 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "zanmxbtvfqzqqtywqtnslqxfk", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "description": "anxrfkvievuotqdlmowhn" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json new file mode 100644 index 000000000000..31c5212a8a00 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "az", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "hnyafndkyssbbeyjzhndexmhwdqe" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json new file mode 100644 index 000000000000..f4a339a0a496 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "oowpasegipasucmq", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "description": "dgliqjj" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json new file mode 100644 index 000000000000..e7da1e9585f3 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "cwkjesffxrcxaxbnvqumkjbbymwlpe", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "23230d2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "dtwditzxiiwiqvbaylczcfnvo" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json new file mode 100644 index 000000000000..24c06ac07b57 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "puguskuewwqfrdkmwrnzb", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "description": "p" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..d06fa9e2558a --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -0,0 +1,47 @@ +{ + "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "lfmx", + "requestBody": { + "operationIds": [ + "23480d2f-1dca-4610-afb4-dd25eec1f34" + ], + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource5", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource5", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ] + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json new file mode 100644 index 000000000000..33b3e6f2b009 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "csay", + "requestBody": { + "operationIds": [ + "01080d2f-1dca-4610-afb4-dd25eec1f3df" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + {} + ] + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json new file mode 100644 index 000000000000..ec877e8801b9 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "nynqafujbcjyrtqve", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "lydvixvsrotpqrztll" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json new file mode 100644 index 000000000000..41abbf5b1906 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "gfuns", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "description": "anxrfkvievuotqdlmowhn" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json new file mode 100644 index 000000000000..638ac84434bd --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "jrulwh", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "01080d2f-1dca-4610-afb4-dd25eec1f3c1", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "hnyafndkyssbbeyjzhndexmhwdqe" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json new file mode 100644 index 000000000000..ecca9d847c66 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "pgedjeucp", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "description": "dgliqjj" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json new file mode 100644 index 000000000000..00a63cb04d9e --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "pxbvjarpyzhastophdyu", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "01080d2f-1dca-4610-afb4-dd25eec1f3c1", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "dtwditzxiiwiqvbaylczcfnvo" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json new file mode 100644 index 000000000000..0715b595ba59 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/examples/2024-06-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "vkrnfmvxrtbzgeyqmhtney", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "description": "p" + } + } + } +} diff --git a/specification/computeschedule/ComputeSchedule.Management/main.tsp b/specification/computeschedule/ComputeSchedule.Management/main.tsp new file mode 100644 index 000000000000..7f44d07b17ac --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/main.tsp @@ -0,0 +1,29 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./routes.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +@armProviderNamespace +@service({ + title: "Microsoft.ComputeSchedule", +}) +@doc("Microsoft.ComputeSchedule Resource Provider management API.") +@versioned(Versions) +namespace Microsoft.ComputeSchedule; + +/** ComputeSchedule API versions */ +enum Versions { + /** 2024-06-01-preview version */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + `2024-06-01-preview`, +} diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp new file mode 100644 index 000000000000..cf5e56527233 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -0,0 +1,378 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.ComputeSchedule; + +// ------------------ Enums --------------- +@doc("The types of deadlines supported by ScheduledActions") +union DeadlineType { + @doc("Default value of Unknown.") + Unknown: "Unknown", + + @doc("Initiate the operation at the given deadline.") + InitiateAt: "InitiateAt", + + @doc("Complete the operation by the given deadline.") + CompleteBy: "CompleteBy", + + string, +} + +@doc("The preferences customers can select to optimize their requests to ScheduledActions") +union OptimizationPreference { + @doc("Optimize while considering cost savings") + Cost: "Cost", + + @doc("Optimize while considering availability of resources") + Availability: "Availability", + + @doc("Optimize while considering a balance of cost and availability") + CostAvailabilityBalanced: "CostAvailabilityBalanced", + + string, +} + +@doc("The kind of operation types that can be performed on resources using ScheduledActions") +union ResourceOperationType { + @doc("The default value for this enum type") + Unknown: "Unknown", + + @doc("Start operations on the resources") + Start: "Start", + + @doc("Deallocate operations on the resources") + Deallocate: "Deallocate", + + @doc("Hibernate operations on the resources") + Hibernate: "Hibernate", + + string, +} + +@doc("Values that define the states of operations in Scheduled Actions") +union OperationState { + @doc("The default value for the operation state enum") + Unknown: "Unknown", + + @doc("Operations that are pending scheduling") + PendingScheduling: "PendingScheduling", + + @doc("Operations that have been scheduled") + Scheduled: "Scheduled", + + @doc("Operations that are waiting to be executed") + PendingExecution: "PendingExecution", + + @doc("Operations that are in the process of being executed") + Executing: "Executing", + + @doc("Operations that suceeded") + Succeeded: "Succeeded", + + @doc("Operations that have failed") + Failed: "Failed", + + @doc("Operations that have been cancelled by the user") + Cancelled: "Cancelled", + + @doc("Operations that are blocked") + Blocked: "Blocked", + + string, +} + +// ------------------ Common Values --------------- +alias Params = { + ...ApiVersionParameter; + ...SubscriptionIdParameter; + + @path + @minLength(1) + @segment("locations") + @doc("The location name.") + locationparameter: string; +}; + +// ------------------ Models --------------- +@doc("The schedule details for the user request") +model Schedule { + #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Prefer using `utcDateTime` when representing a datetime unless an offset is necessary." + @doc("The deadline for the operation") + deadLine: offsetDateTime; + + @doc("The timezone for the operation") + timeZone: string; + + @doc("The deadlinetype of the operation, this can either be InitiateAt or CompleteBy") + @extension("x-ms-enum.modelAsString", true) + deadlineType: DeadlineType = DeadlineType.Unknown; +} + +@doc("The resources needed for the user request") +model Resources { + @doc("The resource ids used for the request") + ids: Array; +} + +@doc("The retry policy for the user request") +model RetryPolicy { + @doc("Retry count for user request") + retryCount?: int32; + + @doc("Retry window in minutes for user request") + retryWindowInMinutes?: int32; +} + +@doc("Extra details needed to run the user's request") +model ExecutionParameters { + @doc("Details that could optimize the user's request") + optimizationPreference?: OptimizationPreference; + + @doc("Retry policy the user can pass") + retryPolicy?: RetryPolicy; +} + +@doc("These describe errors that occur at the resource level") +model ResourceOperationError { + @doc("Code for the error eg 404, 500") + errorCode: string; + + @doc("Detailed message about the error") + errorDetails: string; +} + +@doc("The details of a response from an operation on a resource") +model ResourceOperationDetails { + @doc("Operation identifier for the unique operation") + operationId: string; + + @doc("Unique identifier for the resource involved in the operation, eg ArmId") + resourceId: Azure.Core.armResourceIdentifier; + + @doc("Type of operation performed on the resources") + @extension("x-ms-enum.modelAsString", true) + opType: ResourceOperationType = ResourceOperationType.Unknown; + + @doc("Subscription id attached to the request") + subscriptionId: string; + + #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Prefer using `utcDateTime` when representing a datetime unless an offset is necessary." + @doc("Deadline for the operation") + deadline: offsetDateTime; + + @doc("Type of deadline of the operation") + @extension("x-ms-enum.modelAsString", true) + deadlineType: DeadlineType = DeadlineType.Unknown; + + @doc("Current state of the operation") + @extension("x-ms-enum.modelAsString", true) + state: OperationState = OperationState.Unknown; + + @doc("Timezone for the operation") + timeZone?: string; + + @doc("Operation level errors if they exist") + resourceOperationError?: ResourceOperationError; + + #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Prefer using `utcDateTime` when representing a datetime unless an offset is necessary." + @doc("Time the operation was complete if errors are null") + completedAt?: offsetDateTime; + + @doc("Retry policy the user can pass") + retryPolicy?: RetryPolicy; +} + +@doc("High level response from an operation on a resource") +model ResourceOperation { + @doc("Unique identifier for the resource involved in the operation, eg ArmId") + resourceId?: Azure.Core.armResourceIdentifier; + + @doc("Resource level error code if it exists") + errorCode?: string; + + @doc("Resource level error details if they exist") + errorDetails?: string; + + @doc("Details of the operation performed on a resource") + operation?: ResourceOperationDetails; +} + +// ----------- SubmitDeallocate --------- +@doc("The deallocate request for resources") +model SubmitDeallocateRequest { + @doc("The schedule for the request") + schedule: Schedule; + + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("The response from a deallocate request") +model DeallocateResourceOperationResponse { + @doc("The description of the operation response") + description: string; + + @doc("The type of resources used in the deallocate request eg virtual machines") + type: string; + + @doc("The location of the deallocate request eg westus") + @extension("x-ms-mutability", ["read", "create"]) + location: string; + + @extension("x-ms-identifiers", ["resourceId"]) + @doc("The results from the deallocate request if no errors exist") + results?: Array; +} + +// ----------- SubmitStart --------- +@doc("This is the request for start") +model SubmitStartRequest { + @doc("The schedule for the request") + schedule: Schedule; + + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("The response from a start request") +model StartResourceOperationResponse { + @doc("The description of the operation response") + description: string; + + @doc("The type of resources used in the start request eg virtual machines") + type: string; + + @doc("The location of the start request eg westus") + @extension("x-ms-mutability", ["read", "create"]) + location: string; + + @extension("x-ms-identifiers", ["resourceId"]) + @doc("The results from the start request if no errors exist") + results?: Array; +} + +// ----------- SubmitHibernate --------- +@doc("This is the request for hibernate") +model SubmitHibernateRequest { + @doc("The schedule for the request") + schedule: Schedule; + + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("The response from a Hibernate request") +model HibernateResourceOperationResponse { + @doc("The description of the operation response") + description: string; + + @doc("The type of resources used in the Hibernate request eg virtual machines") + type: string; + + @doc("The location of the Hibernate request eg westus") + @extension("x-ms-mutability", ["read", "create"]) + location: string; + + @extension("x-ms-identifiers", ["resourceId"]) + @doc("The results from the Hibernate request if no errors exist") + results?: Array; +} + +// ----------- Execute Operations Request --------- +@doc("The ExecuteDeallocateRequest request for executeDeallocate operations") +model ExecuteDeallocateRequest { + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("The ExecuteHibernateRequest request for executeHibernate operations") +model ExecuteHibernateRequest { + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("The ExecuteStartRequest request for executeStart operations") +model ExecuteStartRequest { + @doc("The execution parameters for the request") + executionParameters: ExecutionParameters; + + @doc("The resources for the request") + resources: Resources; + + @doc("Correlationid item") + correlationid: string; +} + +// ----------- GetOperationStatus --------- +@doc("This is the request to get operation status using operationids") +model GetOperationStatusRequest { + @doc("The list of operation ids to get the status of") + operationIds: Array; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("This is the response from a get operations status request") +model GetOperationStatusResponse { + @extension("x-ms-identifiers", ["resourceId"]) + @doc("An array of resource operations based on their operation ids") + results: Array; +} + +// ----------- CancelOperations --------- +@doc("This is the request to cancel running operations in scheduled actions using the operation ids") +model CancelOperationsRequest { + @doc("The list of operation ids to cancel operations on") + operationIds: Array; + + @doc("Correlationid item") + correlationid: string; +} + +@doc("This is the response from a cancel operations request") +model CancelOperationsResponse { + @extension("x-ms-identifiers", ["resourceId"]) + @doc("An array of resource operations that were successfully cancelled") + results: Array; +} diff --git a/specification/computeschedule/ComputeSchedule.Management/routes.tsp b/specification/computeschedule/ComputeSchedule.Management/routes.tsp new file mode 100644 index 000000000000..42e44b8d7cb3 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/routes.tsp @@ -0,0 +1,92 @@ +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Microsoft.ComputeSchedule; + +interface Operations extends Azure.ResourceManager.Operations {} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Each resource interface must have an @armResourceOperations decorator." +interface ScheduledActions { + // -------------- Routes ------------- + /** virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate") + @post + virtualMachinesSubmitDeallocate( + ...Params, + @body @doc("The request body") requestBody: SubmitDeallocateRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesSubmitHibernate: submitHibernate for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate") + @post + virtualMachinesSubmitHibernate( + ...Params, + @body @doc("The request body") requestBody: SubmitHibernateRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesSubmitStart: submitStart for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart") + @post + virtualMachinesSubmitStart( + ...Params, + @body @doc("The request body") requestBody: SubmitStartRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate") + @post + virtualMachinesExecuteDeallocate( + ...Params, + @body @doc("The request body") requestBody: ExecuteDeallocateRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesExecuteHibernate: executeHibernate for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate") + @post + virtualMachinesExecuteHibernate( + ...Params, + @body @doc("The request body") requestBody: ExecuteHibernateRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesExecuteStart: executeStart for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart") + @post + virtualMachinesExecuteStart( + ...Params, + @body @doc("The request body") requestBody: ExecuteStartRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus") + @post + virtualMachinesGetOperationStatus( + ...Params, + @body @doc("The request body") requestBody: GetOperationStatusRequest, + ): ArmResponse | ErrorResponse; + + /** virtualMachinesCancelOperations: cancelOperations for a virtual machine */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "necessary to avoid standard routing" + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations") + @post + virtualMachinesCancelOperations( + ...Params, + @body @doc("The request body") requestBody: CancelOperationsRequest, + ): ArmResponse | ErrorResponse; +} diff --git a/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml b/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml new file mode 100644 index 000000000000..8c35b32e5278 --- /dev/null +++ b/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml @@ -0,0 +1,11 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/computeschedule.json" + examples-directory: "{project-root}/examples" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/computeschedule.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/computeschedule.json new file mode 100644 index 000000000000..b600d7ff56e2 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/computeschedule.json @@ -0,0 +1,1349 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.ComputeSchedule", + "version": "2024-06-01-preview", + "description": "Microsoft.ComputeSchedule Resource Provider management API.", + "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" + } + ], + "paths": { + "/providers/Microsoft.ComputeSchedule/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_ListMax - generated by [MaximumSet] rule": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_ListMax - generated by [MinimumSet] rule": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesCancelOperations", + "description": "virtualMachinesCancelOperations: cancelOperations for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/CancelOperationsRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/CancelOperationsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", + "description": "virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/ExecuteDeallocateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DeallocateResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", + "description": "virtualMachinesExecuteHibernate: executeHibernate for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/ExecuteHibernateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/HibernateResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesExecuteStart", + "description": "virtualMachinesExecuteStart: executeStart for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/ExecuteStartRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StartResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", + "description": "virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/GetOperationStatusRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GetOperationStatusResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", + "description": "virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/SubmitDeallocateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DeallocateResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", + "description": "virtualMachinesSubmitHibernate: submitHibernate for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/SubmitHibernateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/HibernateResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart": { + "post": { + "operationId": "ScheduledActions_VirtualMachinesSubmitStart", + "description": "virtualMachinesSubmitStart: submitStart for a virtual machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "locationparameter", + "in": "path", + "description": "The location name.", + "required": true, + "type": "string", + "minLength": 1 + }, + { + "name": "requestBody", + "in": "body", + "description": "The request body", + "required": true, + "schema": { + "$ref": "#/definitions/SubmitStartRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StartResourceOperationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json" + }, + "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule": { + "$ref": "./examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json" + } + } + } + } + }, + "definitions": { + "CancelOperationsRequest": { + "type": "object", + "description": "This is the request to cancel running operations in scheduled actions using the operation ids", + "properties": { + "operationIds": { + "type": "array", + "description": "The list of operation ids to cancel operations on", + "items": { + "type": "string" + } + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "operationIds", + "correlationid" + ] + }, + "CancelOperationsResponse": { + "type": "object", + "description": "This is the response from a cancel operations request", + "properties": { + "results": { + "type": "array", + "description": "An array of resource operations that were successfully cancelled", + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "x-ms-identifiers": [ + "resourceId" + ] + } + }, + "required": [ + "results" + ] + }, + "DeadlineType": { + "type": "string", + "description": "The types of deadlines supported by ScheduledActions", + "enum": [ + "Unknown", + "InitiateAt", + "CompleteBy" + ], + "x-ms-enum": { + "name": "DeadlineType", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Default value of Unknown." + }, + { + "name": "InitiateAt", + "value": "InitiateAt", + "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." + } + ] + } + }, + "DeallocateResourceOperationResponse": { + "type": "object", + "description": "The response from a deallocate request", + "properties": { + "description": { + "type": "string", + "description": "The description of the operation response" + }, + "type": { + "type": "string", + "description": "The type of resources used in the deallocate request eg virtual machines" + }, + "location": { + "type": "string", + "description": "The location of the deallocate request eg westus", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "results": { + "type": "array", + "description": "The results from the deallocate request if no errors exist", + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "x-ms-identifiers": [ + "resourceId" + ] + } + }, + "required": [ + "description", + "type", + "location" + ] + }, + "ExecuteDeallocateRequest": { + "type": "object", + "description": "The ExecuteDeallocateRequest request for executeDeallocate operations", + "properties": { + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "executionParameters", + "resources", + "correlationid" + ] + }, + "ExecuteHibernateRequest": { + "type": "object", + "description": "The ExecuteHibernateRequest request for executeHibernate operations", + "properties": { + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "executionParameters", + "resources", + "correlationid" + ] + }, + "ExecuteStartRequest": { + "type": "object", + "description": "The ExecuteStartRequest request for executeStart operations", + "properties": { + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "executionParameters", + "resources", + "correlationid" + ] + }, + "ExecutionParameters": { + "type": "object", + "description": "Extra details needed to run the user's request", + "properties": { + "optimizationPreference": { + "$ref": "#/definitions/OptimizationPreference", + "description": "Details that could optimize the user's request" + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "Retry policy the user can pass" + } + } + }, + "GetOperationStatusRequest": { + "type": "object", + "description": "This is the request to get operation status using operationids", + "properties": { + "operationIds": { + "type": "array", + "description": "The list of operation ids to get the status of", + "items": { + "type": "string" + } + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "operationIds", + "correlationid" + ] + }, + "GetOperationStatusResponse": { + "type": "object", + "description": "This is the response from a get operations status request", + "properties": { + "results": { + "type": "array", + "description": "An array of resource operations based on their operation ids", + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "x-ms-identifiers": [ + "resourceId" + ] + } + }, + "required": [ + "results" + ] + }, + "HibernateResourceOperationResponse": { + "type": "object", + "description": "The response from a Hibernate request", + "properties": { + "description": { + "type": "string", + "description": "The description of the operation response" + }, + "type": { + "type": "string", + "description": "The type of resources used in the Hibernate request eg virtual machines" + }, + "location": { + "type": "string", + "description": "The location of the Hibernate request eg westus", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "results": { + "type": "array", + "description": "The results from the Hibernate request if no errors exist", + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "x-ms-identifiers": [ + "resourceId" + ] + } + }, + "required": [ + "description", + "type", + "location" + ] + }, + "OperationState": { + "type": "string", + "description": "Values that define the states of operations in Scheduled Actions", + "enum": [ + "Unknown", + "PendingScheduling", + "Scheduled", + "PendingExecution", + "Executing", + "Succeeded", + "Failed", + "Cancelled", + "Blocked" + ], + "x-ms-enum": { + "name": "OperationState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The default value for the operation state enum" + }, + { + "name": "PendingScheduling", + "value": "PendingScheduling", + "description": "Operations that are pending scheduling" + }, + { + "name": "Scheduled", + "value": "Scheduled", + "description": "Operations that have been scheduled" + }, + { + "name": "PendingExecution", + "value": "PendingExecution", + "description": "Operations that are waiting to be executed" + }, + { + "name": "Executing", + "value": "Executing", + "description": "Operations that are in the process of being executed" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Operations that suceeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operations that have failed" + }, + { + "name": "Cancelled", + "value": "Cancelled", + "description": "Operations that have been cancelled by the user" + }, + { + "name": "Blocked", + "value": "Blocked", + "description": "Operations that are blocked" + } + ] + } + }, + "OptimizationPreference": { + "type": "string", + "description": "The preferences customers can select to optimize their requests to ScheduledActions", + "enum": [ + "Cost", + "Availability", + "CostAvailabilityBalanced" + ], + "x-ms-enum": { + "name": "OptimizationPreference", + "modelAsString": true, + "values": [ + { + "name": "Cost", + "value": "Cost", + "description": "Optimize while considering cost savings" + }, + { + "name": "Availability", + "value": "Availability", + "description": "Optimize while considering availability of resources" + }, + { + "name": "CostAvailabilityBalanced", + "value": "CostAvailabilityBalanced", + "description": "Optimize while considering a balance of cost and availability" + } + ] + } + }, + "ResourceOperation": { + "type": "object", + "description": "High level response from an operation on a resource", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Unique identifier for the resource involved in the operation, eg ArmId" + }, + "errorCode": { + "type": "string", + "description": "Resource level error code if it exists" + }, + "errorDetails": { + "type": "string", + "description": "Resource level error details if they exist" + }, + "operation": { + "$ref": "#/definitions/ResourceOperationDetails", + "description": "Details of the operation performed on a resource" + } + } + }, + "ResourceOperationDetails": { + "type": "object", + "description": "The details of a response from an operation on a resource", + "properties": { + "operationId": { + "type": "string", + "description": "Operation identifier for the unique operation" + }, + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "Unique identifier for the resource involved in the operation, eg ArmId" + }, + "opType": { + "type": "string", + "description": "Type of operation performed on the resources", + "default": "Unknown", + "enum": [ + "Unknown", + "Start", + "Deallocate", + "Hibernate" + ], + "x-ms-enum": { + "name": "ResourceOperationType", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The default value for this enum type" + }, + { + "name": "Start", + "value": "Start", + "description": "Start operations on the resources" + }, + { + "name": "Deallocate", + "value": "Deallocate", + "description": "Deallocate operations on the resources" + }, + { + "name": "Hibernate", + "value": "Hibernate", + "description": "Hibernate operations on the resources" + } + ] + }, + "x-ms-enum.modelAsString": true + }, + "subscriptionId": { + "type": "string", + "description": "Subscription id attached to the request" + }, + "deadline": { + "type": "string", + "format": "date-time", + "description": "Deadline for the operation" + }, + "deadlineType": { + "type": "string", + "description": "Type of deadline of the operation", + "default": "Unknown", + "enum": [ + "Unknown", + "InitiateAt", + "CompleteBy" + ], + "x-ms-enum": { + "name": "DeadlineType", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Default value of Unknown." + }, + { + "name": "InitiateAt", + "value": "InitiateAt", + "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." + } + ] + }, + "x-ms-enum.modelAsString": true + }, + "state": { + "type": "string", + "description": "Current state of the operation", + "default": "Unknown", + "enum": [ + "Unknown", + "PendingScheduling", + "Scheduled", + "PendingExecution", + "Executing", + "Succeeded", + "Failed", + "Cancelled", + "Blocked" + ], + "x-ms-enum": { + "name": "OperationState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The default value for the operation state enum" + }, + { + "name": "PendingScheduling", + "value": "PendingScheduling", + "description": "Operations that are pending scheduling" + }, + { + "name": "Scheduled", + "value": "Scheduled", + "description": "Operations that have been scheduled" + }, + { + "name": "PendingExecution", + "value": "PendingExecution", + "description": "Operations that are waiting to be executed" + }, + { + "name": "Executing", + "value": "Executing", + "description": "Operations that are in the process of being executed" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Operations that suceeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operations that have failed" + }, + { + "name": "Cancelled", + "value": "Cancelled", + "description": "Operations that have been cancelled by the user" + }, + { + "name": "Blocked", + "value": "Blocked", + "description": "Operations that are blocked" + } + ] + }, + "x-ms-enum.modelAsString": true + }, + "timeZone": { + "type": "string", + "description": "Timezone for the operation" + }, + "resourceOperationError": { + "$ref": "#/definitions/ResourceOperationError", + "description": "Operation level errors if they exist" + }, + "completedAt": { + "type": "string", + "format": "date-time", + "description": "Time the operation was complete if errors are null" + }, + "retryPolicy": { + "$ref": "#/definitions/RetryPolicy", + "description": "Retry policy the user can pass" + } + }, + "required": [ + "operationId", + "resourceId", + "opType", + "subscriptionId", + "deadline", + "deadlineType", + "state" + ] + }, + "ResourceOperationError": { + "type": "object", + "description": "These describe errors that occur at the resource level", + "properties": { + "errorCode": { + "type": "string", + "description": "Code for the error eg 404, 500" + }, + "errorDetails": { + "type": "string", + "description": "Detailed message about the error" + } + }, + "required": [ + "errorCode", + "errorDetails" + ] + }, + "ResourceOperationType": { + "type": "string", + "description": "The kind of operation types that can be performed on resources using ScheduledActions", + "enum": [ + "Unknown", + "Start", + "Deallocate", + "Hibernate" + ], + "x-ms-enum": { + "name": "ResourceOperationType", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "The default value for this enum type" + }, + { + "name": "Start", + "value": "Start", + "description": "Start operations on the resources" + }, + { + "name": "Deallocate", + "value": "Deallocate", + "description": "Deallocate operations on the resources" + }, + { + "name": "Hibernate", + "value": "Hibernate", + "description": "Hibernate operations on the resources" + } + ] + } + }, + "Resources": { + "type": "object", + "description": "The resources needed for the user request", + "properties": { + "ids": { + "type": "array", + "description": "The resource ids used for the request", + "items": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource." + } + } + }, + "required": [ + "ids" + ] + }, + "RetryPolicy": { + "type": "object", + "description": "The retry policy for the user request", + "properties": { + "retryCount": { + "type": "integer", + "format": "int32", + "description": "Retry count for user request" + }, + "retryWindowInMinutes": { + "type": "integer", + "format": "int32", + "description": "Retry window in minutes for user request" + } + } + }, + "Schedule": { + "type": "object", + "description": "The schedule details for the user request", + "properties": { + "deadLine": { + "type": "string", + "format": "date-time", + "description": "The deadline for the operation" + }, + "timeZone": { + "type": "string", + "description": "The timezone for the operation" + }, + "deadlineType": { + "type": "string", + "description": "The deadlinetype of the operation, this can either be InitiateAt or CompleteBy", + "default": "Unknown", + "enum": [ + "Unknown", + "InitiateAt", + "CompleteBy" + ], + "x-ms-enum": { + "name": "DeadlineType", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Default value of Unknown." + }, + { + "name": "InitiateAt", + "value": "InitiateAt", + "description": "Initiate the operation at the given deadline." + }, + { + "name": "CompleteBy", + "value": "CompleteBy", + "description": "Complete the operation by the given deadline." + } + ] + }, + "x-ms-enum.modelAsString": true + } + }, + "required": [ + "deadLine", + "timeZone", + "deadlineType" + ] + }, + "StartResourceOperationResponse": { + "type": "object", + "description": "The response from a start request", + "properties": { + "description": { + "type": "string", + "description": "The description of the operation response" + }, + "type": { + "type": "string", + "description": "The type of resources used in the start request eg virtual machines" + }, + "location": { + "type": "string", + "description": "The location of the start request eg westus", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "results": { + "type": "array", + "description": "The results from the start request if no errors exist", + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "x-ms-identifiers": [ + "resourceId" + ] + } + }, + "required": [ + "description", + "type", + "location" + ] + }, + "SubmitDeallocateRequest": { + "type": "object", + "description": "The deallocate request for resources", + "properties": { + "schedule": { + "$ref": "#/definitions/Schedule", + "description": "The schedule for the request" + }, + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "schedule", + "executionParameters", + "resources", + "correlationid" + ] + }, + "SubmitHibernateRequest": { + "type": "object", + "description": "This is the request for hibernate", + "properties": { + "schedule": { + "$ref": "#/definitions/Schedule", + "description": "The schedule for the request" + }, + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "schedule", + "executionParameters", + "resources", + "correlationid" + ] + }, + "SubmitStartRequest": { + "type": "object", + "description": "This is the request for start", + "properties": { + "schedule": { + "$ref": "#/definitions/Schedule", + "description": "The schedule for the request" + }, + "executionParameters": { + "$ref": "#/definitions/ExecutionParameters", + "description": "The execution parameters for the request" + }, + "resources": { + "$ref": "#/definitions/Resources", + "description": "The resources for the request" + }, + "correlationid": { + "type": "string", + "description": "Correlationid item" + } + }, + "required": [ + "schedule", + "executionParameters", + "resources", + "correlationid" + ] + } + }, + "parameters": {} +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..611fd9cdde51 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_ListMax - generated by [MaximumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ennucrkvxylbsli", + "isDataAction": true, + "display": { + "provider": "brssqjspiggui", + "resource": "aujpznmlzjgsyynq", + "operation": "sjldnlycokfcufegoktphlwpvxkx", + "description": "deurosfshmtoujzbhldvflxxkz" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..a354a7ed854b --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_ListMax - generated by [MinimumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-06-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json new file mode 100644 index 000000000000..f55b5052cb2d --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json @@ -0,0 +1,47 @@ +{ + "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesCancelOperations", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "juzzyocyywfxwakqmgahb", + "requestBody": { + "operationIds": [ + "23480d2f-1dca-4610-afb4-dd25eec1f34r" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource1", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ] + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json new file mode 100644 index 000000000000..de6dac36c786 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ScheduledActions_VirtualMachinesCancelOperations - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesCancelOperations", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "lzrfledwkzrp", + "requestBody": { + "operationIds": [ + "01080d2f-1dca-4610-afb4-dd25eec1f3df" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + {} + ] + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json new file mode 100644 index 000000000000..9e5039c4a1cb --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "dspazcfydfdhxer", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eddf1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "lydvixvsrotpqrztll" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json new file mode 100644 index 000000000000..a7b15939d228 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteDeallocate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "zanmxbtvfqzqqtywqtnslqxfk", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "description": "anxrfkvievuotqdlmowhn" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json new file mode 100644 index 000000000000..31c5212a8a00 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "az", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "hnyafndkyssbbeyjzhndexmhwdqe" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json new file mode 100644 index 000000000000..f4a339a0a496 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteHibernate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "oowpasegipasucmq", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "description": "dgliqjj" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json new file mode 100644 index 000000000000..e7da1e9585f3 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "cwkjesffxrcxaxbnvqumkjbbymwlpe", + "requestBody": { + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "23230d2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "dtwditzxiiwiqvbaylczcfnvo" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json new file mode 100644 index 000000000000..24c06ac07b57 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json @@ -0,0 +1,27 @@ +{ + "title": "ScheduledActions_VirtualMachinesExecuteStart - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesExecuteStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "puguskuewwqfrdkmwrnzb", + "requestBody": { + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "description": "p" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json new file mode 100644 index 000000000000..d06fa9e2558a --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json @@ -0,0 +1,47 @@ +{ + "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "lfmx", + "requestBody": { + "operationIds": [ + "23480d2f-1dca-4610-afb4-dd25eec1f34" + ], + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource5", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource5", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ] + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json new file mode 100644 index 000000000000..33b3e6f2b009 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json @@ -0,0 +1,24 @@ +{ + "title": "ScheduledActions_VirtualMachinesGetOperationStatus - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesGetOperationStatus", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "csay", + "requestBody": { + "operationIds": [ + "01080d2f-1dca-4610-afb4-dd25eec1f3df" + ], + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "results": [ + {} + ] + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json new file mode 100644 index 000000000000..ec877e8801b9 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "nynqafujbcjyrtqve", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "23480d2f-1dca-4610-afb4-dd25eec1f34", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "lydvixvsrotpqrztll" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json new file mode 100644 index 000000000000..41abbf5b1906 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitDeallocate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitDeallocate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "gfuns", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource2" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "eokrhxypminzcgplibblmwojvjd", + "location": "qbbvrdisvjgxirnzdvdsodkt", + "description": "anxrfkvievuotqdlmowhn" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json new file mode 100644 index 000000000000..638ac84434bd --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "jrulwh", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "23519o2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "01080d2f-1dca-4610-afb4-dd25eec1f3c1", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "hnyafndkyssbbeyjzhndexmhwdqe" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json new file mode 100644 index 000000000000..ecca9d847c66 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitHibernate - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitHibernate", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "pgedjeucp", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "mkmgbfpkiudefzhdppgjmqztx", + "location": "rvlnzczpesuvusbmbcjctzcinzlr", + "description": "dgliqjj" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json new file mode 100644 index 000000000000..00a63cb04d9e --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json @@ -0,0 +1,64 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MaximumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "pxbvjarpyzhastophdyu", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": { + "optimizationPreference": "Cost", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + }, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "23480d2f-1dca-4610-afb4-dd25eec1f34" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "results": [ + { + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "errorCode": "pliurpaykwv", + "errorDetails": "mbqwkpxl", + "operation": { + "operationId": "01080d2f-1dca-4610-afb4-dd25eec1f3c1", + "resourceId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4", + "opType": "Unknown", + "subscriptionId": "52C81249-550F-459E-9B6E-5BAB6EE62227", + "deadline": "2024-07-12T18:06:52.974Z", + "deadlineType": "Unknown", + "state": "Unknown", + "timeZone": "lsoalxijilbrqum", + "resourceOperationError": { + "errorCode": "fticyqukvkillwd", + "errorDetails": "yimgxqrkp" + }, + "completedAt": "2024-07-12T18:06:52.974Z", + "retryPolicy": { + "retryCount": 30, + "retryWindowInMinutes": 27 + } + } + } + ], + "description": "dtwditzxiiwiqvbaylczcfnvo" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json new file mode 100644 index 000000000000..0715b595ba59 --- /dev/null +++ b/specification/computeschedule/resource-manager/Microsoft.ComputeSchedule/preview/2024-06-01-preview/examples/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json @@ -0,0 +1,32 @@ +{ + "title": "ScheduledActions_VirtualMachinesSubmitStart - generated by [MinimumSet] rule", + "operationId": "ScheduledActions_VirtualMachinesSubmitStart", + "parameters": { + "api-version": "2024-06-01-preview", + "subscriptionId": "DE84A209-5715-43E7-BC76-3E208A9A82C5", + "locationparameter": "vkrnfmvxrtbzgeyqmhtney", + "requestBody": { + "schedule": { + "deadLine": "2024-07-12T18:06:53.361Z", + "timeZone": "zlcujrtgxtgyik", + "deadlineType": "Unknown" + }, + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4" + ] + }, + "correlationid": "01080d2f-1dca-4610-afb4-dd25eec1f3c1" + } + }, + "responses": { + "200": { + "body": { + "type": "gxmnjtgu", + "location": "uvlidhowwv", + "description": "p" + } + } + } +} diff --git a/specification/computeschedule/resource-manager/readme.az.md b/specification/computeschedule/resource-manager/readme.az.md new file mode 100644 index 000000000000..54e21d2d72a0 --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: computeschedule + namespace: azure.mgmt.computeschedule + package-name: azure-mgmt-computeschedule +az-output-folder: $(azure-cli-extension-folder)/src/computeschedule +python-sdk-output-folder: "$(az-output-folder)/azext_computeschedule/vendored_sdks/computeschedule" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: computeschedule + namespace: azure.mgmt.computeschedule + package-name: azure-mgmt-computeschedule +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/computeschedule +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/computeschedule" +``` \ No newline at end of file diff --git a/specification/computeschedule/resource-manager/readme.cli.md b/specification/computeschedule/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/computeschedule/resource-manager/readme.csharp.md b/specification/computeschedule/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..9c41bc65fbab --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.ComputeSchedule + output-folder: $(csharp-sdks-folder)/computeschedule/management/Microsoft.ComputeSchedule/GeneratedProtocol +``` diff --git a/specification/computeschedule/resource-manager/readme.go.md b/specification/computeschedule/resource-manager/readme.go.md new file mode 100644 index 000000000000..1e706f6a8ae5 --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/computeschedule/armcomputeschedule +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/computeschedule/resource-manager/readme.md b/specification/computeschedule/resource-manager/readme.md new file mode 100644 index 000000000000..f11f9d858d3d --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.md @@ -0,0 +1,79 @@ +# computeschedule + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for computeschedule. + +## 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 computeschedule. + +```yaml +openapi-subtype: rpaas +openapi-type: arm +tag: package-2024-06-01-preview +``` + +### Tag: package-2024-06-01-preview + +These settings apply only when `--tag=package-2024-06-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-06-01-preview' +input-file: + - Microsoft.ComputeSchedule/preview/2024-06-01-preview/computeschedule.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions + - repo: azure-powershell +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/computeschedule/resource-manager/readme.python.md b/specification/computeschedule/resource-manager/readme.python.md new file mode 100644 index 000000000000..3ee8a4d6ec4a --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.python.md @@ -0,0 +1,18 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-computeschedule +namespace: azure.mgmt.computeschedule +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/computeschedule/azure-mgmt-computeschedule/azure/mgmt/computeschedule +``` diff --git a/specification/computeschedule/resource-manager/readme.typescript.md b/specification/computeschedule/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..c784c6bcfc8b --- /dev/null +++ b/specification/computeschedule/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-computeschedule" + output-folder: "$(typescript-sdks-folder)/sdk/computeschedule/arm-computeschedule" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```