From 579e5bea5d508264c6dfed0afd7fb12d9f66f2ed Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 6 Dec 2024 17:28:45 +0000 Subject: [PATCH] CodeGen from PR 31713 in Azure/azure-rest-api-specs Merge 2908f1b210e67dfed27b3670ff37244a6a567379 into 14c133b2ae3654b2b9f5ef20a711c8e66662ea3c --- common/config/rush/pnpm-lock.yaml | 3 +- sdk/keyvault/arm-keyvault/CHANGELOG.md | 15 +- sdk/keyvault/arm-keyvault/LICENSE | 2 +- sdk/keyvault/arm-keyvault/README.md | 1 - sdk/keyvault/arm-keyvault/_meta.json | 8 +- sdk/keyvault/arm-keyvault/package.json | 67 +- .../arm-keyvault/review/arm-keyvault.api.md | 6 +- sdk/keyvault/arm-keyvault/sample.env | 5 +- .../src/keyVaultManagementClient.ts | 40 +- sdk/keyvault/arm-keyvault/src/lroImpl.ts | 6 +- sdk/keyvault/arm-keyvault/src/models/index.ts | 110 +- .../arm-keyvault/src/models/mappers.ts | 2489 +++++++++-------- .../arm-keyvault/src/models/parameters.ts | 174 +- .../arm-keyvault/src/operations/keys.ts | 147 +- .../src/operations/managedHsmKeys.ts | 145 +- .../src/operations/managedHsms.ts | 352 ++- .../mhsmPrivateEndpointConnections.ts | 136 +- .../operations/mhsmPrivateLinkResources.ts | 19 +- .../src/operations/mhsmRegions.ts | 47 +- .../arm-keyvault/src/operations/operations.ts | 32 +- .../operations/privateEndpointConnections.ts | 142 +- .../src/operations/privateLinkResources.ts | 19 +- .../arm-keyvault/src/operations/secrets.ts | 102 +- .../arm-keyvault/src/operations/vaults.ts | 340 ++- .../src/operationsInterfaces/keys.ts | 12 +- .../operationsInterfaces/managedHsmKeys.ts | 12 +- .../src/operationsInterfaces/managedHsms.ts | 30 +- .../mhsmPrivateEndpointConnections.ts | 12 +- .../mhsmPrivateLinkResources.ts | 4 +- .../src/operationsInterfaces/mhsmRegions.ts | 4 +- .../src/operationsInterfaces/operations.ts | 2 +- .../privateEndpointConnections.ts | 12 +- .../privateLinkResources.ts | 4 +- .../src/operationsInterfaces/secrets.ts | 10 +- .../src/operationsInterfaces/vaults.ts | 30 +- sdk/keyvault/arm-keyvault/src/pagingHelper.ts | 2 +- sdk/keyvault/arm-keyvault/test/sampleTest.ts | 43 + sdk/keyvault/arm-keyvault/tsconfig.json | 12 +- 38 files changed, 2303 insertions(+), 2293 deletions(-) create mode 100644 sdk/keyvault/arm-keyvault/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index beae7aa5a70c..fc7229779822 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -15469,7 +15469,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-+Zynps5rECLM22IFGDWuOsLks6pDM8ITZ0kWZyZ4Z8o9EGwdKw+RY4cugVqdK5V8sjKOorv79ItDiB7YZHNyHA==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-UvvfY83MPCv0DYzBDLz2HoIzBlIt9DuqWIrvi9YYbAoYfqXyoV52l5ZF+vdEQVEqeJZ3e7+NAKMa2kIBoKULQA==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -15485,6 +15485,7 @@ packages: mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.67)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/keyvault/arm-keyvault/CHANGELOG.md b/sdk/keyvault/arm-keyvault/CHANGELOG.md index 0f0b85f49f03..45e52658a4af 100644 --- a/sdk/keyvault/arm-keyvault/CHANGELOG.md +++ b/sdk/keyvault/arm-keyvault/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History - -## 3.1.1 (Unreleased) - + +## 3.2.0 (2024-12-06) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Enum KnownManagedHsmSkuFamily has a new value C + + ## 3.1.0 (2023-10-18) ### Features Added diff --git a/sdk/keyvault/arm-keyvault/LICENSE b/sdk/keyvault/arm-keyvault/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/keyvault/arm-keyvault/LICENSE +++ b/sdk/keyvault/arm-keyvault/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/keyvault/arm-keyvault/README.md b/sdk/keyvault/arm-keyvault/README.md index f582b32c1190..9c2fe1bf38b7 100644 --- a/sdk/keyvault/arm-keyvault/README.md +++ b/sdk/keyvault/arm-keyvault/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure KeyVaultManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/keyvault/arm-keyvault/_meta.json b/sdk/keyvault/arm-keyvault/_meta.json index 4fdad6abeb46..eebbf8954583 100644 --- a/sdk/keyvault/arm-keyvault/_meta.json +++ b/sdk/keyvault/arm-keyvault/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0a25ea9680cf080b7d34e8c5f35f564425c6b1f7", + "commit": "9e45e56832f5f45fdddcb649eba30b0026a3c7d9", "readme": "specification/keyvault/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\keyvault\\resource-manager\\readme.md --use=@autorest/typescript@6.0.11 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/keyvault/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.11" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/keyvault/arm-keyvault/package.json b/sdk/keyvault/arm-keyvault/package.json index eb5691ecda81..6542ed452a94 100644 --- a/sdk/keyvault/arm-keyvault/package.json +++ b/sdk/keyvault/arm-keyvault/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for KeyVaultManagementClient.", - "version": "3.1.1", + "version": "3.2.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.7.0", "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,18 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-keyvault.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,28 +68,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -101,13 +102,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/keyvault/arm-keyvault", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-keyvault?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/keyvault/arm-keyvault" +} \ No newline at end of file diff --git a/sdk/keyvault/arm-keyvault/review/arm-keyvault.api.md b/sdk/keyvault/arm-keyvault/review/arm-keyvault.api.md index 05e8650fd0f4..abea22efca44 100644 --- a/sdk/keyvault/arm-keyvault/review/arm-keyvault.api.md +++ b/sdk/keyvault/arm-keyvault/review/arm-keyvault.api.md @@ -455,7 +455,9 @@ export enum KnownKeyPermissions { // @public export enum KnownManagedHsmSkuFamily { // (undocumented) - B = "B" + B = "B", + // (undocumented) + C = "C" } // @public @@ -841,7 +843,7 @@ export interface ManagedHsmSku { export type ManagedHsmSkuFamily = string; // @public -export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6"; +export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6" | "Custom_C42" | "Custom_C10"; // @public export interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/keyvault/arm-keyvault/sample.env b/sdk/keyvault/arm-keyvault/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/keyvault/arm-keyvault/sample.env +++ b/sdk/keyvault/arm-keyvault/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts b/sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts index a122dc2320ea..23f73b53b74e 100644 --- a/sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts +++ b/sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -25,7 +25,7 @@ import { MhsmPrivateLinkResourcesImpl, MhsmRegionsImpl, OperationsImpl, - SecretsImpl + SecretsImpl, } from "./operations"; import { Keys, @@ -38,7 +38,7 @@ import { MhsmPrivateLinkResources, MhsmRegions, Operations, - Secrets + Secrets, } from "./operationsInterfaces"; import { KeyVaultManagementClientOptionalParams } from "./models"; @@ -57,7 +57,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: KeyVaultManagementClientOptionalParams + options?: KeyVaultManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -72,10 +72,10 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { } const defaults: KeyVaultManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-keyvault/3.1.1`; + const packageDetails = `azsdk-js-arm-keyvault/3.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -85,20 +85,21 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -108,7 +109,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -118,9 +119,9 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -128,16 +129,15 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-07-01"; + this.apiVersion = options.apiVersion || "2024-11-01"; this.keys = new KeysImpl(this); this.managedHsmKeys = new ManagedHsmKeysImpl(this); this.vaults = new VaultsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.managedHsms = new ManagedHsmsImpl(this); - this.mhsmPrivateEndpointConnections = new MhsmPrivateEndpointConnectionsImpl( - this - ); + this.mhsmPrivateEndpointConnections = + new MhsmPrivateEndpointConnectionsImpl(this); this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this); this.mhsmRegions = new MhsmRegionsImpl(this); this.operations = new OperationsImpl(this); @@ -154,7 +154,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -168,7 +168,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/keyvault/arm-keyvault/src/lroImpl.ts b/sdk/keyvault/arm-keyvault/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/keyvault/arm-keyvault/src/lroImpl.ts +++ b/sdk/keyvault/arm-keyvault/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/keyvault/arm-keyvault/src/models/index.ts b/sdk/keyvault/arm-keyvault/src/models/index.ts index e0f903edde1e..c62dad4b2055 100644 --- a/sdk/keyvault/arm-keyvault/src/models/index.ts +++ b/sdk/keyvault/arm-keyvault/src/models/index.ts @@ -23,9 +23,9 @@ export interface KeyProperties { /** The type of the key. For valid values, see JsonWebKeyType. */ kty?: JsonWebKeyType; keyOps?: JsonWebKeyOperation[]; - /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */ + /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096. */ keySize?: number; - /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */ + /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256 */ curveName?: JsonWebKeyCurveName; /** * The URI to retrieve the current version of the key. @@ -184,9 +184,9 @@ export interface ManagedHsmKeyProperties { /** The type of the key. For valid values, see JsonWebKeyType. */ kty?: JsonWebKeyType; keyOps?: JsonWebKeyOperation[]; - /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */ + /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096. */ keySize?: number; - /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */ + /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256 */ curveName?: JsonWebKeyCurveName; /** * The URI to retrieve the current version of the key. @@ -1213,9 +1213,9 @@ export interface Key extends Resource { /** The type of the key. For valid values, see JsonWebKeyType. */ kty?: JsonWebKeyType; keyOps?: JsonWebKeyOperation[]; - /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */ + /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096. */ keySize?: number; - /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */ + /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256 */ curveName?: JsonWebKeyCurveName; /** * The URI to retrieve the current version of the key. @@ -1274,9 +1274,9 @@ export interface ManagedHsmKey extends ProxyResourceWithoutSystemData { /** The type of the key. For valid values, see JsonWebKeyType. */ kty?: JsonWebKeyType; keyOps?: JsonWebKeyOperation[]; - /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */ + /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. Default for RSA and RSA-HSM keys is 2048. Exception made for bring your own key (BYOK), key exchange keys default to 4096. */ keySize?: number; - /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */ + /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. Default for EC and EC-HSM keys is P-256 */ curveName?: JsonWebKeyCurveName; /** * The URI to retrieve the current version of the key. @@ -1394,7 +1394,7 @@ export enum KnownDeletionRecoveryLevel { /** Recoverable */ Recoverable = "Recoverable", /** RecoverableProtectedSubscription */ - RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription" + RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription", } /** @@ -1418,7 +1418,7 @@ export enum KnownJsonWebKeyType { /** RSA */ RSA = "RSA", /** RSAHSM */ - RSAHSM = "RSA-HSM" + RSAHSM = "RSA-HSM", } /** @@ -1450,7 +1450,7 @@ export enum KnownJsonWebKeyOperation { /** Import */ Import = "import", /** Release */ - Release = "release" + Release = "release", } /** @@ -1478,7 +1478,7 @@ export enum KnownJsonWebKeyCurveName { /** P521 */ P521 = "P-521", /** P256K */ - P256K = "P-256K" + P256K = "P-256K", } /** @@ -1496,7 +1496,7 @@ export type JsonWebKeyCurveName = string; /** Known values of {@link SkuFamily} that the service accepts. */ export enum KnownSkuFamily { /** A */ - A = "A" + A = "A", } /** @@ -1551,7 +1551,7 @@ export enum KnownKeyPermissions { /** Getrotationpolicy */ Getrotationpolicy = "getrotationpolicy", /** Setrotationpolicy */ - Setrotationpolicy = "setrotationpolicy" + Setrotationpolicy = "setrotationpolicy", } /** @@ -1602,7 +1602,7 @@ export enum KnownSecretPermissions { /** Recover */ Recover = "recover", /** Purge */ - Purge = "purge" + Purge = "purge", } /** @@ -1657,7 +1657,7 @@ export enum KnownCertificatePermissions { /** Backup */ Backup = "backup", /** Restore */ - Restore = "restore" + Restore = "restore", } /** @@ -1716,7 +1716,7 @@ export enum KnownStoragePermissions { /** Getsas */ Getsas = "getsas", /** Deletesas */ - Deletesas = "deletesas" + Deletesas = "deletesas", } /** @@ -1747,7 +1747,7 @@ export enum KnownNetworkRuleBypassOptions { /** AzureServices */ AzureServices = "AzureServices", /** None */ - None = "None" + None = "None", } /** @@ -1765,7 +1765,7 @@ export enum KnownNetworkRuleAction { /** Allow */ Allow = "Allow", /** Deny */ - Deny = "Deny" + Deny = "Deny", } /** @@ -1783,7 +1783,7 @@ export enum KnownVaultProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** RegisteringDns */ - RegisteringDns = "RegisteringDns" + RegisteringDns = "RegisteringDns", } /** @@ -1805,7 +1805,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Rejected */ Rejected = "Rejected", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -1823,7 +1823,7 @@ export type PrivateEndpointServiceConnectionStatus = string; /** Known values of {@link ActionsRequired} that the service accepts. */ export enum KnownActionsRequired { /** None */ - None = "None" + None = "None", } /** @@ -1848,7 +1848,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Failed */ Failed = "Failed", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -1874,7 +1874,7 @@ export enum KnownIdentityType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -1906,7 +1906,7 @@ export enum KnownProvisioningState { /** The managed HSM pool is waiting for a security domain restore action. */ SecurityDomainRestore = "SecurityDomainRestore", /** The managed HSM pool is being restored from full HSM backup. */ - Restoring = "Restoring" + Restoring = "Restoring", } /** @@ -1938,7 +1938,7 @@ export enum KnownGeoReplicationRegionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Cleanup */ - Cleanup = "Cleanup" + Cleanup = "Cleanup", } /** @@ -1960,7 +1960,7 @@ export enum KnownPublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -1982,7 +1982,7 @@ export enum KnownActivationStatus { /** An unknown error occurred while activating managed hsm. */ Unknown = "Unknown", /** Failed to activate managed hsm. */ - Failed = "Failed" + Failed = "Failed", } /** @@ -2000,7 +2000,9 @@ export type ActivationStatus = string; /** Known values of {@link ManagedHsmSkuFamily} that the service accepts. */ export enum KnownManagedHsmSkuFamily { /** B */ - B = "B" + B = "B", + /** C */ + C = "C", } /** @@ -2008,7 +2010,8 @@ export enum KnownManagedHsmSkuFamily { * {@link KnownManagedHsmSkuFamily} can be used interchangeably with ManagedHsmSkuFamily, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **B** + * **B** \ + * **C** */ export type ManagedHsmSkuFamily = string; @@ -2021,7 +2024,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -2046,7 +2049,12 @@ export type AccessPolicyUpdateKind = "add" | "replace" | "remove"; /** Defines values for Reason. */ export type Reason = "AccountNameInvalid" | "AlreadyExists"; /** Defines values for ManagedHsmSkuName. */ -export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6"; +export type ManagedHsmSkuName = + | "Standard_B1" + | "Custom_B32" + | "Custom_B6" + | "Custom_C42" + | "Custom_C10"; /** Optional parameters. */ export interface KeysCreateIfNotExistOptionalParams @@ -2279,8 +2287,8 @@ export interface PrivateEndpointConnectionsPutOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the put operation. */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnectionsPutHeaders & - PrivateEndpointConnection; +export type PrivateEndpointConnectionsPutResponse = + PrivateEndpointConnectionsPutHeaders & PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -2292,28 +2300,32 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByResourceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResource operation. */ -export type PrivateEndpointConnectionsListByResourceResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByResourceResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceNext operation. */ -export type PrivateEndpointConnectionsListByResourceNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByResourceNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateLinkResourcesListByVaultOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByVault operation. */ -export type PrivateLinkResourcesListByVaultResponse = PrivateLinkResourceListResult; +export type PrivateLinkResourcesListByVaultResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface ManagedHsmsCreateOrUpdateOptionalParams @@ -2406,7 +2418,8 @@ export interface ManagedHsmsCheckMhsmNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkMhsmNameAvailability operation. */ -export type ManagedHsmsCheckMhsmNameAvailabilityResponse = CheckMhsmNameAvailabilityResult; +export type ManagedHsmsCheckMhsmNameAvailabilityResponse = + CheckMhsmNameAvailabilityResult; /** Optional parameters. */ export interface ManagedHsmsListByResourceGroupNextOptionalParams @@ -2434,22 +2447,24 @@ export interface MhsmPrivateEndpointConnectionsListByResourceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResource operation. */ -export type MhsmPrivateEndpointConnectionsListByResourceResponse = MhsmPrivateEndpointConnectionsListResult; +export type MhsmPrivateEndpointConnectionsListByResourceResponse = + MhsmPrivateEndpointConnectionsListResult; /** Optional parameters. */ export interface MhsmPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type MhsmPrivateEndpointConnectionsGetResponse = MhsmPrivateEndpointConnection; +export type MhsmPrivateEndpointConnectionsGetResponse = + MhsmPrivateEndpointConnection; /** Optional parameters. */ export interface MhsmPrivateEndpointConnectionsPutOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the put operation. */ -export type MhsmPrivateEndpointConnectionsPutResponse = MhsmPrivateEndpointConnectionsPutHeaders & - MhsmPrivateEndpointConnection; +export type MhsmPrivateEndpointConnectionsPutResponse = + MhsmPrivateEndpointConnectionsPutHeaders & MhsmPrivateEndpointConnection; /** Optional parameters. */ export interface MhsmPrivateEndpointConnectionsDeleteOptionalParams @@ -2461,21 +2476,24 @@ export interface MhsmPrivateEndpointConnectionsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type MhsmPrivateEndpointConnectionsDeleteResponse = MhsmPrivateEndpointConnection; +export type MhsmPrivateEndpointConnectionsDeleteResponse = + MhsmPrivateEndpointConnection; /** Optional parameters. */ export interface MhsmPrivateEndpointConnectionsListByResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceNext operation. */ -export type MhsmPrivateEndpointConnectionsListByResourceNextResponse = MhsmPrivateEndpointConnectionsListResult; +export type MhsmPrivateEndpointConnectionsListByResourceNextResponse = + MhsmPrivateEndpointConnectionsListResult; /** Optional parameters. */ export interface MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByMhsmResource operation. */ -export type MhsmPrivateLinkResourcesListByMhsmResourceResponse = MhsmPrivateLinkResourceListResult; +export type MhsmPrivateLinkResourcesListByMhsmResourceResponse = + MhsmPrivateLinkResourceListResult; /** Optional parameters. */ export interface MhsmRegionsListByResourceOptionalParams diff --git a/sdk/keyvault/arm-keyvault/src/models/mappers.ts b/sdk/keyvault/arm-keyvault/src/models/mappers.ts index ce8305198b05..245ccb4b1e92 100644 --- a/sdk/keyvault/arm-keyvault/src/models/mappers.ts +++ b/sdk/keyvault/arm-keyvault/src/models/mappers.ts @@ -17,18 +17,18 @@ export const KeyCreateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "KeyProperties" - } - } - } - } + className: "KeyProperties", + }, + }, + }, + }, }; export const KeyProperties: coreClient.CompositeMapper = { @@ -40,14 +40,14 @@ export const KeyProperties: coreClient.CompositeMapper = { serializedName: "attributes", type: { name: "Composite", - className: "KeyAttributes" - } + className: "KeyAttributes", + }, }, kty: { serializedName: "kty", type: { - name: "String" - } + name: "String", + }, }, keyOps: { serializedName: "keyOps", @@ -55,53 +55,53 @@ export const KeyProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, keySize: { serializedName: "keySize", type: { - name: "Number" - } + name: "Number", + }, }, curveName: { serializedName: "curveName", type: { - name: "String" - } + name: "String", + }, }, keyUri: { serializedName: "keyUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyUriWithVersion: { serializedName: "keyUriWithVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationPolicy: { serializedName: "rotationPolicy", type: { name: "Composite", - className: "RotationPolicy" - } + className: "RotationPolicy", + }, }, releasePolicy: { serializedName: "release_policy", type: { name: "Composite", - className: "KeyReleasePolicy" - } - } - } - } + className: "KeyReleasePolicy", + }, + }, + }, + }, }; export const KeyAttributes: coreClient.CompositeMapper = { @@ -112,51 +112,51 @@ export const KeyAttributes: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, notBefore: { serializedName: "nbf", type: { - name: "Number" - } + name: "Number", + }, }, expires: { serializedName: "exp", type: { - name: "Number" - } + name: "Number", + }, }, created: { serializedName: "created", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, updated: { serializedName: "updated", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, recoveryLevel: { serializedName: "recoveryLevel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, exportable: { defaultValue: false, serializedName: "exportable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RotationPolicy: coreClient.CompositeMapper = { @@ -168,8 +168,8 @@ export const RotationPolicy: coreClient.CompositeMapper = { serializedName: "attributes", type: { name: "Composite", - className: "KeyRotationPolicyAttributes" - } + className: "KeyRotationPolicyAttributes", + }, }, lifetimeActions: { serializedName: "lifetimeActions", @@ -178,13 +178,13 @@ export const RotationPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LifetimeAction" - } - } - } - } - } - } + className: "LifetimeAction", + }, + }, + }, + }, + }, + }, }; export const KeyRotationPolicyAttributes: coreClient.CompositeMapper = { @@ -196,24 +196,24 @@ export const KeyRotationPolicyAttributes: coreClient.CompositeMapper = { serializedName: "created", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, updated: { serializedName: "updated", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, expiryTime: { serializedName: "expiryTime", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LifetimeAction: coreClient.CompositeMapper = { @@ -225,18 +225,18 @@ export const LifetimeAction: coreClient.CompositeMapper = { serializedName: "trigger", type: { name: "Composite", - className: "Trigger" - } + className: "Trigger", + }, }, action: { serializedName: "action", type: { name: "Composite", - className: "Action" - } - } - } - } + className: "Action", + }, + }, + }, + }, }; export const Trigger: coreClient.CompositeMapper = { @@ -247,17 +247,17 @@ export const Trigger: coreClient.CompositeMapper = { timeAfterCreate: { serializedName: "timeAfterCreate", type: { - name: "String" - } + name: "String", + }, }, timeBeforeExpiry: { serializedName: "timeBeforeExpiry", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Action: coreClient.CompositeMapper = { @@ -269,11 +269,11 @@ export const Action: coreClient.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: ["rotate", "notify"] - } - } - } - } + allowedValues: ["rotate", "notify"], + }, + }, + }, + }, }; export const KeyReleasePolicy: coreClient.CompositeMapper = { @@ -285,17 +285,17 @@ export const KeyReleasePolicy: coreClient.CompositeMapper = { defaultValue: "application/json; charset=utf-8", serializedName: "contentType", type: { - name: "String" - } + name: "String", + }, }, data: { serializedName: "data", type: { - name: "Base64Url" - } - } - } - } + name: "Base64Url", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -307,40 +307,40 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -352,11 +352,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -367,17 +367,17 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyListResult: coreClient.CompositeMapper = { @@ -392,19 +392,19 @@ export const KeyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Key" - } - } - } + className: "Key", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmKeyCreateParameters: coreClient.CompositeMapper = { @@ -416,18 +416,18 @@ export const ManagedHsmKeyCreateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ManagedHsmKeyProperties" - } - } - } - } + className: "ManagedHsmKeyProperties", + }, + }, + }, + }, }; export const ManagedHsmKeyProperties: coreClient.CompositeMapper = { @@ -439,14 +439,14 @@ export const ManagedHsmKeyProperties: coreClient.CompositeMapper = { serializedName: "attributes", type: { name: "Composite", - className: "ManagedHsmKeyAttributes" - } + className: "ManagedHsmKeyAttributes", + }, }, kty: { serializedName: "kty", type: { - name: "String" - } + name: "String", + }, }, keyOps: { serializedName: "keyOps", @@ -454,53 +454,53 @@ export const ManagedHsmKeyProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, keySize: { serializedName: "keySize", type: { - name: "Number" - } + name: "Number", + }, }, curveName: { serializedName: "curveName", type: { - name: "String" - } + name: "String", + }, }, keyUri: { serializedName: "keyUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyUriWithVersion: { serializedName: "keyUriWithVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationPolicy: { serializedName: "rotationPolicy", type: { name: "Composite", - className: "ManagedHsmRotationPolicy" - } + className: "ManagedHsmRotationPolicy", + }, }, releasePolicy: { serializedName: "release_policy", type: { name: "Composite", - className: "ManagedHsmKeyReleasePolicy" - } - } - } - } + className: "ManagedHsmKeyReleasePolicy", + }, + }, + }, + }, }; export const ManagedHsmKeyAttributes: coreClient.CompositeMapper = { @@ -511,50 +511,50 @@ export const ManagedHsmKeyAttributes: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, notBefore: { serializedName: "nbf", type: { - name: "Number" - } + name: "Number", + }, }, expires: { serializedName: "exp", type: { - name: "Number" - } + name: "Number", + }, }, created: { serializedName: "created", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, updated: { serializedName: "updated", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, recoveryLevel: { serializedName: "recoveryLevel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, exportable: { serializedName: "exportable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ManagedHsmRotationPolicy: coreClient.CompositeMapper = { @@ -566,8 +566,8 @@ export const ManagedHsmRotationPolicy: coreClient.CompositeMapper = { serializedName: "attributes", type: { name: "Composite", - className: "ManagedHsmKeyRotationPolicyAttributes" - } + className: "ManagedHsmKeyRotationPolicyAttributes", + }, }, lifetimeActions: { serializedName: "lifetimeActions", @@ -576,43 +576,44 @@ export const ManagedHsmRotationPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedHsmLifetimeAction" - } - } - } - } - } - } -}; - -export const ManagedHsmKeyRotationPolicyAttributes: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedHsmKeyRotationPolicyAttributes", - modelProperties: { - created: { - serializedName: "created", - readOnly: true, - type: { - name: "Number" - } - }, - updated: { - serializedName: "updated", - readOnly: true, - type: { - name: "Number" - } - }, - expiryTime: { - serializedName: "expiryTime", - type: { - name: "String" - } - } - } - } -}; + className: "ManagedHsmLifetimeAction", + }, + }, + }, + }, + }, + }, +}; + +export const ManagedHsmKeyRotationPolicyAttributes: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedHsmKeyRotationPolicyAttributes", + modelProperties: { + created: { + serializedName: "created", + readOnly: true, + type: { + name: "Number", + }, + }, + updated: { + serializedName: "updated", + readOnly: true, + type: { + name: "Number", + }, + }, + expiryTime: { + serializedName: "expiryTime", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedHsmLifetimeAction: coreClient.CompositeMapper = { type: { @@ -623,18 +624,18 @@ export const ManagedHsmLifetimeAction: coreClient.CompositeMapper = { serializedName: "trigger", type: { name: "Composite", - className: "ManagedHsmTrigger" - } + className: "ManagedHsmTrigger", + }, }, action: { serializedName: "action", type: { name: "Composite", - className: "ManagedHsmAction" - } - } - } - } + className: "ManagedHsmAction", + }, + }, + }, + }, }; export const ManagedHsmTrigger: coreClient.CompositeMapper = { @@ -645,17 +646,17 @@ export const ManagedHsmTrigger: coreClient.CompositeMapper = { timeAfterCreate: { serializedName: "timeAfterCreate", type: { - name: "String" - } + name: "String", + }, }, timeBeforeExpiry: { serializedName: "timeBeforeExpiry", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmAction: coreClient.CompositeMapper = { @@ -667,11 +668,11 @@ export const ManagedHsmAction: coreClient.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: ["rotate", "notify"] - } - } - } - } + allowedValues: ["rotate", "notify"], + }, + }, + }, + }, }; export const ManagedHsmKeyReleasePolicy: coreClient.CompositeMapper = { @@ -683,17 +684,17 @@ export const ManagedHsmKeyReleasePolicy: coreClient.CompositeMapper = { defaultValue: "application/json; charset=utf-8", serializedName: "contentType", type: { - name: "String" - } + name: "String", + }, }, data: { serializedName: "data", type: { - name: "Base64Url" - } - } - } - } + name: "Base64Url", + }, + }, + }, + }, }; export const ProxyResourceWithoutSystemData: coreClient.CompositeMapper = { @@ -705,32 +706,32 @@ export const ProxyResourceWithoutSystemData: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ManagedHsmKeyListResult: coreClient.CompositeMapper = { @@ -745,19 +746,19 @@ export const ManagedHsmKeyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedHsmKey" - } - } - } + className: "ManagedHsmKey", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -769,25 +770,25 @@ export const VaultCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "VaultProperties" - } - } - } - } + className: "VaultProperties", + }, + }, + }, + }, }; export const VaultProperties: coreClient.CompositeMapper = { @@ -799,15 +800,15 @@ export const VaultProperties: coreClient.CompositeMapper = { serializedName: "tenantId", required: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, accessPolicies: { serializedName: "accessPolicies", @@ -816,88 +817,91 @@ export const VaultProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessPolicyEntry" - } - } - } + className: "AccessPolicyEntry", + }, + }, + }, }, vaultUri: { serializedName: "vaultUri", type: { - name: "String" - } + name: "String", + }, }, hsmPoolResourceId: { serializedName: "hsmPoolResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enabledForDeployment: { + defaultValue: false, serializedName: "enabledForDeployment", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enabledForDiskEncryption: { + defaultValue: false, serializedName: "enabledForDiskEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enabledForTemplateDeployment: { + defaultValue: false, serializedName: "enabledForTemplateDeployment", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableSoftDelete: { defaultValue: true, serializedName: "enableSoftDelete", type: { - name: "Boolean" - } + name: "Boolean", + }, }, softDeleteRetentionInDays: { defaultValue: 90, serializedName: "softDeleteRetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, enableRbacAuthorization: { defaultValue: false, serializedName: "enableRbacAuthorization", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createMode: { serializedName: "createMode", type: { name: "Enum", - allowedValues: ["recover", "default"] - } + allowedValues: ["recover", "default"], + }, }, enablePurgeProtection: { serializedName: "enablePurgeProtection", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkAcls: { serializedName: "networkAcls", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, privateEndpointConnections: { serializedName: "privateEndpointConnections", @@ -907,20 +911,20 @@ export const VaultProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnectionItem" - } - } - } + className: "PrivateEndpointConnectionItem", + }, + }, + }, }, publicNetworkAccess: { defaultValue: "enabled", serializedName: "publicNetworkAccess", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -932,19 +936,19 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "family", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { name: "Enum", - allowedValues: ["standard", "premium"] - } - } - } - } + allowedValues: ["standard", "premium"], + }, + }, + }, + }, }; export const AccessPolicyEntry: coreClient.CompositeMapper = { @@ -956,31 +960,31 @@ export const AccessPolicyEntry: coreClient.CompositeMapper = { serializedName: "tenantId", required: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, objectId: { serializedName: "objectId", required: true, type: { - name: "String" - } + name: "String", + }, }, applicationId: { serializedName: "applicationId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, permissions: { serializedName: "permissions", type: { name: "Composite", - className: "Permissions" - } - } - } - } + className: "Permissions", + }, + }, + }, + }, }; export const Permissions: coreClient.CompositeMapper = { @@ -994,10 +998,10 @@ export const Permissions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, secrets: { serializedName: "secrets", @@ -1005,10 +1009,10 @@ export const Permissions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, certificates: { serializedName: "certificates", @@ -1016,10 +1020,10 @@ export const Permissions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, storage: { serializedName: "storage", @@ -1027,13 +1031,13 @@ export const Permissions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const NetworkRuleSet: coreClient.CompositeMapper = { @@ -1044,14 +1048,14 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { bypass: { serializedName: "bypass", type: { - name: "String" - } + name: "String", + }, }, defaultAction: { serializedName: "defaultAction", type: { - name: "String" - } + name: "String", + }, }, ipRules: { serializedName: "ipRules", @@ -1060,10 +1064,10 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPRule" - } - } - } + className: "IPRule", + }, + }, + }, }, virtualNetworkRules: { serializedName: "virtualNetworkRules", @@ -1072,13 +1076,13 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkRule" - } - } - } - } - } - } + className: "VirtualNetworkRule", + }, + }, + }, + }, + }, + }, }; export const IPRule: coreClient.CompositeMapper = { @@ -1090,11 +1094,11 @@ export const IPRule: coreClient.CompositeMapper = { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualNetworkRule: coreClient.CompositeMapper = { @@ -1106,17 +1110,17 @@ export const VirtualNetworkRule: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, ignoreMissingVnetServiceEndpoint: { serializedName: "ignoreMissingVnetServiceEndpoint", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PrivateEndpointConnectionItem: coreClient.CompositeMapper = { @@ -1127,37 +1131,37 @@ export const PrivateEndpointConnectionItem: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -1169,11 +1173,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -1184,23 +1188,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Vault: coreClient.CompositeMapper = { @@ -1212,52 +1216,52 @@ export const Vault: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "VaultProperties" - } - } - } - } + className: "VaultProperties", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -1268,41 +1272,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VaultPatchParameters: coreClient.CompositeMapper = { @@ -1314,18 +1318,18 @@ export const VaultPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "VaultPatchProperties" - } - } - } - } + className: "VaultPatchProperties", + }, + }, + }, + }, }; export const VaultPatchProperties: coreClient.CompositeMapper = { @@ -1336,15 +1340,15 @@ export const VaultPatchProperties: coreClient.CompositeMapper = { tenantId: { serializedName: "tenantId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, accessPolicies: { serializedName: "accessPolicies", @@ -1353,75 +1357,75 @@ export const VaultPatchProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessPolicyEntry" - } - } - } + className: "AccessPolicyEntry", + }, + }, + }, }, enabledForDeployment: { serializedName: "enabledForDeployment", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enabledForDiskEncryption: { serializedName: "enabledForDiskEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enabledForTemplateDeployment: { serializedName: "enabledForTemplateDeployment", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableSoftDelete: { serializedName: "enableSoftDelete", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableRbacAuthorization: { serializedName: "enableRbacAuthorization", type: { - name: "Boolean" - } + name: "Boolean", + }, }, softDeleteRetentionInDays: { serializedName: "softDeleteRetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, createMode: { serializedName: "createMode", type: { name: "Enum", - allowedValues: ["recover", "default"] - } + allowedValues: ["recover", "default"], + }, }, enablePurgeProtection: { serializedName: "enablePurgeProtection", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkAcls: { serializedName: "networkAcls", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, }, publicNetworkAccess: { serializedName: "publicNetworkAccess", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultAccessPolicyParameters: coreClient.CompositeMapper = { @@ -1433,39 +1437,39 @@ export const VaultAccessPolicyParameters: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "VaultAccessPolicyProperties" - } - } - } - } + className: "VaultAccessPolicyProperties", + }, + }, + }, + }, }; export const VaultAccessPolicyProperties: coreClient.CompositeMapper = { @@ -1481,13 +1485,13 @@ export const VaultAccessPolicyProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessPolicyEntry" - } - } - } - } - } - } + className: "AccessPolicyEntry", + }, + }, + }, + }, + }, + }, }; export const VaultListResult: coreClient.CompositeMapper = { @@ -1502,19 +1506,19 @@ export const VaultListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Vault" - } - } - } + className: "Vault", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedVaultListResult: coreClient.CompositeMapper = { @@ -1529,19 +1533,19 @@ export const DeletedVaultListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedVault" - } - } - } + className: "DeletedVault", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedVault: coreClient.CompositeMapper = { @@ -1553,32 +1557,32 @@ export const DeletedVault: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeletedVaultProperties" - } - } - } - } + className: "DeletedVaultProperties", + }, + }, + }, + }, }; export const DeletedVaultProperties: coreClient.CompositeMapper = { @@ -1590,47 +1594,47 @@ export const DeletedVaultProperties: coreClient.CompositeMapper = { serializedName: "vaultId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deletionDate: { serializedName: "deletionDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, scheduledPurgeDate: { serializedName: "scheduledPurgeDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, purgeProtectionEnabled: { serializedName: "purgeProtectionEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ResourceListResult: coreClient.CompositeMapper = { @@ -1645,44 +1649,45 @@ export const ResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Resource" - } - } - } + className: "Resource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const VaultCheckNameAvailabilityParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VaultCheckNameAvailabilityParameters", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - type: { - defaultValue: "Microsoft.KeyVault/vaults", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VaultCheckNameAvailabilityParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VaultCheckNameAvailabilityParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + type: { + defaultValue: "Microsoft.KeyVault/vaults", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, + }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { type: { @@ -1693,26 +1698,26 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", readOnly: true, type: { name: "Enum", - allowedValues: ["AccountNameInvalid", "AlreadyExists"] - } + allowedValues: ["AccountNameInvalid", "AlreadyExists"], + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -1727,19 +1732,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -1754,13 +1759,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const ManagedHsmProperties: coreClient.CompositeMapper = { @@ -1771,8 +1776,8 @@ export const ManagedHsmProperties: coreClient.CompositeMapper = { tenantId: { serializedName: "tenantId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, initialAdminObjectIds: { serializedName: "initialAdminObjectIds", @@ -1780,66 +1785,66 @@ export const ManagedHsmProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hsmUri: { serializedName: "hsmUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableSoftDelete: { defaultValue: true, serializedName: "enableSoftDelete", type: { - name: "Boolean" - } + name: "Boolean", + }, }, softDeleteRetentionInDays: { defaultValue: 90, serializedName: "softDeleteRetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, enablePurgeProtection: { defaultValue: true, serializedName: "enablePurgeProtection", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createMode: { serializedName: "createMode", type: { name: "Enum", - allowedValues: ["recover", "default"] - } + allowedValues: ["recover", "default"], + }, }, statusMessage: { serializedName: "statusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkAcls: { serializedName: "networkAcls", type: { name: "Composite", - className: "MhsmNetworkRuleSet" - } + className: "MhsmNetworkRuleSet", + }, }, regions: { serializedName: "regions", @@ -1848,10 +1853,10 @@ export const ManagedHsmProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmGeoReplicatedRegion" - } - } - } + className: "MhsmGeoReplicatedRegion", + }, + }, + }, }, privateEndpointConnections: { serializedName: "privateEndpointConnections", @@ -1861,34 +1866,34 @@ export const ManagedHsmProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmPrivateEndpointConnectionItem" - } - } - } + className: "MhsmPrivateEndpointConnectionItem", + }, + }, + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, scheduledPurgeDate: { serializedName: "scheduledPurgeDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, securityDomainProperties: { serializedName: "securityDomainProperties", type: { name: "Composite", - className: "ManagedHSMSecurityDomainProperties" - } - } - } - } + className: "ManagedHSMSecurityDomainProperties", + }, + }, + }, + }, }; export const MhsmNetworkRuleSet: coreClient.CompositeMapper = { @@ -1899,14 +1904,14 @@ export const MhsmNetworkRuleSet: coreClient.CompositeMapper = { bypass: { serializedName: "bypass", type: { - name: "String" - } + name: "String", + }, }, defaultAction: { serializedName: "defaultAction", type: { - name: "String" - } + name: "String", + }, }, ipRules: { serializedName: "ipRules", @@ -1915,10 +1920,10 @@ export const MhsmNetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmipRule" - } - } - } + className: "MhsmipRule", + }, + }, + }, }, virtualNetworkRules: { serializedName: "virtualNetworkRules", @@ -1927,13 +1932,13 @@ export const MhsmNetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmVirtualNetworkRule" - } - } - } - } - } - } + className: "MhsmVirtualNetworkRule", + }, + }, + }, + }, + }, + }, }; export const MhsmipRule: coreClient.CompositeMapper = { @@ -1945,11 +1950,11 @@ export const MhsmipRule: coreClient.CompositeMapper = { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MhsmVirtualNetworkRule: coreClient.CompositeMapper = { @@ -1961,11 +1966,11 @@ export const MhsmVirtualNetworkRule: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MhsmGeoReplicatedRegion: coreClient.CompositeMapper = { @@ -1976,24 +1981,24 @@ export const MhsmGeoReplicatedRegion: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isPrimary: { serializedName: "isPrimary", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const MhsmPrivateEndpointConnectionItem: coreClient.CompositeMapper = { @@ -2004,37 +2009,37 @@ export const MhsmPrivateEndpointConnectionItem: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "MhsmPrivateEndpoint" - } + className: "MhsmPrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "MhsmPrivateLinkServiceConnectionState" - } + className: "MhsmPrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MhsmPrivateEndpoint: coreClient.CompositeMapper = { @@ -2046,39 +2051,40 @@ export const MhsmPrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const MhsmPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MhsmPrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const MhsmPrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MhsmPrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedHSMSecurityDomainProperties: coreClient.CompositeMapper = { type: { @@ -2089,18 +2095,18 @@ export const ManagedHSMSecurityDomainProperties: coreClient.CompositeMapper = { serializedName: "activationStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activationStatusMessage: { serializedName: "activationStatusMessage", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmResource: coreClient.CompositeMapper = { @@ -2112,59 +2118,59 @@ export const ManagedHsmResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ManagedHsmSku" - } + className: "ManagedHsmSku", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } - } - } - } + className: "ManagedServiceIdentity", + }, + }, + }, + }, }; export const ManagedHsmSku: coreClient.CompositeMapper = { @@ -2176,19 +2182,25 @@ export const ManagedHsmSku: coreClient.CompositeMapper = { serializedName: "family", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { name: "Enum", - allowedValues: ["Standard_B1", "Custom_B32", "Custom_B6"] - } - } - } - } + allowedValues: [ + "Standard_B1", + "Custom_B32", + "Custom_B6", + "Custom_C42", + "Custom_C10", + ], + }, + }, + }, + }, }; export const ManagedServiceIdentity: coreClient.CompositeMapper = { @@ -2200,34 +2212,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -2239,18 +2251,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const ManagedHsmError: coreClient.CompositeMapper = { @@ -2262,11 +2274,11 @@ export const ManagedHsmError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } - } - } - } + className: "ErrorModel", + }, + }, + }, + }, }; export const ErrorModel: coreClient.CompositeMapper = { @@ -2278,25 +2290,25 @@ export const ErrorModel: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, innerError: { serializedName: "innererror", type: { name: "Composite", - className: "ErrorModel" - } - } - } - } + className: "ErrorModel", + }, + }, + }, + }, }; export const ManagedHsmListResult: coreClient.CompositeMapper = { @@ -2311,47 +2323,48 @@ export const ManagedHsmListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedHsm" - } - } - } + className: "ManagedHsm", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const MhsmPrivateEndpointConnectionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MhsmPrivateEndpointConnectionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MhsmPrivateEndpointConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const MhsmPrivateEndpointConnectionsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MhsmPrivateEndpointConnectionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MhsmPrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const DeletedManagedHsmListResult: coreClient.CompositeMapper = { type: { @@ -2365,19 +2378,19 @@ export const DeletedManagedHsmListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedManagedHsm" - } - } - } + className: "DeletedManagedHsm", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedManagedHsm: coreClient.CompositeMapper = { @@ -2389,32 +2402,32 @@ export const DeletedManagedHsm: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeletedManagedHsmProperties" - } - } - } - } + className: "DeletedManagedHsmProperties", + }, + }, + }, + }, }; export const DeletedManagedHsmProperties: coreClient.CompositeMapper = { @@ -2426,47 +2439,47 @@ export const DeletedManagedHsmProperties: coreClient.CompositeMapper = { serializedName: "mhsmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deletionDate: { serializedName: "deletionDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, scheduledPurgeDate: { serializedName: "scheduledPurgeDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, purgeProtectionEnabled: { serializedName: "purgeProtectionEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const MhsmPrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -2481,13 +2494,13 @@ export const MhsmPrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmPrivateLinkResource" - } - } - } - } - } - } + className: "MhsmPrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const MhsmRegionsListResult: coreClient.CompositeMapper = { @@ -2502,19 +2515,19 @@ export const MhsmRegionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MhsmGeoReplicatedRegion" - } - } - } + className: "MhsmGeoReplicatedRegion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckMhsmNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -2526,11 +2539,11 @@ export const CheckMhsmNameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckMhsmNameAvailabilityResult: coreClient.CompositeMapper = { @@ -2542,26 +2555,26 @@ export const CheckMhsmNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", readOnly: true, type: { name: "Enum", - allowedValues: ["AccountNameInvalid", "AlreadyExists"] - } + allowedValues: ["AccountNameInvalid", "AlreadyExists"], + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -2576,19 +2589,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -2599,37 +2612,37 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, serviceSpecification: { serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -2640,29 +2653,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -2677,10 +2690,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } + className: "LogSpecification", + }, + }, + }, }, metricSpecifications: { serializedName: "metricSpecifications", @@ -2689,13 +2702,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } - } - } - } + className: "MetricSpecification", + }, + }, + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -2706,23 +2719,23 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, blobDuration: { serializedName: "blobDuration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -2733,32 +2746,32 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, supportedAggregationTypes: { serializedName: "supportedAggregationTypes", @@ -2766,10 +2779,10 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedTimeGrainTypes: { serializedName: "supportedTimeGrainTypes", @@ -2777,16 +2790,16 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lockAggregationType: { serializedName: "lockAggregationType", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -2795,25 +2808,25 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DimensionProperties" - } - } - } + className: "DimensionProperties", + }, + }, + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } + name: "Boolean", + }, }, internalMetricName: { serializedName: "internalMetricName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DimensionProperties: coreClient.CompositeMapper = { @@ -2824,23 +2837,23 @@ export const DimensionProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, toBeExportedForShoebox: { serializedName: "toBeExportedForShoebox", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SecretCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -2852,18 +2865,18 @@ export const SecretCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "SecretProperties" - } - } - } - } + className: "SecretProperties", + }, + }, + }, + }, }; export const SecretProperties: coreClient.CompositeMapper = { @@ -2874,38 +2887,38 @@ export const SecretProperties: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, contentType: { serializedName: "contentType", type: { - name: "String" - } + name: "String", + }, }, attributes: { serializedName: "attributes", type: { name: "Composite", - className: "SecretAttributes" - } + className: "SecretAttributes", + }, }, secretUri: { serializedName: "secretUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secretUriWithVersion: { serializedName: "secretUriWithVersion", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Attributes: coreClient.CompositeMapper = { @@ -2916,37 +2929,37 @@ export const Attributes: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, notBefore: { serializedName: "nbf", type: { - name: "UnixTime" - } + name: "UnixTime", + }, }, expires: { serializedName: "exp", type: { - name: "UnixTime" - } + name: "UnixTime", + }, }, created: { serializedName: "created", readOnly: true, type: { - name: "UnixTime" - } + name: "UnixTime", + }, }, updated: { serializedName: "updated", readOnly: true, type: { - name: "UnixTime" - } - } - } - } + name: "UnixTime", + }, + }, + }, + }, }; export const SecretPatchParameters: coreClient.CompositeMapper = { @@ -2958,18 +2971,18 @@ export const SecretPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "SecretPatchProperties" - } - } - } - } + className: "SecretPatchProperties", + }, + }, + }, + }, }; export const SecretPatchProperties: coreClient.CompositeMapper = { @@ -2980,24 +2993,24 @@ export const SecretPatchProperties: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, contentType: { serializedName: "contentType", type: { - name: "String" - } + name: "String", + }, }, attributes: { serializedName: "attributes", type: { name: "Composite", - className: "SecretAttributes" - } - } - } - } + className: "SecretAttributes", + }, + }, + }, + }, }; export const SecretListResult: coreClient.CompositeMapper = { @@ -3012,19 +3025,19 @@ export const SecretListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Secret" - } - } - } + className: "Secret", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Key: coreClient.CompositeMapper = { @@ -3037,14 +3050,14 @@ export const Key: coreClient.CompositeMapper = { serializedName: "properties.attributes", type: { name: "Composite", - className: "KeyAttributes" - } + className: "KeyAttributes", + }, }, kty: { serializedName: "properties.kty", type: { - name: "String" - } + name: "String", + }, }, keyOps: { serializedName: "properties.keyOps", @@ -3052,53 +3065,53 @@ export const Key: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, keySize: { serializedName: "properties.keySize", type: { - name: "Number" - } + name: "Number", + }, }, curveName: { serializedName: "properties.curveName", type: { - name: "String" - } + name: "String", + }, }, keyUri: { serializedName: "properties.keyUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyUriWithVersion: { serializedName: "properties.keyUriWithVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationPolicy: { serializedName: "properties.rotationPolicy", type: { name: "Composite", - className: "RotationPolicy" - } + className: "RotationPolicy", + }, }, releasePolicy: { serializedName: "properties.release_policy", type: { name: "Composite", - className: "KeyReleasePolicy" - } - } - } - } + className: "KeyReleasePolicy", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3110,31 +3123,31 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -3147,8 +3160,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -3157,10 +3170,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -3168,13 +3181,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Secret: coreClient.CompositeMapper = { @@ -3187,11 +3200,11 @@ export const Secret: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SecretProperties" - } - } - } - } + className: "SecretProperties", + }, + }, + }, + }, }; export const ManagedHsmKey: coreClient.CompositeMapper = { @@ -3204,14 +3217,14 @@ export const ManagedHsmKey: coreClient.CompositeMapper = { serializedName: "properties.attributes", type: { name: "Composite", - className: "ManagedHsmKeyAttributes" - } + className: "ManagedHsmKeyAttributes", + }, }, kty: { serializedName: "properties.kty", type: { - name: "String" - } + name: "String", + }, }, keyOps: { serializedName: "properties.keyOps", @@ -3219,53 +3232,53 @@ export const ManagedHsmKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, keySize: { serializedName: "properties.keySize", type: { - name: "Number" - } + name: "Number", + }, }, curveName: { serializedName: "properties.curveName", type: { - name: "String" - } + name: "String", + }, }, keyUri: { serializedName: "properties.keyUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyUriWithVersion: { serializedName: "properties.keyUriWithVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationPolicy: { serializedName: "properties.rotationPolicy", type: { name: "Composite", - className: "ManagedHsmRotationPolicy" - } + className: "ManagedHsmRotationPolicy", + }, }, releasePolicy: { serializedName: "properties.release_policy", type: { name: "Composite", - className: "ManagedHsmKeyReleasePolicy" - } - } - } - } + className: "ManagedHsmKeyReleasePolicy", + }, + }, + }, + }, }; export const ManagedHsm: coreClient.CompositeMapper = { @@ -3278,11 +3291,11 @@ export const ManagedHsm: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ManagedHsmProperties" - } - } - } - } + className: "ManagedHsmProperties", + }, + }, + }, + }, }; export const MhsmPrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3294,31 +3307,31 @@ export const MhsmPrivateEndpointConnection: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "MhsmPrivateEndpoint" - } + className: "MhsmPrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "MhsmPrivateLinkServiceConnectionState" - } + className: "MhsmPrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MhsmPrivateLinkResource: coreClient.CompositeMapper = { @@ -3331,8 +3344,8 @@ export const MhsmPrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -3341,10 +3354,10 @@ export const MhsmPrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -3352,13 +3365,13 @@ export const MhsmPrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SecretAttributes: coreClient.CompositeMapper = { @@ -3366,52 +3379,54 @@ export const SecretAttributes: coreClient.CompositeMapper = { name: "Composite", className: "SecretAttributes", modelProperties: { - ...Attributes.type.modelProperties - } - } -}; - -export const PrivateEndpointConnectionsPutHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionsPutHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionsDeleteHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + ...Attributes.type.modelProperties, + }, + }, +}; + +export const PrivateEndpointConnectionsPutHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsPutHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ManagedHsmsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -3421,11 +3436,11 @@ export const ManagedHsmsCreateOrUpdateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmsUpdateHeaders: coreClient.CompositeMapper = { @@ -3436,11 +3451,11 @@ export const ManagedHsmsUpdateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmsDeleteHeaders: coreClient.CompositeMapper = { @@ -3451,11 +3466,11 @@ export const ManagedHsmsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedHsmsPurgeDeletedHeaders: coreClient.CompositeMapper = { @@ -3466,45 +3481,47 @@ export const ManagedHsmsPurgeDeletedHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const MhsmPrivateEndpointConnectionsPutHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MhsmPrivateEndpointConnectionsPutHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const MhsmPrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MhsmPrivateEndpointConnectionsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const MhsmPrivateEndpointConnectionsPutHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MhsmPrivateEndpointConnectionsPutHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const MhsmPrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MhsmPrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/keyvault/arm-keyvault/src/models/parameters.ts b/sdk/keyvault/arm-keyvault/src/models/parameters.ts index 8a554865b869..ca86ef4914ad 100644 --- a/sdk/keyvault/arm-keyvault/src/models/parameters.ts +++ b/sdk/keyvault/arm-keyvault/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { KeyCreateParameters as KeyCreateParametersMapper, @@ -23,7 +23,7 @@ import { CheckMhsmNameAvailabilityParameters as CheckMhsmNameAvailabilityParametersMapper, MhsmPrivateEndpointConnection as MhsmPrivateEndpointConnectionMapper, SecretCreateOrUpdateParameters as SecretCreateOrUpdateParametersMapper, - SecretPatchParameters as SecretPatchParametersMapper + SecretPatchParameters as SecretPatchParametersMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -33,14 +33,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: KeyCreateParametersMapper + mapper: KeyCreateParametersMapper, }; export const accept: OperationParameter = { @@ -50,9 +50,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -61,10 +61,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -73,9 +73,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -84,63 +84,63 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vaultName: OperationURLParameter = { parameterPath: "vaultName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$") + Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"), }, serializedName: "vaultName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyName: OperationURLParameter = { parameterPath: "keyName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$") + Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$"), }, serializedName: "keyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2024-11-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyVersion: OperationURLParameter = { parameterPath: "keyVersion", mapper: { constraints: { - Pattern: new RegExp("^[a-fA-F0-9]{32}$") + Pattern: new RegExp("^[a-fA-F0-9]{32}$"), }, serializedName: "keyVersion", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -149,15 +149,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: ManagedHsmKeyCreateParametersMapper + mapper: ManagedHsmKeyCreateParametersMapper, }; export const resourceGroupName1: OperationURLParameter = { @@ -165,14 +165,14 @@ export const resourceGroupName1: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name: OperationURLParameter = { @@ -181,24 +181,24 @@ export const name: OperationURLParameter = { constraints: { Pattern: new RegExp("^[A-Za-z]([A-Za-z0-9]|\\-[A-Za-z0-9])+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: VaultCreateOrUpdateParametersMapper + mapper: VaultCreateOrUpdateParametersMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: VaultPatchParametersMapper + mapper: VaultPatchParametersMapper, }; export const vaultName1: OperationURLParameter = { @@ -207,14 +207,14 @@ export const vaultName1: OperationURLParameter = { serializedName: "vaultName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: VaultAccessPolicyParametersMapper + mapper: VaultAccessPolicyParametersMapper, }; export const operationKind: OperationURLParameter = { @@ -224,9 +224,9 @@ export const operationKind: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["add", "replace", "remove"] - } - } + allowedValues: ["add", "replace", "remove"], + }, + }, }; export const top: OperationQueryParameter = { @@ -234,9 +234,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const location: OperationURLParameter = { @@ -245,9 +245,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -257,9 +257,9 @@ export const filter: OperationQueryParameter = { isConstant: true, serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -269,14 +269,14 @@ export const apiVersion1: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vaultName2: OperationParameter = { parameterPath: "vaultName", - mapper: VaultCheckNameAvailabilityParametersMapper + mapper: VaultCheckNameAvailabilityParametersMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -285,19 +285,19 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties: OperationParameter = { parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: ManagedHsmMapper + mapper: ManagedHsmMapper, }; export const name1: OperationURLParameter = { @@ -306,43 +306,43 @@ export const name1: OperationURLParameter = { serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const mhsmName: OperationParameter = { parameterPath: "mhsmName", - mapper: CheckMhsmNameAvailabilityParametersMapper + mapper: CheckMhsmNameAvailabilityParametersMapper, }; export const properties1: OperationParameter = { parameterPath: "properties", - mapper: MhsmPrivateEndpointConnectionMapper + mapper: MhsmPrivateEndpointConnectionMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: SecretCreateOrUpdateParametersMapper + mapper: SecretCreateOrUpdateParametersMapper, }; export const secretName: OperationURLParameter = { parameterPath: "secretName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$") + Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$"), }, serializedName: "secretName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: SecretPatchParametersMapper + mapper: SecretPatchParametersMapper, }; export const secretName1: OperationURLParameter = { @@ -351,7 +351,7 @@ export const secretName1: OperationURLParameter = { serializedName: "secretName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/keys.ts b/sdk/keyvault/arm-keyvault/src/operations/keys.ts index e9be9f3f3079..96b8f32a7d16 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/keys.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/keys.ts @@ -29,7 +29,7 @@ import { KeysGetVersionOptionalParams, KeysGetVersionResponse, KeysListNextResponse, - KeysListVersionsNextResponse + KeysListVersionsNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class KeysImpl implements Keys { public list( resourceGroupName: string, vaultName: string, - options?: KeysListOptionalParams + options?: KeysListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -72,9 +72,9 @@ export class KeysImpl implements Keys { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, options?: KeysListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KeysListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class KeysImpl implements Keys { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class KeysImpl implements Keys { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: KeysListOptionalParams + options?: KeysListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -132,13 +132,13 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysListVersionsOptionalParams + options?: KeysListVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listVersionsPagingAll( resourceGroupName, vaultName, keyName, - options + options, ); return { next() { @@ -156,9 +156,9 @@ export class KeysImpl implements Keys { vaultName, keyName, options, - settings + settings, ); - } + }, }; } @@ -167,7 +167,7 @@ export class KeysImpl implements Keys { vaultName: string, keyName: string, options?: KeysListVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KeysListVersionsResponse; let continuationToken = settings?.continuationToken; @@ -176,7 +176,7 @@ export class KeysImpl implements Keys { resourceGroupName, vaultName, keyName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -189,7 +189,7 @@ export class KeysImpl implements Keys { vaultName, keyName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -202,13 +202,13 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysListVersionsOptionalParams + options?: KeysListVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listVersionsPagingPage( resourceGroupName, vaultName, keyName, - options + options, )) { yield* page; } @@ -231,11 +231,11 @@ export class KeysImpl implements Keys { vaultName: string, keyName: string, parameters: KeyCreateParameters, - options?: KeysCreateIfNotExistOptionalParams + options?: KeysCreateIfNotExistOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, keyName, parameters, options }, - createIfNotExistOperationSpec + createIfNotExistOperationSpec, ); } @@ -250,11 +250,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysGetOptionalParams + options?: KeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, keyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -267,11 +267,11 @@ export class KeysImpl implements Keys { private _list( resourceGroupName: string, vaultName: string, - options?: KeysListOptionalParams + options?: KeysListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -288,11 +288,11 @@ export class KeysImpl implements Keys { vaultName: string, keyName: string, keyVersion: string, - options?: KeysGetVersionOptionalParams + options?: KeysGetVersionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, keyName, keyVersion, options }, - getVersionOperationSpec + getVersionOperationSpec, ); } @@ -307,11 +307,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysListVersionsOptionalParams + options?: KeysListVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, keyName, options }, - listVersionsOperationSpec + listVersionsOperationSpec, ); } @@ -326,11 +326,11 @@ export class KeysImpl implements Keys { resourceGroupName: string, vaultName: string, nextLink: string, - options?: KeysListNextOptionalParams + options?: KeysListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -347,11 +347,11 @@ export class KeysImpl implements Keys { vaultName: string, keyName: string, nextLink: string, - options?: KeysListVersionsNextOptionalParams + options?: KeysListVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, keyName, nextLink, options }, - listVersionsNextOperationSpec + listVersionsNextOperationSpec, ); } } @@ -359,16 +359,15 @@ export class KeysImpl implements Keys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createIfNotExistOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -377,23 +376,22 @@ const createIfNotExistOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -401,44 +399,42 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyListResult + bodyMapper: Mappers.KeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}/versions/{keyVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}/versions/{keyVersion}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Key + bodyMapper: Mappers.Key, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -447,22 +443,21 @@ const getVersionOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vaultName, Parameters.keyName, - Parameters.keyVersion + Parameters.keyVersion, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys/{keyName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyListResult + bodyMapper: Mappers.KeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -470,42 +465,42 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.keyName + Parameters.keyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyListResult + bodyMapper: Mappers.KeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyListResult + bodyMapper: Mappers.KeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -513,8 +508,8 @@ const listVersionsNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vaultName, Parameters.keyName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/managedHsmKeys.ts b/sdk/keyvault/arm-keyvault/src/operations/managedHsmKeys.ts index 516e575c33b6..2e05e49fefe8 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/managedHsmKeys.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/managedHsmKeys.ts @@ -29,7 +29,7 @@ import { ManagedHsmKeysGetVersionOptionalParams, ManagedHsmKeysGetVersionResponse, ManagedHsmKeysListNextResponse, - ManagedHsmKeysListVersionsNextResponse + ManagedHsmKeysListVersionsNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { public list( resourceGroupName: string, name: string, - options?: ManagedHsmKeysListOptionalParams + options?: ManagedHsmKeysListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, name, options); return { @@ -69,7 +69,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, name, options, settings); - } + }, }; } @@ -77,7 +77,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, options?: ManagedHsmKeysListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedHsmKeysListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName, name, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -105,12 +105,12 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { private async *listPagingAll( resourceGroupName: string, name: string, - options?: ManagedHsmKeysListOptionalParams + options?: ManagedHsmKeysListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, name, - options + options, )) { yield* page; } @@ -129,13 +129,13 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysListVersionsOptionalParams + options?: ManagedHsmKeysListVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listVersionsPagingAll( resourceGroupName, name, keyName, - options + options, ); return { next() { @@ -153,9 +153,9 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name, keyName, options, - settings + settings, ); - } + }, }; } @@ -164,7 +164,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name: string, keyName: string, options?: ManagedHsmKeysListVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedHsmKeysListVersionsResponse; let continuationToken = settings?.continuationToken; @@ -173,7 +173,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName, name, keyName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -186,7 +186,7 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name, keyName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -199,13 +199,13 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysListVersionsOptionalParams + options?: ManagedHsmKeysListVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listVersionsPagingPage( resourceGroupName, name, keyName, - options + options, )) { yield* page; } @@ -228,11 +228,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name: string, keyName: string, parameters: ManagedHsmKeyCreateParameters, - options?: ManagedHsmKeysCreateIfNotExistOptionalParams + options?: ManagedHsmKeysCreateIfNotExistOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, keyName, parameters, options }, - createIfNotExistOperationSpec + createIfNotExistOperationSpec, ); } @@ -249,11 +249,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysGetOptionalParams + options?: ManagedHsmKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, keyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -266,11 +266,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { private _list( resourceGroupName: string, name: string, - options?: ManagedHsmKeysListOptionalParams + options?: ManagedHsmKeysListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - listOperationSpec + listOperationSpec, ); } @@ -289,11 +289,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name: string, keyName: string, keyVersion: string, - options?: ManagedHsmKeysGetVersionOptionalParams + options?: ManagedHsmKeysGetVersionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, keyName, keyVersion, options }, - getVersionOperationSpec + getVersionOperationSpec, ); } @@ -310,11 +310,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysListVersionsOptionalParams + options?: ManagedHsmKeysListVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, keyName, options }, - listVersionsOperationSpec + listVersionsOperationSpec, ); } @@ -329,11 +329,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { resourceGroupName: string, name: string, nextLink: string, - options?: ManagedHsmKeysListNextOptionalParams + options?: ManagedHsmKeysListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -352,11 +352,11 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { name: string, keyName: string, nextLink: string, - options?: ManagedHsmKeysListVersionsNextOptionalParams + options?: ManagedHsmKeysListVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, keyName, nextLink, options }, - listVersionsNextOperationSpec + listVersionsNextOperationSpec, ); } } @@ -364,16 +364,15 @@ export class ManagedHsmKeysImpl implements ManagedHsmKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createIfNotExistOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKey + bodyMapper: Mappers.ManagedHsmKey, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -382,23 +381,22 @@ const createIfNotExistOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.keyName, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKey + bodyMapper: Mappers.ManagedHsmKey, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -406,44 +404,42 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.keyName, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKeyListResult + bodyMapper: Mappers.ManagedHsmKeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions/{keyVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions/{keyVersion}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKey + bodyMapper: Mappers.ManagedHsmKey, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -452,22 +448,21 @@ const getVersionOperationSpec: coreClient.OperationSpec = { Parameters.keyName, Parameters.keyVersion, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKeyListResult + bodyMapper: Mappers.ManagedHsmKeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,42 +470,42 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.keyName, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKeyListResult + bodyMapper: Mappers.ManagedHsmKeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmKeyListResult + bodyMapper: Mappers.ManagedHsmKeyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -518,8 +513,8 @@ const listVersionsNextOperationSpec: coreClient.OperationSpec = { Parameters.keyName, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/managedHsms.ts b/sdk/keyvault/arm-keyvault/src/operations/managedHsms.ts index bfdce13ca80f..cd3a03e10dbe 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/managedHsms.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/managedHsms.ts @@ -16,7 +16,7 @@ import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -47,7 +47,7 @@ import { ManagedHsmsCheckMhsmNameAvailabilityResponse, ManagedHsmsListByResourceGroupNextResponse, ManagedHsmsListBySubscriptionNextResponse, - ManagedHsmsListDeletedNextResponse + ManagedHsmsListDeletedNextResponse, } from "../models"; /// @@ -71,7 +71,7 @@ export class ManagedHsmsImpl implements ManagedHsms { */ public listByResourceGroup( resourceGroupName: string, - options?: ManagedHsmsListByResourceGroupOptionalParams + options?: ManagedHsmsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -88,16 +88,16 @@ export class ManagedHsmsImpl implements ManagedHsms { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ManagedHsmsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedHsmsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -112,7 +112,7 @@ export class ManagedHsmsImpl implements ManagedHsms { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,11 +123,11 @@ export class ManagedHsmsImpl implements ManagedHsms { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ManagedHsmsListByResourceGroupOptionalParams + options?: ManagedHsmsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -138,7 +138,7 @@ export class ManagedHsmsImpl implements ManagedHsms { * @param options The options parameters. */ public listBySubscription( - options?: ManagedHsmsListBySubscriptionOptionalParams + options?: ManagedHsmsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -153,13 +153,13 @@ export class ManagedHsmsImpl implements ManagedHsms { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ManagedHsmsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedHsmsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -180,7 +180,7 @@ export class ManagedHsmsImpl implements ManagedHsms { } private async *listBySubscriptionPagingAll( - options?: ManagedHsmsListBySubscriptionOptionalParams + options?: ManagedHsmsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class ManagedHsmsImpl implements ManagedHsms { * @param options The options parameters. */ public listDeleted( - options?: ManagedHsmsListDeletedOptionalParams + options?: ManagedHsmsListDeletedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDeletedPagingAll(options); return { @@ -207,13 +207,13 @@ export class ManagedHsmsImpl implements ManagedHsms { throw new Error("maxPageSize is not supported by this operation."); } return this.listDeletedPagingPage(options, settings); - } + }, }; } private async *listDeletedPagingPage( options?: ManagedHsmsListDeletedOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagedHsmsListDeletedResponse; let continuationToken = settings?.continuationToken; @@ -234,7 +234,7 @@ export class ManagedHsmsImpl implements ManagedHsms { } private async *listDeletedPagingAll( - options?: ManagedHsmsListDeletedOptionalParams + options?: ManagedHsmsListDeletedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDeletedPagingPage(options)) { yield* page; @@ -252,7 +252,7 @@ export class ManagedHsmsImpl implements ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsCreateOrUpdateOptionalParams + options?: ManagedHsmsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -261,21 +261,20 @@ export class ManagedHsmsImpl implements ManagedHsms { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -284,8 +283,8 @@ export class ManagedHsmsImpl implements ManagedHsms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -293,22 +292,22 @@ export class ManagedHsmsImpl implements ManagedHsms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ManagedHsmsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -325,13 +324,13 @@ export class ManagedHsmsImpl implements ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsCreateOrUpdateOptionalParams + options?: ManagedHsmsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, name, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -347,7 +346,7 @@ export class ManagedHsmsImpl implements ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsUpdateOptionalParams + options?: ManagedHsmsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -356,21 +355,20 @@ export class ManagedHsmsImpl implements ManagedHsms { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -379,8 +377,8 @@ export class ManagedHsmsImpl implements ManagedHsms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -388,22 +386,22 @@ export class ManagedHsmsImpl implements ManagedHsms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ManagedHsmsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -420,13 +418,13 @@ export class ManagedHsmsImpl implements ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsUpdateOptionalParams + options?: ManagedHsmsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, name, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -440,25 +438,24 @@ export class ManagedHsmsImpl implements ManagedHsms { async beginDelete( resourceGroupName: string, name: string, - options?: ManagedHsmsDeleteOptionalParams + options?: ManagedHsmsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -467,8 +464,8 @@ export class ManagedHsmsImpl implements ManagedHsms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -476,19 +473,19 @@ export class ManagedHsmsImpl implements ManagedHsms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -503,7 +500,7 @@ export class ManagedHsmsImpl implements ManagedHsms { async beginDeleteAndWait( resourceGroupName: string, name: string, - options?: ManagedHsmsDeleteOptionalParams + options?: ManagedHsmsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, name, options); return poller.pollUntilDone(); @@ -518,11 +515,11 @@ export class ManagedHsmsImpl implements ManagedHsms { get( resourceGroupName: string, name: string, - options?: ManagedHsmsGetOptionalParams + options?: ManagedHsmsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - getOperationSpec + getOperationSpec, ); } @@ -534,11 +531,11 @@ export class ManagedHsmsImpl implements ManagedHsms { */ private _listByResourceGroup( resourceGroupName: string, - options?: ManagedHsmsListByResourceGroupOptionalParams + options?: ManagedHsmsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -547,11 +544,11 @@ export class ManagedHsmsImpl implements ManagedHsms { * @param options The options parameters. */ private _listBySubscription( - options?: ManagedHsmsListBySubscriptionOptionalParams + options?: ManagedHsmsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -560,11 +557,11 @@ export class ManagedHsmsImpl implements ManagedHsms { * @param options The options parameters. */ private _listDeleted( - options?: ManagedHsmsListDeletedOptionalParams + options?: ManagedHsmsListDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listDeletedOperationSpec + listDeletedOperationSpec, ); } @@ -577,11 +574,11 @@ export class ManagedHsmsImpl implements ManagedHsms { getDeleted( name: string, location: string, - options?: ManagedHsmsGetDeletedOptionalParams + options?: ManagedHsmsGetDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { name, location, options }, - getDeletedOperationSpec + getDeletedOperationSpec, ); } @@ -594,7 +591,7 @@ export class ManagedHsmsImpl implements ManagedHsms { async beginPurgeDeleted( name: string, location: string, - options?: ManagedHsmsPurgeDeletedOptionalParams + options?: ManagedHsmsPurgeDeletedOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -603,21 +600,20 @@ export class ManagedHsmsImpl implements ManagedHsms { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -626,8 +622,8 @@ export class ManagedHsmsImpl implements ManagedHsms { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -635,22 +631,22 @@ export class ManagedHsmsImpl implements ManagedHsms { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { name, location, options }, - spec: purgeDeletedOperationSpec + spec: purgeDeletedOperationSpec, }); const poller = await createHttpPoller< ManagedHsmsPurgeDeletedResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -665,7 +661,7 @@ export class ManagedHsmsImpl implements ManagedHsms { async beginPurgeDeletedAndWait( name: string, location: string, - options?: ManagedHsmsPurgeDeletedOptionalParams + options?: ManagedHsmsPurgeDeletedOptionalParams, ): Promise { const poller = await this.beginPurgeDeleted(name, location, options); return poller.pollUntilDone(); @@ -678,11 +674,11 @@ export class ManagedHsmsImpl implements ManagedHsms { */ checkMhsmNameAvailability( mhsmName: CheckMhsmNameAvailabilityParameters, - options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams + options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { mhsmName, options }, - checkMhsmNameAvailabilityOperationSpec + checkMhsmNameAvailabilityOperationSpec, ); } @@ -695,11 +691,11 @@ export class ManagedHsmsImpl implements ManagedHsms { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ManagedHsmsListByResourceGroupNextOptionalParams + options?: ManagedHsmsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -710,11 +706,11 @@ export class ManagedHsmsImpl implements ManagedHsms { */ private _listBySubscriptionNext( nextLink: string, - options?: ManagedHsmsListBySubscriptionNextOptionalParams + options?: ManagedHsmsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -725,11 +721,11 @@ export class ManagedHsmsImpl implements ManagedHsms { */ private _listDeletedNext( nextLink: string, - options?: ManagedHsmsListDeletedNextOptionalParams + options?: ManagedHsmsListDeletedNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listDeletedNextOperationSpec + listDeletedNextOperationSpec, ); } } @@ -737,25 +733,24 @@ export class ManagedHsmsImpl implements ManagedHsms { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 201: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 202: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 204: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -763,32 +758,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 201: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 202: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 204: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -796,15 +790,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", httpMethod: "DELETE", responses: { 200: {}, @@ -812,224 +805,217 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsm + bodyMapper: Mappers.ManagedHsm, }, 204: {}, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmListResult + bodyMapper: Mappers.ManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/managedHSMs", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/managedHSMs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmListResult + bodyMapper: Mappers.ManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedManagedHsmListResult + bodyMapper: Mappers.DeletedManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedManagedHsm + bodyMapper: Mappers.DeletedManagedHsm, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}/purge", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}/purge", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders + headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders, }, 201: { - headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders + headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders, }, 202: { - headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders + headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders, }, 204: { - headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders + headersMapper: Mappers.ManagedHsmsPurgeDeletedHeaders, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkMhsmNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkMhsmNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkMhsmNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckMhsmNameAvailabilityResult + bodyMapper: Mappers.CheckMhsmNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.mhsmName, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmListResult + bodyMapper: Mappers.ManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedHsmListResult + bodyMapper: Mappers.ManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeletedNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedManagedHsmListResult + bodyMapper: Mappers.DeletedManagedHsmListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateEndpointConnections.ts b/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateEndpointConnections.ts index 2c0fcdeba965..c0e15f6c4732 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateEndpointConnections.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateEndpointConnections.ts @@ -16,7 +16,7 @@ import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { MhsmPrivateEndpointConnectionsPutResponse, MhsmPrivateEndpointConnectionsDeleteOptionalParams, MhsmPrivateEndpointConnectionsDeleteResponse, - MhsmPrivateEndpointConnectionsListByResourceNextResponse + MhsmPrivateEndpointConnectionsListByResourceNextResponse, } from "../models"; /// /** Class containing MhsmPrivateEndpointConnections operations. */ export class MhsmPrivateEndpointConnectionsImpl - implements MhsmPrivateEndpointConnections { + implements MhsmPrivateEndpointConnections +{ private readonly client: KeyVaultManagementClient; /** @@ -57,7 +58,7 @@ export class MhsmPrivateEndpointConnectionsImpl public listByResource( resourceGroupName: string, name: string, - options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams + options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourcePagingAll(resourceGroupName, name, options); return { @@ -75,9 +76,9 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName, name, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName: string, name: string, options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MhsmPrivateEndpointConnectionsListByResourceResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName, name, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +114,12 @@ export class MhsmPrivateEndpointConnectionsImpl private async *listByResourcePagingAll( resourceGroupName: string, name: string, - options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams + options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourcePagingPage( resourceGroupName, name, - options + options, )) { yield* page; } @@ -134,11 +135,11 @@ export class MhsmPrivateEndpointConnectionsImpl private _listByResource( resourceGroupName: string, name: string, - options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams + options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - listByResourceOperationSpec + listByResourceOperationSpec, ); } @@ -154,11 +155,11 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsGetOptionalParams + options?: MhsmPrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, privateEndpointConnectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -176,7 +177,7 @@ export class MhsmPrivateEndpointConnectionsImpl name: string, privateEndpointConnectionName: string, properties: MhsmPrivateEndpointConnection, - options?: MhsmPrivateEndpointConnectionsPutOptionalParams + options?: MhsmPrivateEndpointConnectionsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -184,9 +185,9 @@ export class MhsmPrivateEndpointConnectionsImpl name, privateEndpointConnectionName, properties, - options + options, }, - putOperationSpec + putOperationSpec, ); } @@ -202,7 +203,7 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams + options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -211,21 +212,20 @@ export class MhsmPrivateEndpointConnectionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -234,8 +234,8 @@ export class MhsmPrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -243,22 +243,22 @@ export class MhsmPrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, privateEndpointConnectionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< MhsmPrivateEndpointConnectionsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -276,13 +276,13 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams + options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, name, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -298,11 +298,11 @@ export class MhsmPrivateEndpointConnectionsImpl resourceGroupName: string, name: string, nextLink: string, - options?: MhsmPrivateEndpointConnectionsListByResourceNextOptionalParams + options?: MhsmPrivateEndpointConnectionsListByResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, nextLink, options }, - listByResourceNextOperationSpec + listByResourceNextOperationSpec, ); } } @@ -310,38 +310,36 @@ export class MhsmPrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmPrivateEndpointConnectionsListResult + bodyMapper: Mappers.MhsmPrivateEndpointConnectionsListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmPrivateEndpointConnection + bodyMapper: Mappers.MhsmPrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,23 +347,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateEndpointConnectionName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const putOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.MhsmPrivateEndpointConnection, - headersMapper: Mappers.MhsmPrivateEndpointConnectionsPutHeaders + headersMapper: Mappers.MhsmPrivateEndpointConnectionsPutHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.properties1, queryParameters: [Parameters.apiVersion], @@ -374,32 +371,31 @@ const putOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateEndpointConnectionName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.MhsmPrivateEndpointConnection + bodyMapper: Mappers.MhsmPrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.MhsmPrivateEndpointConnection + bodyMapper: Mappers.MhsmPrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.MhsmPrivateEndpointConnection + bodyMapper: Mappers.MhsmPrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.MhsmPrivateEndpointConnection + bodyMapper: Mappers.MhsmPrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -407,29 +403,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateEndpointConnectionName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmPrivateEndpointConnectionsListResult + bodyMapper: Mappers.MhsmPrivateEndpointConnectionsListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateLinkResources.ts b/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateLinkResources.ts index 46a89fe310d0..09a7a75b8873 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateLinkResources.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/mhsmPrivateLinkResources.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams, - MhsmPrivateLinkResourcesListByMhsmResourceResponse + MhsmPrivateLinkResourcesListByMhsmResourceResponse, } from "../models"; /** Class containing MhsmPrivateLinkResources operations. */ @@ -37,11 +37,11 @@ export class MhsmPrivateLinkResourcesImpl implements MhsmPrivateLinkResources { listByMhsmResource( resourceGroupName: string, name: string, - options?: MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams + options?: MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - listByMhsmResourceOperationSpec + listByMhsmResourceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class MhsmPrivateLinkResourcesImpl implements MhsmPrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByMhsmResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmPrivateLinkResourceListResult + bodyMapper: Mappers.MhsmPrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/mhsmRegions.ts b/sdk/keyvault/arm-keyvault/src/operations/mhsmRegions.ts index 926c3e25dad6..f180888c0f5d 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/mhsmRegions.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/mhsmRegions.ts @@ -18,7 +18,7 @@ import { MhsmRegionsListByResourceNextOptionalParams, MhsmRegionsListByResourceOptionalParams, MhsmRegionsListByResourceResponse, - MhsmRegionsListByResourceNextResponse + MhsmRegionsListByResourceNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class MhsmRegionsImpl implements MhsmRegions { public listByResource( resourceGroupName: string, name: string, - options?: MhsmRegionsListByResourceOptionalParams + options?: MhsmRegionsListByResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourcePagingAll(resourceGroupName, name, options); return { @@ -61,9 +61,9 @@ export class MhsmRegionsImpl implements MhsmRegions { resourceGroupName, name, options, - settings + settings, ); - } + }, }; } @@ -71,7 +71,7 @@ export class MhsmRegionsImpl implements MhsmRegions { resourceGroupName: string, name: string, options?: MhsmRegionsListByResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MhsmRegionsListByResourceResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class MhsmRegionsImpl implements MhsmRegions { resourceGroupName, name, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -99,12 +99,12 @@ export class MhsmRegionsImpl implements MhsmRegions { private async *listByResourcePagingAll( resourceGroupName: string, name: string, - options?: MhsmRegionsListByResourceOptionalParams + options?: MhsmRegionsListByResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourcePagingPage( resourceGroupName, name, - options + options, )) { yield* page; } @@ -119,11 +119,11 @@ export class MhsmRegionsImpl implements MhsmRegions { private _listByResource( resourceGroupName: string, name: string, - options?: MhsmRegionsListByResourceOptionalParams + options?: MhsmRegionsListByResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - listByResourceOperationSpec + listByResourceOperationSpec, ); } @@ -138,11 +138,11 @@ export class MhsmRegionsImpl implements MhsmRegions { resourceGroupName: string, name: string, nextLink: string, - options?: MhsmRegionsListByResourceNextOptionalParams + options?: MhsmRegionsListByResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, nextLink, options }, - listByResourceNextOperationSpec + listByResourceNextOperationSpec, ); } } @@ -150,45 +150,44 @@ export class MhsmRegionsImpl implements MhsmRegions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/regions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/regions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmRegionsListResult + bodyMapper: Mappers.MhsmRegionsListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.MhsmRegionsListResult + bodyMapper: Mappers.MhsmRegionsListResult, }, default: { - bodyMapper: Mappers.ManagedHsmError - } + bodyMapper: Mappers.ManagedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.name1 + Parameters.name1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/operations.ts b/sdk/keyvault/arm-keyvault/src/operations/operations.ts index 653bd71bbc8a..c0aa0737e372 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/operations.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/privateEndpointConnections.ts b/sdk/keyvault/arm-keyvault/src/operations/privateEndpointConnections.ts index 3528a4ff140f..ca64e0fc224f 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/privateEndpointConnections.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { PrivateEndpointConnectionsPutResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse, - PrivateEndpointConnectionsListByResourceNextResponse + PrivateEndpointConnectionsListByResourceNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: KeyVaultManagementClient; /** @@ -57,12 +58,12 @@ export class PrivateEndpointConnectionsImpl public listByResource( resourceGroupName: string, vaultName: string, - options?: PrivateEndpointConnectionsListByResourceOptionalParams + options?: PrivateEndpointConnectionsListByResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourcePagingAll( resourceGroupName, vaultName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, vaultName: string, options?: PrivateEndpointConnectionsListByResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByResourceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +98,7 @@ export class PrivateEndpointConnectionsImpl result = await this._listByResource( resourceGroupName, vaultName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +110,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class PrivateEndpointConnectionsImpl private async *listByResourcePagingAll( resourceGroupName: string, vaultName: string, - options?: PrivateEndpointConnectionsListByResourceOptionalParams + options?: PrivateEndpointConnectionsListByResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourcePagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -144,11 +145,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, privateEndpointConnectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -166,7 +167,7 @@ export class PrivateEndpointConnectionsImpl vaultName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsPutOptionalParams + options?: PrivateEndpointConnectionsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -174,9 +175,9 @@ export class PrivateEndpointConnectionsImpl vaultName, privateEndpointConnectionName, properties, - options + options, }, - putOperationSpec + putOperationSpec, ); } @@ -192,7 +193,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +202,20 @@ export class PrivateEndpointConnectionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +224,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,8 +233,8 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -244,16 +244,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, vaultName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionsDeleteResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -271,13 +271,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vaultName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -292,11 +292,11 @@ export class PrivateEndpointConnectionsImpl private _listByResource( resourceGroupName: string, vaultName: string, - options?: PrivateEndpointConnectionsListByResourceOptionalParams + options?: PrivateEndpointConnectionsListByResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listByResourceOperationSpec + listByResourceOperationSpec, ); } @@ -311,11 +311,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, vaultName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByResourceNextOptionalParams + options?: PrivateEndpointConnectionsListByResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listByResourceNextOperationSpec + listByResourceNextOperationSpec, ); } } @@ -323,17 +323,16 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,23 +340,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const putOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection, - headersMapper: Mappers.PrivateEndpointConnectionsPutHeaders + headersMapper: Mappers.PrivateEndpointConnectionsPutHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], @@ -366,32 +364,31 @@ const putOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -399,51 +396,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/privateLinkResources.ts b/sdk/keyvault/arm-keyvault/src/operations/privateLinkResources.ts index 58ef249629f6..7c165ca5cab3 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/privateLinkResources.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/privateLinkResources.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { PrivateLinkResourcesListByVaultOptionalParams, - PrivateLinkResourcesListByVaultResponse + PrivateLinkResourcesListByVaultResponse, } from "../models"; /** Class containing PrivateLinkResources operations. */ @@ -37,11 +37,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { listByVault( resourceGroupName: string, vaultName: string, - options?: PrivateLinkResourcesListByVaultOptionalParams + options?: PrivateLinkResourcesListByVaultOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listByVaultOperationSpec + listByVaultOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVaultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/secrets.ts b/sdk/keyvault/arm-keyvault/src/operations/secrets.ts index bea3e5ed65f9..79a716008ca1 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/secrets.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/secrets.ts @@ -26,7 +26,7 @@ import { SecretsUpdateResponse, SecretsGetOptionalParams, SecretsGetResponse, - SecretsListNextResponse + SecretsListNextResponse, } from "../models"; /// @@ -53,7 +53,7 @@ export class SecretsImpl implements Secrets { public list( resourceGroupName: string, vaultName: string, - options?: SecretsListOptionalParams + options?: SecretsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -71,9 +71,9 @@ export class SecretsImpl implements Secrets { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class SecretsImpl implements Secrets { resourceGroupName: string, vaultName: string, options?: SecretsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SecretsListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class SecretsImpl implements Secrets { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,12 +109,12 @@ export class SecretsImpl implements Secrets { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: SecretsListOptionalParams + options?: SecretsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class SecretsImpl implements Secrets { vaultName: string, secretName: string, parameters: SecretCreateOrUpdateParameters, - options?: SecretsCreateOrUpdateOptionalParams + options?: SecretsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, secretName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -159,11 +159,11 @@ export class SecretsImpl implements Secrets { vaultName: string, secretName: string, parameters: SecretPatchParameters, - options?: SecretsUpdateOptionalParams + options?: SecretsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, secretName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -179,11 +179,11 @@ export class SecretsImpl implements Secrets { resourceGroupName: string, vaultName: string, secretName: string, - options?: SecretsGetOptionalParams + options?: SecretsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, secretName, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class SecretsImpl implements Secrets { private _list( resourceGroupName: string, vaultName: string, - options?: SecretsListOptionalParams + options?: SecretsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -217,11 +217,11 @@ export class SecretsImpl implements Secrets { resourceGroupName: string, vaultName: string, nextLink: string, - options?: SecretsListNextOptionalParams + options?: SecretsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -229,19 +229,18 @@ export class SecretsImpl implements Secrets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Secret + bodyMapper: Mappers.Secret, }, 201: { - bodyMapper: Mappers.Secret + bodyMapper: Mappers.Secret, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -250,26 +249,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.secretName + Parameters.secretName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Secret + bodyMapper: Mappers.Secret, }, 201: { - bodyMapper: Mappers.Secret + bodyMapper: Mappers.Secret, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -278,23 +276,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.secretName + Parameters.secretName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Secret + bodyMapper: Mappers.Secret, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -302,51 +299,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName1, - Parameters.secretName1 + Parameters.secretName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SecretListResult + bodyMapper: Mappers.SecretListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName1 + Parameters.vaultName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SecretListResult + bodyMapper: Mappers.SecretListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.vaultName1 + Parameters.vaultName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operations/vaults.ts b/sdk/keyvault/arm-keyvault/src/operations/vaults.ts index 3727f37224a4..33b7c9fab2e0 100644 --- a/sdk/keyvault/arm-keyvault/src/operations/vaults.ts +++ b/sdk/keyvault/arm-keyvault/src/operations/vaults.ts @@ -16,7 +16,7 @@ import { KeyVaultManagementClient } from "../keyVaultManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -57,7 +57,7 @@ import { VaultsListByResourceGroupNextResponse, VaultsListBySubscriptionNextResponse, VaultsListDeletedNextResponse, - VaultsListNextResponse + VaultsListNextResponse, } from "../models"; /// @@ -81,7 +81,7 @@ export class VaultsImpl implements Vaults { */ public listByResourceGroup( resourceGroupName: string, - options?: VaultsListByResourceGroupOptionalParams + options?: VaultsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -98,16 +98,16 @@ export class VaultsImpl implements Vaults { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: VaultsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VaultsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -122,7 +122,7 @@ export class VaultsImpl implements Vaults { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -133,11 +133,11 @@ export class VaultsImpl implements Vaults { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: VaultsListByResourceGroupOptionalParams + options?: VaultsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -148,7 +148,7 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ public listBySubscription( - options?: VaultsListBySubscriptionOptionalParams + options?: VaultsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -163,13 +163,13 @@ export class VaultsImpl implements Vaults { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: VaultsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VaultsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -190,7 +190,7 @@ export class VaultsImpl implements Vaults { } private async *listBySubscriptionPagingAll( - options?: VaultsListBySubscriptionOptionalParams + options?: VaultsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -202,7 +202,7 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ public listDeleted( - options?: VaultsListDeletedOptionalParams + options?: VaultsListDeletedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDeletedPagingAll(options); return { @@ -217,13 +217,13 @@ export class VaultsImpl implements Vaults { throw new Error("maxPageSize is not supported by this operation."); } return this.listDeletedPagingPage(options, settings); - } + }, }; } private async *listDeletedPagingPage( options?: VaultsListDeletedOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VaultsListDeletedResponse; let continuationToken = settings?.continuationToken; @@ -244,7 +244,7 @@ export class VaultsImpl implements Vaults { } private async *listDeletedPagingAll( - options?: VaultsListDeletedOptionalParams + options?: VaultsListDeletedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDeletedPagingPage(options)) { yield* page; @@ -256,7 +256,7 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ public list( - options?: VaultsListOptionalParams + options?: VaultsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -271,13 +271,13 @@ export class VaultsImpl implements Vaults { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: VaultsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VaultsListResponse; let continuationToken = settings?.continuationToken; @@ -298,7 +298,7 @@ export class VaultsImpl implements Vaults { } private async *listPagingAll( - options?: VaultsListOptionalParams + options?: VaultsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -316,7 +316,7 @@ export class VaultsImpl implements Vaults { resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, - options?: VaultsCreateOrUpdateOptionalParams + options?: VaultsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -325,21 +325,20 @@ export class VaultsImpl implements Vaults { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -348,8 +347,8 @@ export class VaultsImpl implements Vaults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -357,22 +356,22 @@ export class VaultsImpl implements Vaults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VaultsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -389,13 +388,13 @@ export class VaultsImpl implements Vaults { resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, - options?: VaultsCreateOrUpdateOptionalParams + options?: VaultsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vaultName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -411,11 +410,11 @@ export class VaultsImpl implements Vaults { resourceGroupName: string, vaultName: string, parameters: VaultPatchParameters, - options?: VaultsUpdateOptionalParams + options?: VaultsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -428,11 +427,11 @@ export class VaultsImpl implements Vaults { delete( resourceGroupName: string, vaultName: string, - options?: VaultsDeleteOptionalParams + options?: VaultsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -445,11 +444,11 @@ export class VaultsImpl implements Vaults { get( resourceGroupName: string, vaultName: string, - options?: VaultsGetOptionalParams + options?: VaultsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - getOperationSpec + getOperationSpec, ); } @@ -466,11 +465,11 @@ export class VaultsImpl implements Vaults { vaultName: string, operationKind: AccessPolicyUpdateKind, parameters: VaultAccessPolicyParameters, - options?: VaultsUpdateAccessPolicyOptionalParams + options?: VaultsUpdateAccessPolicyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, operationKind, parameters, options }, - updateAccessPolicyOperationSpec + updateAccessPolicyOperationSpec, ); } @@ -482,11 +481,11 @@ export class VaultsImpl implements Vaults { */ private _listByResourceGroup( resourceGroupName: string, - options?: VaultsListByResourceGroupOptionalParams + options?: VaultsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -495,11 +494,11 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ private _listBySubscription( - options?: VaultsListBySubscriptionOptionalParams + options?: VaultsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -508,11 +507,11 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ private _listDeleted( - options?: VaultsListDeletedOptionalParams + options?: VaultsListDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listDeletedOperationSpec + listDeletedOperationSpec, ); } @@ -525,11 +524,11 @@ export class VaultsImpl implements Vaults { getDeleted( vaultName: string, location: string, - options?: VaultsGetDeletedOptionalParams + options?: VaultsGetDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { vaultName, location, options }, - getDeletedOperationSpec + getDeletedOperationSpec, ); } @@ -542,25 +541,24 @@ export class VaultsImpl implements Vaults { async beginPurgeDeleted( vaultName: string, location: string, - options?: VaultsPurgeDeletedOptionalParams + options?: VaultsPurgeDeletedOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -569,8 +567,8 @@ export class VaultsImpl implements Vaults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -578,19 +576,19 @@ export class VaultsImpl implements Vaults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { vaultName, location, options }, - spec: purgeDeletedOperationSpec + spec: purgeDeletedOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -605,7 +603,7 @@ export class VaultsImpl implements Vaults { async beginPurgeDeletedAndWait( vaultName: string, location: string, - options?: VaultsPurgeDeletedOptionalParams + options?: VaultsPurgeDeletedOptionalParams, ): Promise { const poller = await this.beginPurgeDeleted(vaultName, location, options); return poller.pollUntilDone(); @@ -616,7 +614,7 @@ export class VaultsImpl implements Vaults { * @param options The options parameters. */ private _list( - options?: VaultsListOptionalParams + options?: VaultsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -628,11 +626,11 @@ export class VaultsImpl implements Vaults { */ checkNameAvailability( vaultName: VaultCheckNameAvailabilityParameters, - options?: VaultsCheckNameAvailabilityOptionalParams + options?: VaultsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { vaultName, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -645,11 +643,11 @@ export class VaultsImpl implements Vaults { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: VaultsListByResourceGroupNextOptionalParams + options?: VaultsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -660,11 +658,11 @@ export class VaultsImpl implements Vaults { */ private _listBySubscriptionNext( nextLink: string, - options?: VaultsListBySubscriptionNextOptionalParams + options?: VaultsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -675,11 +673,11 @@ export class VaultsImpl implements Vaults { */ private _listDeletedNext( nextLink: string, - options?: VaultsListDeletedNextOptionalParams + options?: VaultsListDeletedNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listDeletedNextOperationSpec + listDeletedNextOperationSpec, ); } @@ -690,11 +688,11 @@ export class VaultsImpl implements Vaults { */ private _listNext( nextLink: string, - options?: VaultsListNextOptionalParams + options?: VaultsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -702,25 +700,24 @@ export class VaultsImpl implements Vaults { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, 201: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, 202: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, 204: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -728,26 +725,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, 201: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -755,69 +751,66 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName1 + Parameters.vaultName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Vault + bodyMapper: Mappers.Vault, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName1 + Parameters.vaultName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateAccessPolicyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VaultAccessPolicyParameters + bodyMapper: Mappers.VaultAccessPolicyParameters, }, 201: { - bodyMapper: Mappers.VaultAccessPolicyParameters + bodyMapper: Mappers.VaultAccessPolicyParameters, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -826,91 +819,87 @@ const updateAccessPolicyOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.operationKind + Parameters.operationKind, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VaultListResult + bodyMapper: Mappers.VaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VaultListResult + bodyMapper: Mappers.VaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedVaultListResult + bodyMapper: Mappers.DeletedVaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedVault + bodyMapper: Mappers.DeletedVault, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.vaultName1, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge", httpMethod: "POST", responses: { 200: {}, @@ -918,128 +907,127 @@ const purgeDeletedOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.vaultName1, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vaultName2, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VaultListResult + bodyMapper: Mappers.VaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VaultListResult + bodyMapper: Mappers.VaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeletedNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedVaultListResult + bodyMapper: Mappers.DeletedVaultListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/keys.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/keys.ts index 9a0328500286..bb2650a0e7d2 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/keys.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/keys.ts @@ -17,7 +17,7 @@ import { KeysGetOptionalParams, KeysGetResponse, KeysGetVersionOptionalParams, - KeysGetVersionResponse + KeysGetVersionResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface Keys { list( resourceGroupName: string, vaultName: string, - options?: KeysListOptionalParams + options?: KeysListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the versions of the specified key in the specified key vault. @@ -45,7 +45,7 @@ export interface Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysListVersionsOptionalParams + options?: KeysListVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates the first version of a new key if it does not exist. If it already exists, then the existing @@ -64,7 +64,7 @@ export interface Keys { vaultName: string, keyName: string, parameters: KeyCreateParameters, - options?: KeysCreateIfNotExistOptionalParams + options?: KeysCreateIfNotExistOptionalParams, ): Promise; /** * Gets the current version of the specified key from the specified key vault. @@ -77,7 +77,7 @@ export interface Keys { resourceGroupName: string, vaultName: string, keyName: string, - options?: KeysGetOptionalParams + options?: KeysGetOptionalParams, ): Promise; /** * Gets the specified version of the specified key in the specified key vault. @@ -92,6 +92,6 @@ export interface Keys { vaultName: string, keyName: string, keyVersion: string, - options?: KeysGetVersionOptionalParams + options?: KeysGetVersionOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsmKeys.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsmKeys.ts index 5f902d313524..53c53c011ce8 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsmKeys.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsmKeys.ts @@ -17,7 +17,7 @@ import { ManagedHsmKeysGetOptionalParams, ManagedHsmKeysGetResponse, ManagedHsmKeysGetVersionOptionalParams, - ManagedHsmKeysGetVersionResponse + ManagedHsmKeysGetVersionResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface ManagedHsmKeys { list( resourceGroupName: string, name: string, - options?: ManagedHsmKeysListOptionalParams + options?: ManagedHsmKeysListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the versions of the specified key in the specified managed HSM. @@ -47,7 +47,7 @@ export interface ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysListVersionsOptionalParams + options?: ManagedHsmKeysListVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates the first version of a new key if it does not exist. If it already exists, then the existing @@ -66,7 +66,7 @@ export interface ManagedHsmKeys { name: string, keyName: string, parameters: ManagedHsmKeyCreateParameters, - options?: ManagedHsmKeysCreateIfNotExistOptionalParams + options?: ManagedHsmKeysCreateIfNotExistOptionalParams, ): Promise; /** * Gets the current version of the specified key from the specified managed HSM. @@ -81,7 +81,7 @@ export interface ManagedHsmKeys { resourceGroupName: string, name: string, keyName: string, - options?: ManagedHsmKeysGetOptionalParams + options?: ManagedHsmKeysGetOptionalParams, ): Promise; /** * Gets the specified version of the specified key in the specified managed HSM. @@ -98,6 +98,6 @@ export interface ManagedHsmKeys { name: string, keyName: string, keyVersion: string, - options?: ManagedHsmKeysGetVersionOptionalParams + options?: ManagedHsmKeysGetVersionOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsms.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsms.ts index f4e93042fd6e..cc848c747d9d 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsms.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/managedHsms.ts @@ -27,7 +27,7 @@ import { ManagedHsmsPurgeDeletedResponse, CheckMhsmNameAvailabilityParameters, ManagedHsmsCheckMhsmNameAvailabilityOptionalParams, - ManagedHsmsCheckMhsmNameAvailabilityResponse + ManagedHsmsCheckMhsmNameAvailabilityResponse, } from "../models"; /// @@ -41,21 +41,21 @@ export interface ManagedHsms { */ listByResourceGroup( resourceGroupName: string, - options?: ManagedHsmsListByResourceGroupOptionalParams + options?: ManagedHsmsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the managed HSM Pools associated with the subscription. * @param options The options parameters. */ listBySubscription( - options?: ManagedHsmsListBySubscriptionOptionalParams + options?: ManagedHsmsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the deleted managed HSMs associated with the subscription. * @param options The options parameters. */ listDeleted( - options?: ManagedHsmsListDeletedOptionalParams + options?: ManagedHsmsListDeletedOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a managed HSM Pool in the specified subscription. @@ -68,7 +68,7 @@ export interface ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsCreateOrUpdateOptionalParams + options?: ManagedHsmsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsCreateOrUpdateOptionalParams + options?: ManagedHsmsCreateOrUpdateOptionalParams, ): Promise; /** * Update a managed HSM Pool in the specified subscription. @@ -99,7 +99,7 @@ export interface ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsUpdateOptionalParams + options?: ManagedHsmsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -117,7 +117,7 @@ export interface ManagedHsms { resourceGroupName: string, name: string, parameters: ManagedHsm, - options?: ManagedHsmsUpdateOptionalParams + options?: ManagedHsmsUpdateOptionalParams, ): Promise; /** * Deletes the specified managed HSM Pool. @@ -128,7 +128,7 @@ export interface ManagedHsms { beginDelete( resourceGroupName: string, name: string, - options?: ManagedHsmsDeleteOptionalParams + options?: ManagedHsmsDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified managed HSM Pool. @@ -139,7 +139,7 @@ export interface ManagedHsms { beginDeleteAndWait( resourceGroupName: string, name: string, - options?: ManagedHsmsDeleteOptionalParams + options?: ManagedHsmsDeleteOptionalParams, ): Promise; /** * Gets the specified managed HSM Pool. @@ -150,7 +150,7 @@ export interface ManagedHsms { get( resourceGroupName: string, name: string, - options?: ManagedHsmsGetOptionalParams + options?: ManagedHsmsGetOptionalParams, ): Promise; /** * Gets the specified deleted managed HSM. @@ -161,7 +161,7 @@ export interface ManagedHsms { getDeleted( name: string, location: string, - options?: ManagedHsmsGetDeletedOptionalParams + options?: ManagedHsmsGetDeletedOptionalParams, ): Promise; /** * Permanently deletes the specified managed HSM. @@ -172,7 +172,7 @@ export interface ManagedHsms { beginPurgeDeleted( name: string, location: string, - options?: ManagedHsmsPurgeDeletedOptionalParams + options?: ManagedHsmsPurgeDeletedOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -188,7 +188,7 @@ export interface ManagedHsms { beginPurgeDeletedAndWait( name: string, location: string, - options?: ManagedHsmsPurgeDeletedOptionalParams + options?: ManagedHsmsPurgeDeletedOptionalParams, ): Promise; /** * Checks that the managed hsm name is valid and is not already in use. @@ -197,6 +197,6 @@ export interface ManagedHsms { */ checkMhsmNameAvailability( mhsmName: CheckMhsmNameAvailabilityParameters, - options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams + options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts index 7cc4f81d0c1c..d3e79bba4df1 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts @@ -16,7 +16,7 @@ import { MhsmPrivateEndpointConnectionsPutOptionalParams, MhsmPrivateEndpointConnectionsPutResponse, MhsmPrivateEndpointConnectionsDeleteOptionalParams, - MhsmPrivateEndpointConnectionsDeleteResponse + MhsmPrivateEndpointConnectionsDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface MhsmPrivateEndpointConnections { listByResource( resourceGroupName: string, name: string, - options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams + options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified private endpoint connection associated with the managed HSM Pool. @@ -46,7 +46,7 @@ export interface MhsmPrivateEndpointConnections { resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsGetOptionalParams + options?: MhsmPrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Updates the specified private endpoint connection associated with the managed hsm pool. @@ -62,7 +62,7 @@ export interface MhsmPrivateEndpointConnections { name: string, privateEndpointConnectionName: string, properties: MhsmPrivateEndpointConnection, - options?: MhsmPrivateEndpointConnectionsPutOptionalParams + options?: MhsmPrivateEndpointConnectionsPutOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection associated with the managed hsm pool. @@ -76,7 +76,7 @@ export interface MhsmPrivateEndpointConnections { resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams + options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,6 +95,6 @@ export interface MhsmPrivateEndpointConnections { resourceGroupName: string, name: string, privateEndpointConnectionName: string, - options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams + options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateLinkResources.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateLinkResources.ts index f4f9fb75871f..2a1926fbd4a7 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateLinkResources.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmPrivateLinkResources.ts @@ -8,7 +8,7 @@ import { MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams, - MhsmPrivateLinkResourcesListByMhsmResourceResponse + MhsmPrivateLinkResourcesListByMhsmResourceResponse, } from "../models"; /** Interface representing a MhsmPrivateLinkResources. */ @@ -22,6 +22,6 @@ export interface MhsmPrivateLinkResources { listByMhsmResource( resourceGroupName: string, name: string, - options?: MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams + options?: MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmRegions.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmRegions.ts index ba14b4405150..1912ffe1f00e 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmRegions.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/mhsmRegions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { MhsmGeoReplicatedRegion, - MhsmRegionsListByResourceOptionalParams + MhsmRegionsListByResourceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface MhsmRegions { listByResource( resourceGroupName: string, name: string, - options?: MhsmRegionsListByResourceOptionalParams + options?: MhsmRegionsListByResourceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/operations.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/operations.ts index 85501eafa7af..9a55752241e7 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/operations.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateEndpointConnections.ts index ac88c9201e24..160a420ca38b 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionsPutOptionalParams, PrivateEndpointConnectionsPutResponse, PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsDeleteResponse + PrivateEndpointConnectionsDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface PrivateEndpointConnections { listByResource( resourceGroupName: string, vaultName: string, - options?: PrivateEndpointConnectionsListByResourceOptionalParams + options?: PrivateEndpointConnectionsListByResourceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified private endpoint connection associated with the key vault. @@ -46,7 +46,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Updates the specified private endpoint connection associated with the key vault. @@ -62,7 +62,7 @@ export interface PrivateEndpointConnections { vaultName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsPutOptionalParams + options?: PrivateEndpointConnectionsPutOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection associated with the key vault. @@ -76,7 +76,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,6 +95,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateLinkResources.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateLinkResources.ts index 47b07b43eab2..b9c2d4a384e2 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/privateLinkResources.ts @@ -8,7 +8,7 @@ import { PrivateLinkResourcesListByVaultOptionalParams, - PrivateLinkResourcesListByVaultResponse + PrivateLinkResourcesListByVaultResponse, } from "../models"; /** Interface representing a PrivateLinkResources. */ @@ -22,6 +22,6 @@ export interface PrivateLinkResources { listByVault( resourceGroupName: string, vaultName: string, - options?: PrivateLinkResourcesListByVaultOptionalParams + options?: PrivateLinkResourcesListByVaultOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/secrets.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/secrets.ts index 379b92f98dc2..5f5d392401a3 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/secrets.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/secrets.ts @@ -17,7 +17,7 @@ import { SecretsUpdateOptionalParams, SecretsUpdateResponse, SecretsGetOptionalParams, - SecretsGetResponse + SecretsGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Secrets { list( resourceGroupName: string, vaultName: string, - options?: SecretsListOptionalParams + options?: SecretsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended @@ -53,7 +53,7 @@ export interface Secrets { vaultName: string, secretName: string, parameters: SecretCreateOrUpdateParameters, - options?: SecretsCreateOrUpdateOptionalParams + options?: SecretsCreateOrUpdateOptionalParams, ): Promise; /** * Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM @@ -69,7 +69,7 @@ export interface Secrets { vaultName: string, secretName: string, parameters: SecretPatchParameters, - options?: SecretsUpdateOptionalParams + options?: SecretsUpdateOptionalParams, ): Promise; /** * Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users @@ -83,6 +83,6 @@ export interface Secrets { resourceGroupName: string, vaultName: string, secretName: string, - options?: SecretsGetOptionalParams + options?: SecretsGetOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/vaults.ts b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/vaults.ts index c6943bdbc9d3..e56f290a2ef5 100644 --- a/sdk/keyvault/arm-keyvault/src/operationsInterfaces/vaults.ts +++ b/sdk/keyvault/arm-keyvault/src/operationsInterfaces/vaults.ts @@ -34,7 +34,7 @@ import { VaultsPurgeDeletedOptionalParams, VaultCheckNameAvailabilityParameters, VaultsCheckNameAvailabilityOptionalParams, - VaultsCheckNameAvailabilityResponse + VaultsCheckNameAvailabilityResponse, } from "../models"; /// @@ -48,28 +48,28 @@ export interface Vaults { */ listByResourceGroup( resourceGroupName: string, - options?: VaultsListByResourceGroupOptionalParams + options?: VaultsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the vaults associated with the subscription. * @param options The options parameters. */ listBySubscription( - options?: VaultsListBySubscriptionOptionalParams + options?: VaultsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the deleted vaults in a subscription. * @param options The options parameters. */ listDeleted( - options?: VaultsListDeletedOptionalParams + options?: VaultsListDeletedOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the vaults associated with the subscription. * @param options The options parameters. */ list( - options?: VaultsListOptionalParams + options?: VaultsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a key vault in the specified subscription. @@ -82,7 +82,7 @@ export interface Vaults { resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, - options?: VaultsCreateOrUpdateOptionalParams + options?: VaultsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -100,7 +100,7 @@ export interface Vaults { resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, - options?: VaultsCreateOrUpdateOptionalParams + options?: VaultsCreateOrUpdateOptionalParams, ): Promise; /** * Update a key vault in the specified subscription. @@ -113,7 +113,7 @@ export interface Vaults { resourceGroupName: string, vaultName: string, parameters: VaultPatchParameters, - options?: VaultsUpdateOptionalParams + options?: VaultsUpdateOptionalParams, ): Promise; /** * Deletes the specified Azure key vault. @@ -124,7 +124,7 @@ export interface Vaults { delete( resourceGroupName: string, vaultName: string, - options?: VaultsDeleteOptionalParams + options?: VaultsDeleteOptionalParams, ): Promise; /** * Gets the specified Azure key vault. @@ -135,7 +135,7 @@ export interface Vaults { get( resourceGroupName: string, vaultName: string, - options?: VaultsGetOptionalParams + options?: VaultsGetOptionalParams, ): Promise; /** * Update access policies in a key vault in the specified subscription. @@ -150,7 +150,7 @@ export interface Vaults { vaultName: string, operationKind: AccessPolicyUpdateKind, parameters: VaultAccessPolicyParameters, - options?: VaultsUpdateAccessPolicyOptionalParams + options?: VaultsUpdateAccessPolicyOptionalParams, ): Promise; /** * Gets the deleted Azure key vault. @@ -161,7 +161,7 @@ export interface Vaults { getDeleted( vaultName: string, location: string, - options?: VaultsGetDeletedOptionalParams + options?: VaultsGetDeletedOptionalParams, ): Promise; /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. @@ -172,7 +172,7 @@ export interface Vaults { beginPurgeDeleted( vaultName: string, location: string, - options?: VaultsPurgeDeletedOptionalParams + options?: VaultsPurgeDeletedOptionalParams, ): Promise, void>>; /** * Permanently deletes the specified vault. aka Purges the deleted Azure key vault. @@ -183,7 +183,7 @@ export interface Vaults { beginPurgeDeletedAndWait( vaultName: string, location: string, - options?: VaultsPurgeDeletedOptionalParams + options?: VaultsPurgeDeletedOptionalParams, ): Promise; /** * Checks that the vault name is valid and is not already in use. @@ -192,6 +192,6 @@ export interface Vaults { */ checkNameAvailability( vaultName: VaultCheckNameAvailabilityParameters, - options?: VaultsCheckNameAvailabilityOptionalParams + options?: VaultsCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/keyvault/arm-keyvault/src/pagingHelper.ts b/sdk/keyvault/arm-keyvault/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/keyvault/arm-keyvault/src/pagingHelper.ts +++ b/sdk/keyvault/arm-keyvault/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/keyvault/arm-keyvault/test/sampleTest.ts b/sdk/keyvault/arm-keyvault/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/keyvault/arm-keyvault/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/keyvault/arm-keyvault/tsconfig.json b/sdk/keyvault/arm-keyvault/tsconfig.json index d2c1e922fd67..b35d05ad6e9d 100644 --- a/sdk/keyvault/arm-keyvault/tsconfig.json +++ b/sdk/keyvault/arm-keyvault/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-keyvault": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"