From 779b18ac7c79acec24f7d4113623bffb38866dc0 Mon Sep 17 00:00:00 2001 From: Kayla Seager <1675997+kseager@users.noreply.github.com> Date: Fri, 22 Sep 2023 07:55:01 -0700 Subject: [PATCH] August-2023-preview fix circular reference (#25870) * TriggerType->ComputeTriggerType * RecurrenceFrequency->ComputeRecurrenceFrequency * RecurrenceSchedule->ComputeRecurrenceSchedule --------- Co-authored-by: Kayla Ames --- .../machineLearningServices.json | 155 +++++++++++++++++- 1 file changed, 152 insertions(+), 3 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/machineLearningServices.json index c6ca4e8cd054..76ba30bc191e 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-08-01-preview/machineLearningServices.json @@ -3395,7 +3395,7 @@ }, "triggerType": { "description": "[Required] The schedule trigger type.", - "$ref": "./mfe.json#/definitions/TriggerType" + "$ref": "#/definitions/ComputeTriggerType" }, "recurrence": { "description": "Required if triggerType is Recurrence.", @@ -3411,6 +3411,26 @@ } } }, + "ComputeTriggerType": { + "enum": [ + "Recurrence", + "Cron" + ], + "type": "string", + "x-ms-enum": { + "name": "ComputeTriggerType", + "modelAsString": true, + "values": [ + { + "value": "Recurrence" + }, + { + "value": "Cron" + } + ] + }, + "additionalProperties": false + }, "ScheduleBase": { "type": "object", "properties": { @@ -3492,7 +3512,7 @@ "properties": { "frequency": { "description": "[Required] The frequency to trigger schedule.", - "$ref": "./mfe.json#/definitions/RecurrenceFrequency" + "$ref": "#/definitions/ComputeRecurrenceFrequency" }, "interval": { "description": "[Required] Specifies schedule interval in conjunction with frequency", @@ -3511,10 +3531,139 @@ }, "schedule": { "description": "[Required] The recurrence schedule.", - "$ref": "./mfe.json#/definitions/RecurrenceSchedule" + "$ref": "#/definitions/ComputeRecurrenceSchedule" } } }, + "ComputeRecurrenceFrequency": { + "description": "Enum to describe the frequency of a compute recurrence schedule", + "enum": [ + "Minute", + "Hour", + "Day", + "Week", + "Month" + ], + "type": "string", + "x-ms-enum": { + "name": "ComputeRecurrenceFrequency", + "modelAsString": true, + "values": [ + { + "value": "Minute", + "description": "Minute frequency" + }, + { + "value": "Hour", + "description": "Hour frequency" + }, + { + "value": "Day", + "description": "Day frequency" + }, + { + "value": "Week", + "description": "Week frequency" + }, + { + "value": "Month", + "description": "Month frequency" + } + ] + }, + "additionalProperties": false + }, + "ComputeRecurrenceSchedule": { + "required": [ + "hours", + "minutes" + ], + "type": "object", + "properties": { + "hours": { + "description": "[Required] List of hours for the schedule.", + "type": "array", + "items": { + "format": "int32", + "type": "integer" + } + }, + "minutes": { + "description": "[Required] List of minutes for the schedule.", + "type": "array", + "items": { + "format": "int32", + "type": "integer" + } + }, + "monthDays": { + "description": "List of month days for the schedule", + "type": "array", + "items": { + "format": "int32", + "type": "integer" + }, + "x-nullable": true + }, + "weekDays": { + "description": "List of days for the schedule.", + "type": "array", + "items": { + "$ref": "#/definitions/ComputeWeekDay" + }, + "x-nullable": true + } + }, + "additionalProperties": false + }, + "ComputeWeekDay": { + "description": "Enum of weekday", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string", + "x-ms-enum": { + "name": "ComputeWeekDay", + "modelAsString": true, + "values": [ + { + "value": "Monday", + "description": "Monday weekday" + }, + { + "value": "Tuesday", + "description": "Tuesday weekday" + }, + { + "value": "Wednesday", + "description": "Wednesday weekday" + }, + { + "value": "Thursday", + "description": "Thursday weekday" + }, + { + "value": "Friday", + "description": "Friday weekday" + }, + { + "value": "Saturday", + "description": "Saturday weekday" + }, + { + "value": "Sunday", + "description": "Sunday weekday" + } + ] + }, + "additionalProperties": false + }, "Cron": { "type": "object", "description": "The workflow trigger cron for ComputeStartStop schedule type.",