-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix circular reference 2023-10-01 #25879
Merged
visingla-ms
merged 4 commits into
Azure:release-machinelearningservices-Microsoft.MachineLearningServices-2023-10-01
from
kseager:fix_circular_reference-2023-10-01
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5490,7 +5490,7 @@ | |
}, | ||
"triggerType": { | ||
"description": "[Required] The schedule trigger type.", | ||
"$ref": "./mfe.json#/definitions/TriggerType" | ||
"$ref": "#/definitions/ComputeTriggerType" | ||
}, | ||
"recurrence": { | ||
"description": "Required if triggerType is Recurrence.", | ||
|
@@ -5506,6 +5506,27 @@ | |
} | ||
} | ||
}, | ||
"ComputeTriggerType": { | ||
"enum": [ | ||
"Recurrence", | ||
"Cron" | ||
], | ||
"description": "Is the trigger type recurrence or cron.", | ||
"type": "string", | ||
"x-ms-enum": { | ||
"name": "ComputeTriggerType", | ||
"modelAsString": true, | ||
"values": [ | ||
{ | ||
"value": "Recurrence" | ||
}, | ||
{ | ||
"value": "Cron" | ||
} | ||
] | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"ScheduleBase": { | ||
"type": "object", | ||
"properties": { | ||
|
@@ -5587,7 +5608,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", | ||
|
@@ -5606,10 +5627,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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just FYI, either required or x-ms-nullable does the job. |
||
}, | ||
"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.", | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add description for this type definition here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done