From 00f889e51791608148b0029208b8698515af8205 Mon Sep 17 00:00:00 2001 From: Naman Agarwal Date: Mon, 13 Mar 2023 14:14:45 +0530 Subject: [PATCH 1/2] bring back schedule shutdown MLC models --- .../2023-04-01/machineLearningServices.json | 58 +++++++++++++++++-- 1 file changed, 52 insertions(+), 6 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json index 07b2e919b32f..0db3ec926e5d 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json @@ -3669,8 +3669,7 @@ "schedules": { "description": "The list of schedules to be applied on the computes.", "$ref": "#/definitions/ComputeSchedules", - "x-nullable": true, - "readOnly": true + "x-nullable": true }, "enableNodePublicIp": { "type": "boolean", @@ -4890,12 +4889,10 @@ "$ref": "./mfe.json#/definitions/TriggerType" }, "recurrence": { - "description": "Required if triggerType is Recurrence.", - "$ref": "./mfe.json#/definitions/RecurrenceTrigger" + "$ref": "#/definitions/Recurrence" }, "cron": { - "description": "Required if triggerType is Cron.", - "$ref": "./mfe.json#/definitions/CronTrigger" + "$ref": "#/definitions/Cron" }, "schedule": { "description": "[Deprecated] Not used any more.", @@ -4978,6 +4975,55 @@ "modelAsString": true } }, + "Recurrence": { + "type": "object", + "description": "The workflow trigger recurrence for ComputeStartStop schedule type.", + "properties": { + "frequency": { + "description": "[Required] The frequency to trigger schedule.", + "$ref": "./mfe.json#/definitions/RecurrenceFrequency" + }, + "interval": { + "description": "[Required] Specifies schedule interval in conjunction with frequency", + "type": "integer", + "format": "int32" + }, + "startTime": { + "description": "The start time in yyyy-MM-ddTHH:mm:ss format.", + "type": "string", + "x-nullable": true + }, + "timeZone": { + "description": "Specifies time zone in which the schedule runs.\r\nTimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11", + "default": "UTC", + "type": "string" + }, + "schedule": { + "description": "[Required] The recurrence schedule.", + "$ref": "./mfe.json#/definitions/RecurrenceSchedule" + } + } + }, + "Cron": { + "type": "object", + "description": "The workflow trigger cron for ComputeStartStop schedule type.", + "properties": { + "startTime": { + "description": "The start time in yyyy-MM-ddTHH:mm:ss format.", + "type": "string", + "x-nullable": true + }, + "timeZone": { + "description": "Specifies time zone in which the schedule runs.\r\nTimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11", + "type": "string", + "default": "UTC" + }, + "expression": { + "description": "[Required] Specifies cron expression of schedule.\r\nThe expression should follow NCronTab format.", + "type": "string" + } + } + }, "ComputeInstanceDataMount": { "type": "object", "description": "Defines an Aml Instance DataMount.", From 7abb7e6c8045d20f34080c63c92f5fd9b6174dfe Mon Sep 17 00:00:00 2001 From: Naman Agarwal Date: Mon, 13 Mar 2023 14:46:35 +0530 Subject: [PATCH 2/2] add description --- .../stable/2023-04-01/machineLearningServices.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json index 0db3ec926e5d..242e7517ab4f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-04-01/machineLearningServices.json @@ -4889,9 +4889,11 @@ "$ref": "./mfe.json#/definitions/TriggerType" }, "recurrence": { + "description": "Required if triggerType is Recurrence.", "$ref": "#/definitions/Recurrence" }, "cron": { + "description": "Required if triggerType is Cron.", "$ref": "#/definitions/Cron" }, "schedule": {