From 326cfbd1e5c73b91342dadd75d43ec1cad0d0a28 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 18 Feb 2021 09:54:46 +0000 Subject: [PATCH] CodeGen from PR 12800 in Azure/azure-rest-api-specs Fixing the Default Error Response for 2020-06-01-preview APIs (#12800) * Fixing the Default Error Response for 2020-06-01-preview APIs * Removing refs to ErrorResponse and removing new props from CloudErrorBody * Revert "Removing refs to ErrorResponse and removing new props from CloudErrorBody" This reverts commit a955700e0bd21123dd89d85b3c0d7342140d4da1. * Adding ErrorResponse back to avoid breaking change * Removing CloudErrorBody * Making change as minimal as possible * Trigger Build * Adding model duplication leniency * Lenient Dedup --- .../arm-cosmosdb/src/cosmosDBManagementClientContext.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index b629ebd72b79..44b726aea12c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -35,7 +35,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -49,10 +49,10 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }