diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/examples/Notebook/prepare.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/examples/Notebook/prepare.json index 03833c279d43..67c762719ea9 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/examples/Notebook/prepare.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/examples/Notebook/prepare.json @@ -16,6 +16,10 @@ } } }, - "202": {} + "202": { + "headers": { + "Location": "example_location" + } + } } } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json index 8e7ab5ea2ed8..f8ac21152ae3 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2023-10-01/machineLearningServices.json @@ -55,7 +55,7 @@ "200": { "description": "The request was successful; the request was well-formed and received properly.", "schema": { - "$ref": "#/definitions/AmlOperationListResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { @@ -154,7 +154,20 @@ } }, "202": { - "description": "The request was successful; the request was well-formed and received properly." + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + }, + "Retry-After": { + "description": "Duration the client should wait between requests, in seconds.", + "type": "integer", + "format": "int32", + "maximum": 600, + "minimum": 10 + } + } }, "default": { "description": "Error response describing why the operation failed", @@ -251,7 +264,20 @@ } }, "202": { - "description": "The request was successful; the request was well-formed and received properly." + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + }, + "Retry-After": { + "description": "Duration the client should wait between requests, in seconds.", + "type": "integer", + "format": "int32", + "maximum": 600, + "minimum": 10 + } + } }, "default": { "description": "Error response describing why the operation failed", @@ -457,7 +483,20 @@ "description": "The request was successful; the request was well-formed and received properly." }, "202": { - "description": "The request was accepted; the request was well-formed and received properly." + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + }, + "Retry-After": { + "description": "Duration the client should wait between requests, in seconds.", + "type": "integer", + "format": "int32", + "maximum": 600, + "minimum": 10 + } + } }, "default": { "description": "Error response describing why the operation failed", @@ -1538,7 +1577,20 @@ } }, "202": { - "description": "The request was successful; the request was well-formed and received properly." + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + }, + "Retry-After": { + "description": "Duration the client should wait between requests, in seconds.", + "type": "integer", + "format": "int32", + "maximum": 600, + "minimum": 10 + } + } }, "default": { "description": "Error response describing why the operation failed", @@ -1956,7 +2008,8 @@ "required": true, "type": "string", "description": "Friendly name of the workspace connection", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$" }, "TargetParameter": { "in": "query", @@ -1976,58 +2029,6 @@ } }, "definitions": { - "AmlOperation": { - "description": "Azure Machine Learning workspace REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "description": "Display name of operation", - "type": "object", - "properties": { - "provider": { - "description": "The resource provider name: Microsoft.MachineLearningExperimentation", - "type": "string" - }, - "resource": { - "description": "The resource on which the operation is performed.", - "type": "string" - }, - "operation": { - "description": "The operation that users can perform.", - "type": "string" - }, - "description": { - "description": "The description for the operation.", - "type": "string" - } - } - }, - "isDataAction": { - "description": "Indicates whether the operation applies to data-plane", - "type": "boolean" - } - } - }, - "AmlOperationListResult": { - "type": "object", - "description": "An array of operations supported by the resource provider.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AmlOperation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of AML workspace operations supported by the AML workspace resource provider." - } - } - }, "Workspace": { "type": "object", "description": "An object that represents a machine learning workspace.",