From 0213803bfdc57a3361c0215f578d8a8f07778606 Mon Sep 17 00:00:00 2001 From: Dongwei Wang Date: Tue, 21 Jul 2020 16:19:34 +0800 Subject: [PATCH 1/3] [Synapse] - Update Operations.json --- .../preview/2020-04-01-preview/operations.json | 14 +++++++------- specification/synapse/resource-manager/readme.md | 10 +--------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json index 8fa81e529e62..043132f3e7f4 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "version": "2020-04-01-preview", - "title": "SynapseManagementClient", + "title": "SynapseSqlV3ManagementClient", "description": "Azure Synapse Analytics APIs" }, "host": "management.azure.com", @@ -23,11 +23,11 @@ "paths": { "/providers/Microsoft.Synapse/operations": { "get": { - "operationId": "Operations_List", + "operationId": "SqlV3Operations_List", "summary": "All operations", "description": "Get all available operations", "tags": [ - "Operations" + "SqlV3Operations" ], "deprecated": false, "consumes": [], @@ -54,11 +54,11 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}": { "get": { - "operationId": "Operations_GetLocationHeaderResult", + "operationId": "SqlV3Operations_GetLocationHeaderResult", "summary": "Get operation result", "description": "Get the result of an operation", "tags": [ - "Operations" + "SqlV3Operations" ], "deprecated": false, "consumes": [], @@ -109,11 +109,11 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}": { "get": { - "operationId": "Operations_GetAzureAsyncHeaderResult", + "operationId": "SqlV3Operations_GetAzureAsyncHeaderResult", "summary": "Get operation status", "description": "Get the status of an operation", "tags": [ - "Operations" + "SqlV3Operations" ], "deprecated": false, "consumes": [], diff --git a/specification/synapse/resource-manager/readme.md b/specification/synapse/resource-manager/readme.md index e5e8ab6fbe1c..0588655d1aa7 100644 --- a/specification/synapse/resource-manager/readme.md +++ b/specification/synapse/resource-manager/readme.md @@ -54,9 +54,9 @@ These settings apply only when `--tag=package-sqlGen3-2020-04-01-preview` is spe ``` yaml $(tag) == 'package-sqlGen3-2020-04-01-preview' input-file: +- Microsoft.Synapse/preview/2020-04-01-preview/operations.json - Microsoft.Synapse/preview/2020-04-01-preview/sqlPool.json - Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json - ``` ## Suppressions @@ -73,14 +73,6 @@ directive: reason: Does not apply to sqlPool and bigDataPool as they are nested tracked resources - suppress: TrackedResourceListBySubscription reason: Does not apply to sqlPool and bigDataPool as they are nested tracked resources - - suppress: OperationsAPIImplementation - reason: We do have a operations api as "/providers/Microsoft.Synapse/operations" - from: sqlDatabase.json - where: $.paths - - suppress: OperationsAPIImplementation - reason: We do have a operations api as "/providers/Microsoft.Synapse/operations" - from: sqlPool.json - where: $.paths ``` --- From d8391e3f5ee342c390699f583315903ec6ab8724 Mon Sep 17 00:00:00 2001 From: Dongwei Wang Date: Tue, 21 Jul 2020 01:54:48 -0700 Subject: [PATCH 2/3] Update default response --- .../preview/2020-04-01-preview/operations.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json index 043132f3e7f4..a2613b074b1b 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/operations.json @@ -43,6 +43,12 @@ } }, "description": "" + }, + "default": { + "schema": { + "$ref": "../../../../common/v1/types.json#/definitions/ErrorContract" + }, + "description": "" } }, "x-ms-examples": { @@ -148,10 +154,7 @@ }, "description": "" }, - "404": { - "description": "" - }, - "500": { + "default": { "schema": { "$ref": "../../../../common/v1/types.json#/definitions/ErrorContract" }, From fff80e2e0821b7cec94ae7f4b4210fa50e54b0fa Mon Sep 17 00:00:00 2001 From: Dongwei Wang Date: Tue, 21 Jul 2020 02:02:58 -0700 Subject: [PATCH 3/3] Update Example to fix validation error --- .../examples/GetAzureAsyncOperationHeader.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/examples/GetAzureAsyncOperationHeader.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/examples/GetAzureAsyncOperationHeader.json index 2883c2f2c3c2..c4f34f4c20a7 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/examples/GetAzureAsyncOperationHeader.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/examples/GetAzureAsyncOperationHeader.json @@ -12,8 +12,7 @@ "status": "InProgress" } }, - "404": {}, - "500": { + "default": { "body": { "error": { "code": "Error code",