From acd09fed7031a11d1399ee9b1296888b9e15bd2c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 19 Mar 2021 05:59:34 +0000 Subject: [PATCH] CodeGen from PR 13415 in Azure/azure-rest-api-specs Merge 8a6b3e7190dca090219e7edb8bb5c63866e1a270 into af6acce0fa4ca69a8cdaf37d0c03701a91ae2969 --- .../arm-storage/src/models/parameters.ts | 21 +------------------ .../arm-storage/src/operations/fileShares.ts | 4 ++-- .../src/storageManagementClientContext.ts | 6 +++--- 3 files changed, 6 insertions(+), 25 deletions(-) diff --git a/sdk/storage/arm-storage/src/models/parameters.ts b/sdk/storage/arm-storage/src/models/parameters.ts index 06a29cb5a893..51266b79e45e 100644 --- a/sdk/storage/arm-storage/src/models/parameters.ts +++ b/sdk/storage/arm-storage/src/models/parameters.ts @@ -151,30 +151,11 @@ export const expand2: msRest.OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "Enum", - allowedValues: [ - "deleted", - "snapshots" - ] + name: "String" } } }; export const expand3: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "expand" - ], - mapper: { - serializedName: "$expand", - type: { - name: "Enum", - allowedValues: [ - "snapshots" - ] - } - } -}; -export const expand4: msRest.OperationQueryParameter = { parameterPath: [ "options", "expand" diff --git a/sdk/storage/arm-storage/src/operations/fileShares.ts b/sdk/storage/arm-storage/src/operations/fileShares.ts index 796ed41d265e..fa6588607ea3 100644 --- a/sdk/storage/arm-storage/src/operations/fileShares.ts +++ b/sdk/storage/arm-storage/src/operations/fileShares.ts @@ -427,7 +427,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand3, + Parameters.expand2, Parameters.apiVersion ], headerParameters: [ @@ -498,7 +498,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.expand4 + Parameters.expand3 ], headerParameters: [ Parameters.xMsSnapshot, diff --git a/sdk/storage/arm-storage/src/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts index 0ec24efebf17..bd3fd29d9347 100644 --- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts @@ -36,7 +36,7 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -51,10 +51,10 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie 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; } }