From d4aa7a04d1ddef525c3b49bc141b3959e44105dc Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Wed, 19 Jan 2022 10:44:39 -0800 Subject: [PATCH 1/9] try to fix mutability error --- .../stable/2021-10-01/mfe.json | 82 +++++++++---------- 1 file changed, 37 insertions(+), 45 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 2b54ce1abbeb..78366a0fe982 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -5543,11 +5543,7 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint deployment.", - "$ref": "#/definitions/DeploymentProvisioningState", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/DeploymentProvisioningState" }, "resources": { "description": "Indicates compute configuration for the job.\r\nIf not provided, will default to the defaults defined in ResourceConfiguration.", @@ -5629,11 +5625,7 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint.", - "$ref": "#/definitions/EndpointProvisioningState", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/EndpointProvisioningState" } }, "x-ms-client-name": "BatchEndpointDetails", @@ -6707,7 +6699,11 @@ "name": "DeploymentProvisioningState", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "DistributionConfiguration": { "description": "Base definition for job distribution configuration.", @@ -6974,7 +6970,11 @@ "name": "EndpointProvisioningState", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "EnvironmentContainer": { "description": "Container for environment specification versions.", @@ -7036,7 +7036,11 @@ "name": "EnvironmentType", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "EnvironmentVersion": { "description": "Environment version details.", @@ -7065,11 +7069,7 @@ }, "environmentType": { "description": "Environment type is either user managed or curated by the Azure ML service\r\n", - "$ref": "#/definitions/EnvironmentType", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/EnvironmentType" }, "image": { "description": "Name of the image that will be used for the environment.\r\n", @@ -7330,11 +7330,7 @@ }, "status": { "description": "Status of the job.", - "$ref": "#/definitions/JobStatus", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/JobStatus" } }, "discriminator": "jobType", @@ -7608,19 +7604,11 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "$ref": "#/definitions/OutputDataDeliveryMode", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/OutputDataDeliveryMode" }, "uri": { "description": "Uri path.", "$ref": "#/definitions/UriReference", - "readOnly": true, - "x-ms-mutability": [ - "read" - ], "x-nullable": true } }, @@ -7712,7 +7700,11 @@ "name": "JobStatus", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "JobType": { "description": "Enum to determine the type of job.", @@ -8061,11 +8053,7 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint deployment.", - "$ref": "#/definitions/DeploymentProvisioningState", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/DeploymentProvisioningState" }, "readinessProbe": { "description": "Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.", @@ -8157,11 +8145,7 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint.", - "$ref": "#/definitions/EndpointProvisioningState", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/EndpointProvisioningState" }, "traffic": { "description": "Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.", @@ -8303,7 +8287,11 @@ "name": "OutputDataDeliveryMode", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "OutputPathAssetReference": { "description": "Reference to an asset via its path in a job output.", @@ -9660,7 +9648,11 @@ "x-nullable": true } }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "UserAssignedIdentityMeta": { "description": "User assigned identities associated with a resource.", From 86f79106953cd22673afb359482665d3faa54644 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Wed, 19 Jan 2022 10:59:55 -0800 Subject: [PATCH 2/9] fix mutability issue again --- .../stable/2021-10-01/mfe.json | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 78366a0fe982..19a22e9fdfe8 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -7604,11 +7604,19 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "$ref": "#/definitions/OutputDataDeliveryMode" + "$ref": "#/definitions/OutputDataDeliveryMode", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "uri": { "description": "Uri path.", "$ref": "#/definitions/UriReference", + "readOnly": true, + "x-ms-mutability": [ + "read" + ], "x-nullable": true } }, @@ -8287,11 +8295,7 @@ "name": "OutputDataDeliveryMode", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "OutputPathAssetReference": { "description": "Reference to an asset via its path in a job output.", @@ -9632,27 +9636,15 @@ "file": { "description": "Single file uri path", "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], "x-nullable": true }, "folder": { "description": "Folder uri path", "type": "string", - "x-ms-mutability": [ - "create", - "read" - ], "x-nullable": true } }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "UserAssignedIdentityMeta": { "description": "User assigned identities associated with a resource.", From 52083e42107a50b9e4c1a1d9e5fb7ffd50bed9b0 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:16:12 -0800 Subject: [PATCH 3/9] try fix mutability error --- .../stable/2021-10-01/mfe.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 19a22e9fdfe8..42224eb5490a 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -7570,7 +7570,11 @@ "mode": { "description": "Output Delivery Mode.", "default": "ReadWriteMount", - "$ref": "#/definitions/OutputDataDeliveryMode", + "allOf":[ + { + "$ref": "#/definitions/OutputDataDeliveryMode" + } + ], "x-ms-mutability": [ "create", "read" @@ -7604,7 +7608,11 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "$ref": "#/definitions/OutputDataDeliveryMode", + "allOf":[ + { + "$ref": "#/definitions/OutputDataDeliveryMode" + } + ], "readOnly": true, "x-ms-mutability": [ "read" @@ -7612,7 +7620,11 @@ }, "uri": { "description": "Uri path.", - "$ref": "#/definitions/UriReference", + "allOf":[ + { + "$ref": "#/definitions/UriReference" + } + ], "readOnly": true, "x-ms-mutability": [ "read" From 6035a5b4f864482dc90f8b4db3526e0bda475a24 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:25:38 -0800 Subject: [PATCH 4/9] suppress wrong error for pageable itemName override --- .../machinelearningservices/resource-manager/readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/machinelearningservices/resource-manager/readme.md b/specification/machinelearningservices/resource-manager/readme.md index 8ce1825d227f..eb1789b5afad 100644 --- a/specification/machinelearningservices/resource-manager/readme.md +++ b/specification/machinelearningservices/resource-manager/readme.md @@ -41,6 +41,15 @@ input-file: - Microsoft.MachineLearningServices/stable/2021-10-01/workspaceFeatures.json ``` +## Suppression + +``` yaml +directive: + - suppress: R3008 + from: machineLearningServices.json + reason: The pageable itemName override is not considered by the LintDiff check correctly. +``` + ### Tag: package-2022-01-01-preview These settings apply only when `--tag=package-2022-01-01-preview` is specified on the command line. From 5464fc194b3740f671a259bc74aa357bf2078351 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Thu, 20 Jan 2022 11:59:11 -0800 Subject: [PATCH 5/9] fix 3011 error --- .../Job/CommandJob/createOrUpdate.json | 18 +++++------ .../examples/Job/CommandJob/get.json | 6 ++-- .../examples/Job/CommandJob/list.json | 6 ++-- .../Job/PipelineJob/createOrUpdate.json | 30 +++++++++---------- .../examples/Job/PipelineJob/get.json | 10 +++---- .../examples/Job/PipelineJob/list.json | 10 +++---- .../examples/ModelVersion/list.json | 4 +-- 7 files changed, 42 insertions(+), 42 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json index e7547471333a..f2441ca2581f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json @@ -7,7 +7,7 @@ "api-version": "2021-10-01", "body": { "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -42,7 +42,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -50,7 +50,7 @@ }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } @@ -81,7 +81,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -120,7 +120,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -128,7 +128,7 @@ }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } @@ -169,7 +169,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -208,7 +208,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -216,7 +216,7 @@ }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json index 270ebaa04b97..f5ad3ca6e2b4 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json @@ -14,7 +14,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -53,7 +53,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -61,7 +61,7 @@ }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json index b42845c45058..e7e99387ce92 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json @@ -18,7 +18,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -57,7 +57,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -65,7 +65,7 @@ }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json index 51df8c7a565f..2661e42a8644 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json @@ -7,7 +7,7 @@ "api-version": "2021-10-01", "body": { "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -35,14 +35,14 @@ "componentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -52,14 +52,14 @@ }, "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -82,7 +82,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -114,14 +114,14 @@ "componentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -131,14 +131,14 @@ }, "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -168,7 +168,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -200,14 +200,14 @@ "componentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -217,14 +217,14 @@ }, "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json index c378bdebcb1f..73bb5fc1ac36 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json @@ -14,7 +14,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -46,14 +46,14 @@ "componentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -63,14 +63,14 @@ }, "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json index f6cf8eebc18e..4dd6dfdb7201 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json @@ -18,7 +18,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, @@ -50,14 +50,14 @@ "componentId": "string", "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -67,14 +67,14 @@ }, "inputs": { "string": { - "description": "string", + "description": "a string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "string", + "description": "a string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json index 4840fabcb6d0..54e1bf466e89 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json @@ -9,7 +9,7 @@ "$orderBy": "string", "$top": 1, "version": "string", - "description": "string", + "description": "a string", "offset": 1, "tags": "string", "properties": "string" @@ -24,7 +24,7 @@ "name": "string", "type": "string", "properties": { - "description": "string", + "description": "a string", "tags": { "string": "string" }, From a3eec377183633acfab3dd428b81fce4f4e60ca6 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Thu, 20 Jan 2022 13:43:19 -0800 Subject: [PATCH 6/9] Revert "fix 3011 error" This reverts commit 5464fc194b3740f671a259bc74aa357bf2078351. --- .../Job/CommandJob/createOrUpdate.json | 18 +++++------ .../examples/Job/CommandJob/get.json | 6 ++-- .../examples/Job/CommandJob/list.json | 6 ++-- .../Job/PipelineJob/createOrUpdate.json | 30 +++++++++---------- .../examples/Job/PipelineJob/get.json | 10 +++---- .../examples/Job/PipelineJob/list.json | 10 +++---- .../examples/ModelVersion/list.json | 4 +-- 7 files changed, 42 insertions(+), 42 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json index f2441ca2581f..e7547471333a 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/createOrUpdate.json @@ -7,7 +7,7 @@ "api-version": "2021-10-01", "body": { "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -42,7 +42,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -50,7 +50,7 @@ }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } @@ -81,7 +81,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -120,7 +120,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -128,7 +128,7 @@ }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } @@ -169,7 +169,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -208,7 +208,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -216,7 +216,7 @@ }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json index f5ad3ca6e2b4..270ebaa04b97 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/get.json @@ -14,7 +14,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -53,7 +53,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -61,7 +61,7 @@ }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json index e7e99387ce92..b42845c45058 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/CommandJob/list.json @@ -18,7 +18,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -57,7 +57,7 @@ "environmentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Dataset", "datasetId": "string", "mode": "ReadOnlyMount" @@ -65,7 +65,7 @@ }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "ReadWriteMount" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json index 2661e42a8644..51df8c7a565f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/createOrUpdate.json @@ -7,7 +7,7 @@ "api-version": "2021-10-01", "body": { "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -35,14 +35,14 @@ "componentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -52,14 +52,14 @@ }, "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -82,7 +82,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -114,14 +114,14 @@ "componentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -131,14 +131,14 @@ }, "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -168,7 +168,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -200,14 +200,14 @@ "componentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -217,14 +217,14 @@ }, "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json index 73bb5fc1ac36..c378bdebcb1f 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/get.json @@ -14,7 +14,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -46,14 +46,14 @@ "componentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -63,14 +63,14 @@ }, "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json index 4dd6dfdb7201..f6cf8eebc18e 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/Job/PipelineJob/list.json @@ -18,7 +18,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, @@ -50,14 +50,14 @@ "componentId": "string", "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } @@ -67,14 +67,14 @@ }, "inputs": { "string": { - "description": "a string", + "description": "string", "jobInputType": "Literal", "value": "string" } }, "outputs": { "string": { - "description": "a string", + "description": "string", "jobOutputType": "Dataset", "mode": "Upload" } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json index 54e1bf466e89..4840fabcb6d0 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/examples/ModelVersion/list.json @@ -9,7 +9,7 @@ "$orderBy": "string", "$top": 1, "version": "string", - "description": "a string", + "description": "string", "offset": 1, "tags": "string", "properties": "string" @@ -24,7 +24,7 @@ "name": "string", "type": "string", "properties": { - "description": "a string", + "description": "string", "tags": { "string": "string" }, From 28acbb8c08b90be91f8a973152ea1e6e77687ddd Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Thu, 20 Jan 2022 13:43:27 -0800 Subject: [PATCH 7/9] Revert "try fix mutability error" This reverts commit 52083e42107a50b9e4c1a1d9e5fb7ffd50bed9b0. --- .../stable/2021-10-01/mfe.json | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 42224eb5490a..19a22e9fdfe8 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -7570,11 +7570,7 @@ "mode": { "description": "Output Delivery Mode.", "default": "ReadWriteMount", - "allOf":[ - { - "$ref": "#/definitions/OutputDataDeliveryMode" - } - ], + "$ref": "#/definitions/OutputDataDeliveryMode", "x-ms-mutability": [ "create", "read" @@ -7608,11 +7604,7 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "allOf":[ - { - "$ref": "#/definitions/OutputDataDeliveryMode" - } - ], + "$ref": "#/definitions/OutputDataDeliveryMode", "readOnly": true, "x-ms-mutability": [ "read" @@ -7620,11 +7612,7 @@ }, "uri": { "description": "Uri path.", - "allOf":[ - { - "$ref": "#/definitions/UriReference" - } - ], + "$ref": "#/definitions/UriReference", "readOnly": true, "x-ms-mutability": [ "read" From b3a5416e8e827eccd664d4f672aa9a252da4efa0 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Thu, 20 Jan 2022 13:43:33 -0800 Subject: [PATCH 8/9] Revert "fix mutability issue again" This reverts commit 86f79106953cd22673afb359482665d3faa54644. --- .../stable/2021-10-01/mfe.json | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 19a22e9fdfe8..78366a0fe982 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -7604,19 +7604,11 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "$ref": "#/definitions/OutputDataDeliveryMode", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "$ref": "#/definitions/OutputDataDeliveryMode" }, "uri": { "description": "Uri path.", "$ref": "#/definitions/UriReference", - "readOnly": true, - "x-ms-mutability": [ - "read" - ], "x-nullable": true } }, @@ -8295,7 +8287,11 @@ "name": "OutputDataDeliveryMode", "modelAsString": true }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "OutputPathAssetReference": { "description": "Reference to an asset via its path in a job output.", @@ -9636,15 +9632,27 @@ "file": { "description": "Single file uri path", "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], "x-nullable": true }, "folder": { "description": "Folder uri path", "type": "string", + "x-ms-mutability": [ + "create", + "read" + ], "x-nullable": true } }, - "additionalProperties": false + "additionalProperties": false, + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "UserAssignedIdentityMeta": { "description": "User assigned identities associated with a resource.", From f17342ab97c10b26243d66f983f540f46e671a59 Mon Sep 17 00:00:00 2001 From: ZhidaLiu <86350902+ZhidaLiu@users.noreply.github.com> Date: Thu, 20 Jan 2022 13:43:37 -0800 Subject: [PATCH 9/9] Revert "try to fix mutability error" This reverts commit d4aa7a04d1ddef525c3b49bc141b3959e44105dc. --- .../stable/2021-10-01/mfe.json | 82 ++++++++++--------- 1 file changed, 45 insertions(+), 37 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index 78366a0fe982..2b54ce1abbeb 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -5543,7 +5543,11 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint deployment.", - "$ref": "#/definitions/DeploymentProvisioningState" + "$ref": "#/definitions/DeploymentProvisioningState", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "resources": { "description": "Indicates compute configuration for the job.\r\nIf not provided, will default to the defaults defined in ResourceConfiguration.", @@ -5625,7 +5629,11 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint.", - "$ref": "#/definitions/EndpointProvisioningState" + "$ref": "#/definitions/EndpointProvisioningState", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] } }, "x-ms-client-name": "BatchEndpointDetails", @@ -6699,11 +6707,7 @@ "name": "DeploymentProvisioningState", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "DistributionConfiguration": { "description": "Base definition for job distribution configuration.", @@ -6970,11 +6974,7 @@ "name": "EndpointProvisioningState", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "EnvironmentContainer": { "description": "Container for environment specification versions.", @@ -7036,11 +7036,7 @@ "name": "EnvironmentType", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "EnvironmentVersion": { "description": "Environment version details.", @@ -7069,7 +7065,11 @@ }, "environmentType": { "description": "Environment type is either user managed or curated by the Azure ML service\r\n", - "$ref": "#/definitions/EnvironmentType" + "$ref": "#/definitions/EnvironmentType", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "image": { "description": "Name of the image that will be used for the environment.\r\n", @@ -7330,7 +7330,11 @@ }, "status": { "description": "Status of the job.", - "$ref": "#/definitions/JobStatus" + "$ref": "#/definitions/JobStatus", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] } }, "discriminator": "jobType", @@ -7604,11 +7608,19 @@ "properties": { "mode": { "description": "Output Delivery Mode.", - "$ref": "#/definitions/OutputDataDeliveryMode" + "$ref": "#/definitions/OutputDataDeliveryMode", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "uri": { "description": "Uri path.", "$ref": "#/definitions/UriReference", + "readOnly": true, + "x-ms-mutability": [ + "read" + ], "x-nullable": true } }, @@ -7700,11 +7712,7 @@ "name": "JobStatus", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "JobType": { "description": "Enum to determine the type of job.", @@ -8053,7 +8061,11 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint deployment.", - "$ref": "#/definitions/DeploymentProvisioningState" + "$ref": "#/definitions/DeploymentProvisioningState", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "readinessProbe": { "description": "Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.", @@ -8145,7 +8157,11 @@ }, "provisioningState": { "description": "Provisioning state for the endpoint.", - "$ref": "#/definitions/EndpointProvisioningState" + "$ref": "#/definitions/EndpointProvisioningState", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "traffic": { "description": "Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.", @@ -8287,11 +8303,7 @@ "name": "OutputDataDeliveryMode", "modelAsString": true }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "OutputPathAssetReference": { "description": "Reference to an asset via its path in a job output.", @@ -9648,11 +9660,7 @@ "x-nullable": true } }, - "additionalProperties": false, - "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "additionalProperties": false }, "UserAssignedIdentityMeta": { "description": "User assigned identities associated with a resource.",