Skip to content

Commit

Permalink
CodeGen from PR 13415 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 8a6b3e7190dca090219e7edb8bb5c63866e1a270 into af6acce0fa4ca69a8cdaf37d0c03701a91ae2969
  • Loading branch information
SDKAuto committed Mar 19, 2021
1 parent 1e83eb8 commit acd09fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
21 changes: 1 addition & 20 deletions sdk/storage/arm-storage/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/arm-storage/src/operations/fileShares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ const createOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.expand3,
Parameters.expand2,
Parameters.apiVersion
],
headerParameters: [
Expand Down Expand Up @@ -498,7 +498,7 @@ const getOperationSpec: msRest.OperationSpec = {
],
queryParameters: [
Parameters.apiVersion,
Parameters.expand4
Parameters.expand3
],
headerParameters: [
Parameters.xMsSnapshot,
Expand Down
6 changes: 3 additions & 3 deletions sdk/storage/arm-storage/src/storageManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit acd09fe

Please sign in to comment.