From 618ba3abff3f62cd2acc17851b2b509efccf638a Mon Sep 17 00:00:00 2001 From: Jenny So Date: Sun, 16 Aug 2020 00:52:14 -0700 Subject: [PATCH] make status readonly and add required --- .../preview/2020-09-01-preview/jobs.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/jobs.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/jobs.json index ff7bafe319ff..b8e48eb29b08 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/jobs.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/jobs.json @@ -308,7 +308,15 @@ "type": "object", "properties": { "status": { - "$ref": "#/definitions/JobStatus" + "readOnly": true, + "allOf": [ + { + "$ref": "#/definitions/JobStatus" + } + ], + "x-ms-mutability": [ + "read" + ] }, "codeConfiguration": { "$ref": "#/definitions/CodeConfiguration" @@ -370,7 +378,10 @@ "computeBinding": { "$ref": "#/definitions/ComputeBinding" } - } + }, + "required": [ + "computeBinding" + ] }, "CodeJobCreateResourceArmDto": { "description": "Azure Resource Management create resource envelope.",