Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
maorleger committed Jun 22, 2021
1 parent 2c8e0d8 commit 4252827
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
19 changes: 8 additions & 11 deletions sdk/keyvault/keyvault-admin/src/accessControlClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";

import { createTraceFunction } from "./tracingHelpers";
import { KeyVaultClient } from "./generated/keyVaultClient";
import {
RoleAssignmentsListForScopeOptionalParams
} from "./generated/models";
import { RoleAssignmentsListForScopeOptionalParams } from "./generated/models";

import {
CreateRoleAssignmentOptions,
Expand Down Expand Up @@ -89,20 +87,19 @@ export class KeyVaultAccessControlClient {
: libInfo
};

const serviceVersion = options.serviceVersion || LATEST_API_VERSION
const serviceVersion = options.serviceVersion || LATEST_API_VERSION;

const clientOptions = {
...options,
loggingOptions: {
logger: logger.info,
additionalAllowedHeaderNames: [
"x-ms-keyvault-region",
"x-ms-keyvault-network-info",
"x-ms-keyvault-service-version"
]

additionalAllowedHeaderNames: [
"x-ms-keyvault-region",
"x-ms-keyvault-network-info",
"x-ms-keyvault-service-version"
]
}
}
};

this.client = new KeyVaultClient(serviceVersion, clientOptions);

Expand Down
15 changes: 7 additions & 8 deletions sdk/keyvault/keyvault-admin/src/backupClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,19 @@ export class KeyVaultBackupClient {
: libInfo
};

const apiVersion = options.serviceVersion || LATEST_API_VERSION
const apiVersion = options.serviceVersion || LATEST_API_VERSION;

const clientOptions = {
...options,
loggingOptions: {
logger: logger.info,
additionalAllowedHeaderNames: [
"x-ms-keyvault-region",
"x-ms-keyvault-network-info",
"x-ms-keyvault-service-version"
]

additionalAllowedHeaderNames: [
"x-ms-keyvault-region",
"x-ms-keyvault-network-info",
"x-ms-keyvault-service-version"
]
}
}
};

this.client = new KeyVaultClient(apiVersion, clientOptions);
this.client.pipeline.addPolicy(
Expand Down

0 comments on commit 4252827

Please sign in to comment.