@azure/arm-keyvault-profile-2020-09-01-hybrid 1.1.0 → 2.0.0-alpha.20220314.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +80 -83
- package/dist/index.js +3453 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/keyVaultManagementClient.d.ts +23 -0
- package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -0
- package/dist-esm/src/keyVaultManagementClient.js +56 -0
- package/dist-esm/src/keyVaultManagementClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1008 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +123 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +48 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +728 -617
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +26 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +220 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +51 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +187 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/secrets.d.ts +72 -0
- package/dist-esm/src/operations/secrets.d.ts.map +1 -0
- package/dist-esm/src/operations/secrets.js +247 -0
- package/dist-esm/src/operations/secrets.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +166 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +816 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/secrets.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
- package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +103 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +73 -22
- package/review/arm-keyvault-profile-2020-09-01-hybrid.api.md +876 -0
- package/rollup.config.js +115 -30
- package/src/index.ts +12 -0
- package/src/keyVaultManagementClient.ts +84 -45
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +849 -1276
- package/src/models/mappers.ts +730 -609
- package/src/models/parameters.ts +153 -76
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +87 -73
- package/src/operations/privateEndpointConnections.ts +174 -154
- package/src/operations/privateLinkResources.ts +39 -54
- package/src/operations/secrets.ts +215 -248
- package/src/operations/vaults.ts +731 -629
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +85 -0
- package/src/operationsInterfaces/privateLinkResources.ts +27 -0
- package/src/operationsInterfaces/secrets.ts +86 -0
- package/src/operationsInterfaces/vaults.ts +197 -0
- package/tsconfig.json +14 -6
- package/types/arm-keyvault-profile-2020-09-01-hybrid.d.ts +1360 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.js +0 -3058
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.js.map +0 -1
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js +0 -1
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js.map +0 -1
- package/esm/keyVaultManagementClient.d.ts +0 -29
- package/esm/keyVaultManagementClient.d.ts.map +0 -1
- package/esm/keyVaultManagementClient.js +0 -43
- package/esm/keyVaultManagementClient.js.map +0 -1
- package/esm/keyVaultManagementClientContext.d.ts +0 -23
- package/esm/keyVaultManagementClientContext.d.ts.map +0 -1
- package/esm/keyVaultManagementClientContext.js +0 -62
- package/esm/keyVaultManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -1449
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -46
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -178
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/secretsMappers.d.ts +0 -2
- package/esm/models/secretsMappers.d.ts.map +0 -1
- package/esm/models/secretsMappers.js +0 -9
- package/esm/models/secretsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -91
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -164
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -34
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -58
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/secrets.d.ts +0 -139
- package/esm/operations/secrets.d.ts.map +0 -1
- package/esm/operations/secrets.js +0 -201
- package/esm/operations/secrets.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -317
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -557
- package/esm/operations/vaults.js.map +0 -1
- package/src/keyVaultManagementClientContext.ts +0 -69
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateEndpointConnectionsMappers.ts +0 -40
- package/src/models/privateLinkResourcesMappers.ts +0 -39
- package/src/models/secretsMappers.ts +0 -39
- package/src/models/vaultsMappers.ts +0 -45
package/src/operations/vaults.ts
CHANGED
|
@@ -1,533 +1,687 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Vaults } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { KeyVaultManagementClient } from "../keyVaultManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Vault,
|
|
19
|
+
VaultsListByResourceGroupNextOptionalParams,
|
|
20
|
+
VaultsListByResourceGroupOptionalParams,
|
|
21
|
+
VaultsListBySubscriptionNextOptionalParams,
|
|
22
|
+
VaultsListBySubscriptionOptionalParams,
|
|
23
|
+
DeletedVault,
|
|
24
|
+
VaultsListDeletedNextOptionalParams,
|
|
25
|
+
VaultsListDeletedOptionalParams,
|
|
26
|
+
Resource,
|
|
27
|
+
VaultsListNextOptionalParams,
|
|
28
|
+
VaultsListOptionalParams,
|
|
29
|
+
VaultCreateOrUpdateParameters,
|
|
30
|
+
VaultsCreateOrUpdateOptionalParams,
|
|
31
|
+
VaultsCreateOrUpdateResponse,
|
|
32
|
+
VaultPatchParameters,
|
|
33
|
+
VaultsUpdateOptionalParams,
|
|
34
|
+
VaultsUpdateResponse,
|
|
35
|
+
VaultsDeleteOptionalParams,
|
|
36
|
+
VaultsGetOptionalParams,
|
|
37
|
+
VaultsGetResponse,
|
|
38
|
+
VaultAccessPolicyParameters,
|
|
39
|
+
AccessPolicyUpdateKind,
|
|
40
|
+
VaultsUpdateAccessPolicyOptionalParams,
|
|
41
|
+
VaultsUpdateAccessPolicyResponse,
|
|
42
|
+
VaultsListByResourceGroupResponse,
|
|
43
|
+
VaultsListBySubscriptionResponse,
|
|
44
|
+
VaultsListDeletedResponse,
|
|
45
|
+
VaultsGetDeletedOptionalParams,
|
|
46
|
+
VaultsGetDeletedResponse,
|
|
47
|
+
VaultsPurgeDeletedOptionalParams,
|
|
48
|
+
VaultsListResponse,
|
|
49
|
+
VaultCheckNameAvailabilityParameters,
|
|
50
|
+
VaultsCheckNameAvailabilityOptionalParams,
|
|
51
|
+
VaultsCheckNameAvailabilityResponse,
|
|
52
|
+
VaultsListByResourceGroupNextResponse,
|
|
53
|
+
VaultsListBySubscriptionNextResponse,
|
|
54
|
+
VaultsListDeletedNextResponse,
|
|
55
|
+
VaultsListNextResponse
|
|
56
|
+
} from "../models";
|
|
17
57
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
58
|
+
/// <reference lib="esnext.asynciterable" />
|
|
59
|
+
/** Class containing Vaults operations. */
|
|
60
|
+
export class VaultsImpl implements Vaults {
|
|
61
|
+
private readonly client: KeyVaultManagementClient;
|
|
21
62
|
|
|
22
63
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
64
|
+
* Initialize a new instance of the class Vaults class.
|
|
65
|
+
* @param client Reference to the service client
|
|
25
66
|
*/
|
|
26
|
-
constructor(client:
|
|
67
|
+
constructor(client: KeyVaultManagementClient) {
|
|
27
68
|
this.client = client;
|
|
28
69
|
}
|
|
29
70
|
|
|
30
71
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @param
|
|
34
|
-
* @param
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.VaultsCreateOrUpdateResponse>
|
|
72
|
+
* The List operation gets information about the vaults associated with the subscription and within the
|
|
73
|
+
* specified resource group.
|
|
74
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
75
|
+
* @param options The options parameters.
|
|
37
76
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
77
|
+
public listByResourceGroup(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
options?: VaultsListByResourceGroupOptionalParams
|
|
80
|
+
): PagedAsyncIterableIterator<Vault> {
|
|
81
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
82
|
+
return {
|
|
83
|
+
next() {
|
|
84
|
+
return iter.next();
|
|
85
|
+
},
|
|
86
|
+
[Symbol.asyncIterator]() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
byPage: () => {
|
|
90
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private async *listByResourceGroupPagingPage(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
options?: VaultsListByResourceGroupOptionalParams
|
|
98
|
+
): AsyncIterableIterator<Vault[]> {
|
|
99
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
100
|
+
yield result.value || [];
|
|
101
|
+
let continuationToken = result.nextLink;
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._listByResourceGroupNext(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
continuationToken,
|
|
106
|
+
options
|
|
107
|
+
);
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
yield result.value || [];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
private async *listByResourceGroupPagingAll(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
options?: VaultsListByResourceGroupOptionalParams
|
|
116
|
+
): AsyncIterableIterator<Vault> {
|
|
117
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
118
|
+
resourceGroupName,
|
|
119
|
+
options
|
|
120
|
+
)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
41
123
|
}
|
|
42
124
|
|
|
43
125
|
/**
|
|
44
|
-
*
|
|
126
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
public listBySubscription(
|
|
130
|
+
options?: VaultsListBySubscriptionOptionalParams
|
|
131
|
+
): PagedAsyncIterableIterator<Vault> {
|
|
132
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
133
|
+
return {
|
|
134
|
+
next() {
|
|
135
|
+
return iter.next();
|
|
136
|
+
},
|
|
137
|
+
[Symbol.asyncIterator]() {
|
|
138
|
+
return this;
|
|
139
|
+
},
|
|
140
|
+
byPage: () => {
|
|
141
|
+
return this.listBySubscriptionPagingPage(options);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
private async *listBySubscriptionPagingPage(
|
|
147
|
+
options?: VaultsListBySubscriptionOptionalParams
|
|
148
|
+
): AsyncIterableIterator<Vault[]> {
|
|
149
|
+
let result = await this._listBySubscription(options);
|
|
150
|
+
yield result.value || [];
|
|
151
|
+
let continuationToken = result.nextLink;
|
|
152
|
+
while (continuationToken) {
|
|
153
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
yield result.value || [];
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
private async *listBySubscriptionPagingAll(
|
|
160
|
+
options?: VaultsListBySubscriptionOptionalParams
|
|
161
|
+
): AsyncIterableIterator<Vault> {
|
|
162
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
163
|
+
yield* page;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Gets information about the deleted vaults in a subscription.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
public listDeleted(
|
|
172
|
+
options?: VaultsListDeletedOptionalParams
|
|
173
|
+
): PagedAsyncIterableIterator<DeletedVault> {
|
|
174
|
+
const iter = this.listDeletedPagingAll(options);
|
|
175
|
+
return {
|
|
176
|
+
next() {
|
|
177
|
+
return iter.next();
|
|
178
|
+
},
|
|
179
|
+
[Symbol.asyncIterator]() {
|
|
180
|
+
return this;
|
|
181
|
+
},
|
|
182
|
+
byPage: () => {
|
|
183
|
+
return this.listDeletedPagingPage(options);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
private async *listDeletedPagingPage(
|
|
189
|
+
options?: VaultsListDeletedOptionalParams
|
|
190
|
+
): AsyncIterableIterator<DeletedVault[]> {
|
|
191
|
+
let result = await this._listDeleted(options);
|
|
192
|
+
yield result.value || [];
|
|
193
|
+
let continuationToken = result.nextLink;
|
|
194
|
+
while (continuationToken) {
|
|
195
|
+
result = await this._listDeletedNext(continuationToken, options);
|
|
196
|
+
continuationToken = result.nextLink;
|
|
197
|
+
yield result.value || [];
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
private async *listDeletedPagingAll(
|
|
202
|
+
options?: VaultsListDeletedOptionalParams
|
|
203
|
+
): AsyncIterableIterator<DeletedVault> {
|
|
204
|
+
for await (const page of this.listDeletedPagingPage(options)) {
|
|
205
|
+
yield* page;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
public list(
|
|
214
|
+
options?: VaultsListOptionalParams
|
|
215
|
+
): PagedAsyncIterableIterator<Resource> {
|
|
216
|
+
const iter = this.listPagingAll(options);
|
|
217
|
+
return {
|
|
218
|
+
next() {
|
|
219
|
+
return iter.next();
|
|
220
|
+
},
|
|
221
|
+
[Symbol.asyncIterator]() {
|
|
222
|
+
return this;
|
|
223
|
+
},
|
|
224
|
+
byPage: () => {
|
|
225
|
+
return this.listPagingPage(options);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
private async *listPagingPage(
|
|
231
|
+
options?: VaultsListOptionalParams
|
|
232
|
+
): AsyncIterableIterator<Resource[]> {
|
|
233
|
+
let result = await this._list(options);
|
|
234
|
+
yield result.value || [];
|
|
235
|
+
let continuationToken = result.nextLink;
|
|
236
|
+
while (continuationToken) {
|
|
237
|
+
result = await this._listNext(continuationToken, options);
|
|
238
|
+
continuationToken = result.nextLink;
|
|
239
|
+
yield result.value || [];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
private async *listPagingAll(
|
|
244
|
+
options?: VaultsListOptionalParams
|
|
245
|
+
): AsyncIterableIterator<Resource> {
|
|
246
|
+
for await (const page of this.listPagingPage(options)) {
|
|
247
|
+
yield* page;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Create or update a key vault in the specified subscription.
|
|
45
253
|
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
46
254
|
* @param vaultName Name of the vault
|
|
47
|
-
* @param parameters Parameters to
|
|
48
|
-
* @param
|
|
49
|
-
* @returns Promise<Models.VaultsUpdateResponse>
|
|
255
|
+
* @param parameters Parameters to create or update the vault
|
|
256
|
+
* @param options The options parameters.
|
|
50
257
|
*/
|
|
51
|
-
|
|
258
|
+
async beginCreateOrUpdate(
|
|
259
|
+
resourceGroupName: string,
|
|
260
|
+
vaultName: string,
|
|
261
|
+
parameters: VaultCreateOrUpdateParameters,
|
|
262
|
+
options?: VaultsCreateOrUpdateOptionalParams
|
|
263
|
+
): Promise<
|
|
264
|
+
PollerLike<
|
|
265
|
+
PollOperationState<VaultsCreateOrUpdateResponse>,
|
|
266
|
+
VaultsCreateOrUpdateResponse
|
|
267
|
+
>
|
|
268
|
+
> {
|
|
269
|
+
const directSendOperation = async (
|
|
270
|
+
args: coreClient.OperationArguments,
|
|
271
|
+
spec: coreClient.OperationSpec
|
|
272
|
+
): Promise<VaultsCreateOrUpdateResponse> => {
|
|
273
|
+
return this.client.sendOperationRequest(args, spec);
|
|
274
|
+
};
|
|
275
|
+
const sendOperation = async (
|
|
276
|
+
args: coreClient.OperationArguments,
|
|
277
|
+
spec: coreClient.OperationSpec
|
|
278
|
+
) => {
|
|
279
|
+
let currentRawResponse:
|
|
280
|
+
| coreClient.FullOperationResponse
|
|
281
|
+
| undefined = undefined;
|
|
282
|
+
const providedCallback = args.options?.onResponse;
|
|
283
|
+
const callback: coreClient.RawResponseCallback = (
|
|
284
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
285
|
+
flatResponse: unknown
|
|
286
|
+
) => {
|
|
287
|
+
currentRawResponse = rawResponse;
|
|
288
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
289
|
+
};
|
|
290
|
+
const updatedArgs = {
|
|
291
|
+
...args,
|
|
292
|
+
options: {
|
|
293
|
+
...args.options,
|
|
294
|
+
onResponse: callback
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
298
|
+
return {
|
|
299
|
+
flatResponse,
|
|
300
|
+
rawResponse: {
|
|
301
|
+
statusCode: currentRawResponse!.status,
|
|
302
|
+
body: currentRawResponse!.parsedBody,
|
|
303
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
const lro = new LroImpl(
|
|
309
|
+
sendOperation,
|
|
310
|
+
{ resourceGroupName, vaultName, parameters, options },
|
|
311
|
+
createOrUpdateOperationSpec
|
|
312
|
+
);
|
|
313
|
+
return new LroEngine(lro, {
|
|
314
|
+
resumeFrom: options?.resumeFrom,
|
|
315
|
+
intervalInMs: options?.updateIntervalInMs
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
|
|
52
319
|
/**
|
|
320
|
+
* Create or update a key vault in the specified subscription.
|
|
53
321
|
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
54
322
|
* @param vaultName Name of the vault
|
|
55
|
-
* @param parameters Parameters to
|
|
56
|
-
* @param
|
|
323
|
+
* @param parameters Parameters to create or update the vault
|
|
324
|
+
* @param options The options parameters.
|
|
57
325
|
*/
|
|
58
|
-
|
|
326
|
+
async beginCreateOrUpdateAndWait(
|
|
327
|
+
resourceGroupName: string,
|
|
328
|
+
vaultName: string,
|
|
329
|
+
parameters: VaultCreateOrUpdateParameters,
|
|
330
|
+
options?: VaultsCreateOrUpdateOptionalParams
|
|
331
|
+
): Promise<VaultsCreateOrUpdateResponse> {
|
|
332
|
+
const poller = await this.beginCreateOrUpdate(
|
|
333
|
+
resourceGroupName,
|
|
334
|
+
vaultName,
|
|
335
|
+
parameters,
|
|
336
|
+
options
|
|
337
|
+
);
|
|
338
|
+
return poller.pollUntilDone();
|
|
339
|
+
}
|
|
340
|
+
|
|
59
341
|
/**
|
|
342
|
+
* Update a key vault in the specified subscription.
|
|
60
343
|
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
61
344
|
* @param vaultName Name of the vault
|
|
62
345
|
* @param parameters Parameters to patch the vault
|
|
63
|
-
* @param options The
|
|
64
|
-
* @param callback The callback
|
|
346
|
+
* @param options The options parameters.
|
|
65
347
|
*/
|
|
66
|
-
update(
|
|
67
|
-
|
|
348
|
+
update(
|
|
349
|
+
resourceGroupName: string,
|
|
350
|
+
vaultName: string,
|
|
351
|
+
parameters: VaultPatchParameters,
|
|
352
|
+
options?: VaultsUpdateOptionalParams
|
|
353
|
+
): Promise<VaultsUpdateResponse> {
|
|
68
354
|
return this.client.sendOperationRequest(
|
|
69
|
-
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
parameters,
|
|
73
|
-
options
|
|
74
|
-
},
|
|
75
|
-
updateOperationSpec,
|
|
76
|
-
callback) as Promise<Models.VaultsUpdateResponse>;
|
|
355
|
+
{ resourceGroupName, vaultName, parameters, options },
|
|
356
|
+
updateOperationSpec
|
|
357
|
+
);
|
|
77
358
|
}
|
|
78
359
|
|
|
79
360
|
/**
|
|
80
361
|
* Deletes the specified Azure key vault.
|
|
81
362
|
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
82
363
|
* @param vaultName The name of the vault to delete
|
|
83
|
-
* @param
|
|
84
|
-
* @returns Promise<msRest.RestResponse>
|
|
85
|
-
*/
|
|
86
|
-
deleteMethod(resourceGroupName: string, vaultName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
89
|
-
* @param vaultName The name of the vault to delete
|
|
90
|
-
* @param callback The callback
|
|
91
|
-
*/
|
|
92
|
-
deleteMethod(resourceGroupName: string, vaultName: string, callback: msRest.ServiceCallback<void>): void;
|
|
93
|
-
/**
|
|
94
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
95
|
-
* @param vaultName The name of the vault to delete
|
|
96
|
-
* @param options The optional parameters
|
|
97
|
-
* @param callback The callback
|
|
364
|
+
* @param options The options parameters.
|
|
98
365
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
366
|
+
delete(
|
|
367
|
+
resourceGroupName: string,
|
|
368
|
+
vaultName: string,
|
|
369
|
+
options?: VaultsDeleteOptionalParams
|
|
370
|
+
): Promise<void> {
|
|
101
371
|
return this.client.sendOperationRequest(
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
options
|
|
106
|
-
},
|
|
107
|
-
deleteMethodOperationSpec,
|
|
108
|
-
callback);
|
|
372
|
+
{ resourceGroupName, vaultName, options },
|
|
373
|
+
deleteOperationSpec
|
|
374
|
+
);
|
|
109
375
|
}
|
|
110
376
|
|
|
111
377
|
/**
|
|
112
378
|
* Gets the specified Azure key vault.
|
|
113
379
|
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
114
380
|
* @param vaultName The name of the vault.
|
|
115
|
-
* @param
|
|
116
|
-
* @returns Promise<Models.VaultsGetResponse>
|
|
381
|
+
* @param options The options parameters.
|
|
117
382
|
*/
|
|
118
|
-
get(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
*/
|
|
124
|
-
get(resourceGroupName: string, vaultName: string, callback: msRest.ServiceCallback<Models.Vault>): void;
|
|
125
|
-
/**
|
|
126
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
127
|
-
* @param vaultName The name of the vault.
|
|
128
|
-
* @param options The optional parameters
|
|
129
|
-
* @param callback The callback
|
|
130
|
-
*/
|
|
131
|
-
get(resourceGroupName: string, vaultName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Vault>): void;
|
|
132
|
-
get(resourceGroupName: string, vaultName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Vault>, callback?: msRest.ServiceCallback<Models.Vault>): Promise<Models.VaultsGetResponse> {
|
|
383
|
+
get(
|
|
384
|
+
resourceGroupName: string,
|
|
385
|
+
vaultName: string,
|
|
386
|
+
options?: VaultsGetOptionalParams
|
|
387
|
+
): Promise<VaultsGetResponse> {
|
|
133
388
|
return this.client.sendOperationRequest(
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
options
|
|
138
|
-
},
|
|
139
|
-
getOperationSpec,
|
|
140
|
-
callback) as Promise<Models.VaultsGetResponse>;
|
|
389
|
+
{ resourceGroupName, vaultName, options },
|
|
390
|
+
getOperationSpec
|
|
391
|
+
);
|
|
141
392
|
}
|
|
142
393
|
|
|
143
394
|
/**
|
|
144
395
|
* Update access policies in a key vault in the specified subscription.
|
|
145
396
|
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
146
397
|
* @param vaultName Name of the vault
|
|
147
|
-
* @param operationKind Name of the operation
|
|
148
|
-
* @param parameters Access policy to merge into the vault
|
|
149
|
-
* @param [options] The optional parameters
|
|
150
|
-
* @returns Promise<Models.VaultsUpdateAccessPolicyResponse>
|
|
151
|
-
*/
|
|
152
|
-
updateAccessPolicy(resourceGroupName: string, vaultName: string, operationKind: Models.AccessPolicyUpdateKind, parameters: Models.VaultAccessPolicyParameters, options?: msRest.RequestOptionsBase): Promise<Models.VaultsUpdateAccessPolicyResponse>;
|
|
153
|
-
/**
|
|
154
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
155
|
-
* @param vaultName Name of the vault
|
|
156
|
-
* @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove'
|
|
157
|
-
* @param parameters Access policy to merge into the vault
|
|
158
|
-
* @param callback The callback
|
|
159
|
-
*/
|
|
160
|
-
updateAccessPolicy(resourceGroupName: string, vaultName: string, operationKind: Models.AccessPolicyUpdateKind, parameters: Models.VaultAccessPolicyParameters, callback: msRest.ServiceCallback<Models.VaultAccessPolicyParameters>): void;
|
|
161
|
-
/**
|
|
162
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
163
|
-
* @param vaultName Name of the vault
|
|
164
|
-
* @param operationKind Name of the operation. Possible values include: 'add', 'replace', 'remove'
|
|
398
|
+
* @param operationKind Name of the operation
|
|
165
399
|
* @param parameters Access policy to merge into the vault
|
|
166
|
-
* @param options The
|
|
167
|
-
* @param callback The callback
|
|
400
|
+
* @param options The options parameters.
|
|
168
401
|
*/
|
|
169
|
-
updateAccessPolicy(
|
|
170
|
-
|
|
402
|
+
updateAccessPolicy(
|
|
403
|
+
resourceGroupName: string,
|
|
404
|
+
vaultName: string,
|
|
405
|
+
operationKind: AccessPolicyUpdateKind,
|
|
406
|
+
parameters: VaultAccessPolicyParameters,
|
|
407
|
+
options?: VaultsUpdateAccessPolicyOptionalParams
|
|
408
|
+
): Promise<VaultsUpdateAccessPolicyResponse> {
|
|
171
409
|
return this.client.sendOperationRequest(
|
|
172
|
-
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
operationKind,
|
|
176
|
-
parameters,
|
|
177
|
-
options
|
|
178
|
-
},
|
|
179
|
-
updateAccessPolicyOperationSpec,
|
|
180
|
-
callback) as Promise<Models.VaultsUpdateAccessPolicyResponse>;
|
|
410
|
+
{ resourceGroupName, vaultName, operationKind, parameters, options },
|
|
411
|
+
updateAccessPolicyOperationSpec
|
|
412
|
+
);
|
|
181
413
|
}
|
|
182
414
|
|
|
183
415
|
/**
|
|
184
|
-
* The List operation gets information about the vaults associated with the subscription and within
|
|
185
|
-
*
|
|
416
|
+
* The List operation gets information about the vaults associated with the subscription and within the
|
|
417
|
+
* specified resource group.
|
|
186
418
|
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
187
|
-
* @param
|
|
188
|
-
* @returns Promise<Models.VaultsListByResourceGroupResponse>
|
|
419
|
+
* @param options The options parameters.
|
|
189
420
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
*/
|
|
195
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.VaultListResult>): void;
|
|
196
|
-
/**
|
|
197
|
-
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
198
|
-
* @param options The optional parameters
|
|
199
|
-
* @param callback The callback
|
|
200
|
-
*/
|
|
201
|
-
listByResourceGroup(resourceGroupName: string, options: Models.VaultsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.VaultListResult>): void;
|
|
202
|
-
listByResourceGroup(resourceGroupName: string, options?: Models.VaultsListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.VaultListResult>, callback?: msRest.ServiceCallback<Models.VaultListResult>): Promise<Models.VaultsListByResourceGroupResponse> {
|
|
421
|
+
private _listByResourceGroup(
|
|
422
|
+
resourceGroupName: string,
|
|
423
|
+
options?: VaultsListByResourceGroupOptionalParams
|
|
424
|
+
): Promise<VaultsListByResourceGroupResponse> {
|
|
203
425
|
return this.client.sendOperationRequest(
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
listByResourceGroupOperationSpec,
|
|
209
|
-
callback) as Promise<Models.VaultsListByResourceGroupResponse>;
|
|
426
|
+
{ resourceGroupName, options },
|
|
427
|
+
listByResourceGroupOperationSpec
|
|
428
|
+
);
|
|
210
429
|
}
|
|
211
430
|
|
|
212
431
|
/**
|
|
213
432
|
* The List operation gets information about the vaults associated with the subscription.
|
|
214
|
-
* @param
|
|
215
|
-
* @returns Promise<Models.VaultsListBySubscriptionResponse>
|
|
216
|
-
*/
|
|
217
|
-
listBySubscription(options?: Models.VaultsListBySubscriptionOptionalParams): Promise<Models.VaultsListBySubscriptionResponse>;
|
|
218
|
-
/**
|
|
219
|
-
* @param callback The callback
|
|
433
|
+
* @param options The options parameters.
|
|
220
434
|
*/
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* @param callback The callback
|
|
225
|
-
*/
|
|
226
|
-
listBySubscription(options: Models.VaultsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.VaultListResult>): void;
|
|
227
|
-
listBySubscription(options?: Models.VaultsListBySubscriptionOptionalParams | msRest.ServiceCallback<Models.VaultListResult>, callback?: msRest.ServiceCallback<Models.VaultListResult>): Promise<Models.VaultsListBySubscriptionResponse> {
|
|
435
|
+
private _listBySubscription(
|
|
436
|
+
options?: VaultsListBySubscriptionOptionalParams
|
|
437
|
+
): Promise<VaultsListBySubscriptionResponse> {
|
|
228
438
|
return this.client.sendOperationRequest(
|
|
229
|
-
{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
listBySubscriptionOperationSpec,
|
|
233
|
-
callback) as Promise<Models.VaultsListBySubscriptionResponse>;
|
|
439
|
+
{ options },
|
|
440
|
+
listBySubscriptionOperationSpec
|
|
441
|
+
);
|
|
234
442
|
}
|
|
235
443
|
|
|
236
444
|
/**
|
|
237
445
|
* Gets information about the deleted vaults in a subscription.
|
|
238
|
-
* @param
|
|
239
|
-
* @returns Promise<Models.VaultsListDeletedResponse>
|
|
240
|
-
*/
|
|
241
|
-
listDeleted(options?: msRest.RequestOptionsBase): Promise<Models.VaultsListDeletedResponse>;
|
|
242
|
-
/**
|
|
243
|
-
* @param callback The callback
|
|
446
|
+
* @param options The options parameters.
|
|
244
447
|
*/
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
* @param callback The callback
|
|
249
|
-
*/
|
|
250
|
-
listDeleted(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeletedVaultListResult>): void;
|
|
251
|
-
listDeleted(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeletedVaultListResult>, callback?: msRest.ServiceCallback<Models.DeletedVaultListResult>): Promise<Models.VaultsListDeletedResponse> {
|
|
448
|
+
private _listDeleted(
|
|
449
|
+
options?: VaultsListDeletedOptionalParams
|
|
450
|
+
): Promise<VaultsListDeletedResponse> {
|
|
252
451
|
return this.client.sendOperationRequest(
|
|
253
|
-
{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
listDeletedOperationSpec,
|
|
257
|
-
callback) as Promise<Models.VaultsListDeletedResponse>;
|
|
452
|
+
{ options },
|
|
453
|
+
listDeletedOperationSpec
|
|
454
|
+
);
|
|
258
455
|
}
|
|
259
456
|
|
|
260
457
|
/**
|
|
261
458
|
* Gets the deleted Azure key vault.
|
|
262
459
|
* @param vaultName The name of the vault.
|
|
263
460
|
* @param location The location of the deleted vault.
|
|
264
|
-
* @param
|
|
265
|
-
* @returns Promise<Models.VaultsGetDeletedResponse>
|
|
461
|
+
* @param options The options parameters.
|
|
266
462
|
*/
|
|
267
|
-
getDeleted(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
*/
|
|
273
|
-
getDeleted(vaultName: string, location: string, callback: msRest.ServiceCallback<Models.DeletedVault>): void;
|
|
274
|
-
/**
|
|
275
|
-
* @param vaultName The name of the vault.
|
|
276
|
-
* @param location The location of the deleted vault.
|
|
277
|
-
* @param options The optional parameters
|
|
278
|
-
* @param callback The callback
|
|
279
|
-
*/
|
|
280
|
-
getDeleted(vaultName: string, location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeletedVault>): void;
|
|
281
|
-
getDeleted(vaultName: string, location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeletedVault>, callback?: msRest.ServiceCallback<Models.DeletedVault>): Promise<Models.VaultsGetDeletedResponse> {
|
|
463
|
+
getDeleted(
|
|
464
|
+
vaultName: string,
|
|
465
|
+
location: string,
|
|
466
|
+
options?: VaultsGetDeletedOptionalParams
|
|
467
|
+
): Promise<VaultsGetDeletedResponse> {
|
|
282
468
|
return this.client.sendOperationRequest(
|
|
283
|
-
{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
options
|
|
287
|
-
},
|
|
288
|
-
getDeletedOperationSpec,
|
|
289
|
-
callback) as Promise<Models.VaultsGetDeletedResponse>;
|
|
469
|
+
{ vaultName, location, options },
|
|
470
|
+
getDeletedOperationSpec
|
|
471
|
+
);
|
|
290
472
|
}
|
|
291
473
|
|
|
292
474
|
/**
|
|
293
475
|
* Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
|
|
294
476
|
* @param vaultName The name of the soft-deleted vault.
|
|
295
477
|
* @param location The location of the soft-deleted vault.
|
|
296
|
-
* @param
|
|
297
|
-
* @returns Promise<msRest.RestResponse>
|
|
478
|
+
* @param options The options parameters.
|
|
298
479
|
*/
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
480
|
+
async beginPurgeDeleted(
|
|
481
|
+
vaultName: string,
|
|
482
|
+
location: string,
|
|
483
|
+
options?: VaultsPurgeDeletedOptionalParams
|
|
484
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
485
|
+
const directSendOperation = async (
|
|
486
|
+
args: coreClient.OperationArguments,
|
|
487
|
+
spec: coreClient.OperationSpec
|
|
488
|
+
): Promise<void> => {
|
|
489
|
+
return this.client.sendOperationRequest(args, spec);
|
|
490
|
+
};
|
|
491
|
+
const sendOperation = async (
|
|
492
|
+
args: coreClient.OperationArguments,
|
|
493
|
+
spec: coreClient.OperationSpec
|
|
494
|
+
) => {
|
|
495
|
+
let currentRawResponse:
|
|
496
|
+
| coreClient.FullOperationResponse
|
|
497
|
+
| undefined = undefined;
|
|
498
|
+
const providedCallback = args.options?.onResponse;
|
|
499
|
+
const callback: coreClient.RawResponseCallback = (
|
|
500
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
501
|
+
flatResponse: unknown
|
|
502
|
+
) => {
|
|
503
|
+
currentRawResponse = rawResponse;
|
|
504
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
505
|
+
};
|
|
506
|
+
const updatedArgs = {
|
|
507
|
+
...args,
|
|
508
|
+
options: {
|
|
509
|
+
...args.options,
|
|
510
|
+
onResponse: callback
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
514
|
+
return {
|
|
515
|
+
flatResponse,
|
|
516
|
+
rawResponse: {
|
|
517
|
+
statusCode: currentRawResponse!.status,
|
|
518
|
+
body: currentRawResponse!.parsedBody,
|
|
519
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
};
|
|
303
523
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
list(callback: msRest.ServiceCallback<Models.ResourceListResult>): void;
|
|
314
|
-
/**
|
|
315
|
-
* @param options The optional parameters
|
|
316
|
-
* @param callback The callback
|
|
317
|
-
*/
|
|
318
|
-
list(options: Models.VaultsListOptionalParams, callback: msRest.ServiceCallback<Models.ResourceListResult>): void;
|
|
319
|
-
list(options?: Models.VaultsListOptionalParams | msRest.ServiceCallback<Models.ResourceListResult>, callback?: msRest.ServiceCallback<Models.ResourceListResult>): Promise<Models.VaultsListResponse> {
|
|
320
|
-
return this.client.sendOperationRequest(
|
|
321
|
-
{
|
|
322
|
-
options
|
|
323
|
-
},
|
|
324
|
-
listOperationSpec,
|
|
325
|
-
callback) as Promise<Models.VaultsListResponse>;
|
|
524
|
+
const lro = new LroImpl(
|
|
525
|
+
sendOperation,
|
|
526
|
+
{ vaultName, location, options },
|
|
527
|
+
purgeDeletedOperationSpec
|
|
528
|
+
);
|
|
529
|
+
return new LroEngine(lro, {
|
|
530
|
+
resumeFrom: options?.resumeFrom,
|
|
531
|
+
intervalInMs: options?.updateIntervalInMs
|
|
532
|
+
});
|
|
326
533
|
}
|
|
327
534
|
|
|
328
535
|
/**
|
|
329
|
-
*
|
|
330
|
-
* @param vaultName The name of the vault.
|
|
331
|
-
* @param
|
|
332
|
-
* @
|
|
333
|
-
*/
|
|
334
|
-
checkNameAvailability(vaultName: Models.VaultCheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise<Models.VaultsCheckNameAvailabilityResponse>;
|
|
335
|
-
/**
|
|
336
|
-
* @param vaultName The name of the vault.
|
|
337
|
-
* @param callback The callback
|
|
338
|
-
*/
|
|
339
|
-
checkNameAvailability(vaultName: Models.VaultCheckNameAvailabilityParameters, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): void;
|
|
340
|
-
/**
|
|
341
|
-
* @param vaultName The name of the vault.
|
|
342
|
-
* @param options The optional parameters
|
|
343
|
-
* @param callback The callback
|
|
536
|
+
* Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
|
|
537
|
+
* @param vaultName The name of the soft-deleted vault.
|
|
538
|
+
* @param location The location of the soft-deleted vault.
|
|
539
|
+
* @param options The options parameters.
|
|
344
540
|
*/
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
checkNameAvailabilityOperationSpec,
|
|
353
|
-
callback) as Promise<Models.VaultsCheckNameAvailabilityResponse>;
|
|
541
|
+
async beginPurgeDeletedAndWait(
|
|
542
|
+
vaultName: string,
|
|
543
|
+
location: string,
|
|
544
|
+
options?: VaultsPurgeDeletedOptionalParams
|
|
545
|
+
): Promise<void> {
|
|
546
|
+
const poller = await this.beginPurgeDeleted(vaultName, location, options);
|
|
547
|
+
return poller.pollUntilDone();
|
|
354
548
|
}
|
|
355
549
|
|
|
356
550
|
/**
|
|
357
|
-
*
|
|
358
|
-
* @param
|
|
359
|
-
* @param vaultName Name of the vault
|
|
360
|
-
* @param parameters Parameters to create or update the vault
|
|
361
|
-
* @param [options] The optional parameters
|
|
362
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
551
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
552
|
+
* @param options The options parameters.
|
|
363
553
|
*/
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
vaultName,
|
|
369
|
-
parameters,
|
|
370
|
-
options
|
|
371
|
-
},
|
|
372
|
-
beginCreateOrUpdateOperationSpec,
|
|
373
|
-
options);
|
|
554
|
+
private _list(
|
|
555
|
+
options?: VaultsListOptionalParams
|
|
556
|
+
): Promise<VaultsListResponse> {
|
|
557
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
374
558
|
}
|
|
375
559
|
|
|
376
560
|
/**
|
|
377
|
-
*
|
|
378
|
-
* @param vaultName The name of the
|
|
379
|
-
* @param
|
|
380
|
-
* @param [options] The optional parameters
|
|
381
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
561
|
+
* Checks that the vault name is valid and is not already in use.
|
|
562
|
+
* @param vaultName The name of the vault.
|
|
563
|
+
* @param options The options parameters.
|
|
382
564
|
*/
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
options);
|
|
565
|
+
checkNameAvailability(
|
|
566
|
+
vaultName: VaultCheckNameAvailabilityParameters,
|
|
567
|
+
options?: VaultsCheckNameAvailabilityOptionalParams
|
|
568
|
+
): Promise<VaultsCheckNameAvailabilityResponse> {
|
|
569
|
+
return this.client.sendOperationRequest(
|
|
570
|
+
{ vaultName, options },
|
|
571
|
+
checkNameAvailabilityOperationSpec
|
|
572
|
+
);
|
|
392
573
|
}
|
|
393
574
|
|
|
394
575
|
/**
|
|
395
|
-
*
|
|
396
|
-
* the
|
|
397
|
-
* @param
|
|
398
|
-
* @param
|
|
399
|
-
* @returns Promise<Models.VaultsListByResourceGroupNextResponse>
|
|
400
|
-
*/
|
|
401
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VaultsListByResourceGroupNextResponse>;
|
|
402
|
-
/**
|
|
403
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
404
|
-
* @param callback The callback
|
|
405
|
-
*/
|
|
406
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VaultListResult>): void;
|
|
407
|
-
/**
|
|
408
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
409
|
-
* @param options The optional parameters
|
|
410
|
-
* @param callback The callback
|
|
576
|
+
* ListByResourceGroupNext
|
|
577
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
578
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
579
|
+
* @param options The options parameters.
|
|
411
580
|
*/
|
|
412
|
-
|
|
413
|
-
|
|
581
|
+
private _listByResourceGroupNext(
|
|
582
|
+
resourceGroupName: string,
|
|
583
|
+
nextLink: string,
|
|
584
|
+
options?: VaultsListByResourceGroupNextOptionalParams
|
|
585
|
+
): Promise<VaultsListByResourceGroupNextResponse> {
|
|
414
586
|
return this.client.sendOperationRequest(
|
|
415
|
-
{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
listByResourceGroupNextOperationSpec,
|
|
420
|
-
callback) as Promise<Models.VaultsListByResourceGroupNextResponse>;
|
|
587
|
+
{ resourceGroupName, nextLink, options },
|
|
588
|
+
listByResourceGroupNextOperationSpec
|
|
589
|
+
);
|
|
421
590
|
}
|
|
422
591
|
|
|
423
592
|
/**
|
|
424
|
-
*
|
|
425
|
-
* @param
|
|
426
|
-
* @param
|
|
427
|
-
* @returns Promise<Models.VaultsListBySubscriptionNextResponse>
|
|
428
|
-
*/
|
|
429
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VaultsListBySubscriptionNextResponse>;
|
|
430
|
-
/**
|
|
431
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
432
|
-
* @param callback The callback
|
|
593
|
+
* ListBySubscriptionNext
|
|
594
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
595
|
+
* @param options The options parameters.
|
|
433
596
|
*/
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
* @param callback The callback
|
|
439
|
-
*/
|
|
440
|
-
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VaultListResult>): void;
|
|
441
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VaultListResult>, callback?: msRest.ServiceCallback<Models.VaultListResult>): Promise<Models.VaultsListBySubscriptionNextResponse> {
|
|
597
|
+
private _listBySubscriptionNext(
|
|
598
|
+
nextLink: string,
|
|
599
|
+
options?: VaultsListBySubscriptionNextOptionalParams
|
|
600
|
+
): Promise<VaultsListBySubscriptionNextResponse> {
|
|
442
601
|
return this.client.sendOperationRequest(
|
|
443
|
-
{
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
listBySubscriptionNextOperationSpec,
|
|
448
|
-
callback) as Promise<Models.VaultsListBySubscriptionNextResponse>;
|
|
602
|
+
{ nextLink, options },
|
|
603
|
+
listBySubscriptionNextOperationSpec
|
|
604
|
+
);
|
|
449
605
|
}
|
|
450
606
|
|
|
451
607
|
/**
|
|
452
|
-
*
|
|
453
|
-
* @param
|
|
454
|
-
* @param
|
|
455
|
-
* @returns Promise<Models.VaultsListDeletedNextResponse>
|
|
456
|
-
*/
|
|
457
|
-
listDeletedNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VaultsListDeletedNextResponse>;
|
|
458
|
-
/**
|
|
459
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
460
|
-
* @param callback The callback
|
|
608
|
+
* ListDeletedNext
|
|
609
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeleted method.
|
|
610
|
+
* @param options The options parameters.
|
|
461
611
|
*/
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
* @param callback The callback
|
|
467
|
-
*/
|
|
468
|
-
listDeletedNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DeletedVaultListResult>): void;
|
|
469
|
-
listDeletedNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DeletedVaultListResult>, callback?: msRest.ServiceCallback<Models.DeletedVaultListResult>): Promise<Models.VaultsListDeletedNextResponse> {
|
|
612
|
+
private _listDeletedNext(
|
|
613
|
+
nextLink: string,
|
|
614
|
+
options?: VaultsListDeletedNextOptionalParams
|
|
615
|
+
): Promise<VaultsListDeletedNextResponse> {
|
|
470
616
|
return this.client.sendOperationRequest(
|
|
471
|
-
{
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
listDeletedNextOperationSpec,
|
|
476
|
-
callback) as Promise<Models.VaultsListDeletedNextResponse>;
|
|
617
|
+
{ nextLink, options },
|
|
618
|
+
listDeletedNextOperationSpec
|
|
619
|
+
);
|
|
477
620
|
}
|
|
478
621
|
|
|
479
622
|
/**
|
|
480
|
-
*
|
|
481
|
-
* @param
|
|
482
|
-
* @param
|
|
483
|
-
* @returns Promise<Models.VaultsListNextResponse>
|
|
623
|
+
* ListNext
|
|
624
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
625
|
+
* @param options The options parameters.
|
|
484
626
|
*/
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
*/
|
|
490
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ResourceListResult>): void;
|
|
491
|
-
/**
|
|
492
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
493
|
-
* @param options The optional parameters
|
|
494
|
-
* @param callback The callback
|
|
495
|
-
*/
|
|
496
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceListResult>): void;
|
|
497
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceListResult>, callback?: msRest.ServiceCallback<Models.ResourceListResult>): Promise<Models.VaultsListNextResponse> {
|
|
627
|
+
private _listNext(
|
|
628
|
+
nextLink: string,
|
|
629
|
+
options?: VaultsListNextOptionalParams
|
|
630
|
+
): Promise<VaultsListNextResponse> {
|
|
498
631
|
return this.client.sendOperationRequest(
|
|
499
|
-
{
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
},
|
|
503
|
-
listNextOperationSpec,
|
|
504
|
-
callback) as Promise<Models.VaultsListNextResponse>;
|
|
632
|
+
{ nextLink, options },
|
|
633
|
+
listNextOperationSpec
|
|
634
|
+
);
|
|
505
635
|
}
|
|
506
636
|
}
|
|
507
|
-
|
|
508
637
|
// Operation Specifications
|
|
509
|
-
const serializer =
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
path:
|
|
638
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
639
|
+
|
|
640
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
641
|
+
path:
|
|
642
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
643
|
+
httpMethod: "PUT",
|
|
644
|
+
responses: {
|
|
645
|
+
200: {
|
|
646
|
+
bodyMapper: Mappers.Vault
|
|
647
|
+
},
|
|
648
|
+
201: {
|
|
649
|
+
bodyMapper: Mappers.Vault
|
|
650
|
+
},
|
|
651
|
+
202: {
|
|
652
|
+
bodyMapper: Mappers.Vault
|
|
653
|
+
},
|
|
654
|
+
204: {
|
|
655
|
+
bodyMapper: Mappers.Vault
|
|
656
|
+
},
|
|
657
|
+
400: {
|
|
658
|
+
bodyMapper: Mappers.CloudError,
|
|
659
|
+
isError: true
|
|
660
|
+
},
|
|
661
|
+
409: {
|
|
662
|
+
bodyMapper: Mappers.CloudError,
|
|
663
|
+
isError: true
|
|
664
|
+
},
|
|
665
|
+
default: {
|
|
666
|
+
bodyMapper: Mappers.CloudError
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
requestBody: Parameters.parameters,
|
|
670
|
+
queryParameters: [Parameters.apiVersion],
|
|
513
671
|
urlParameters: [
|
|
672
|
+
Parameters.$host,
|
|
514
673
|
Parameters.resourceGroupName,
|
|
515
|
-
Parameters.
|
|
674
|
+
Parameters.vaultName,
|
|
516
675
|
Parameters.subscriptionId
|
|
517
676
|
],
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
mapper: {
|
|
527
|
-
...Mappers.VaultPatchParameters,
|
|
528
|
-
required: true
|
|
529
|
-
}
|
|
530
|
-
},
|
|
677
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
678
|
+
mediaType: "json",
|
|
679
|
+
serializer
|
|
680
|
+
};
|
|
681
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
682
|
+
path:
|
|
683
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
684
|
+
httpMethod: "PATCH",
|
|
531
685
|
responses: {
|
|
532
686
|
200: {
|
|
533
687
|
bodyMapper: Mappers.Vault
|
|
@@ -535,51 +689,59 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
535
689
|
201: {
|
|
536
690
|
bodyMapper: Mappers.Vault
|
|
537
691
|
},
|
|
692
|
+
400: {
|
|
693
|
+
bodyMapper: Mappers.CloudError,
|
|
694
|
+
isError: true
|
|
695
|
+
},
|
|
696
|
+
409: {
|
|
697
|
+
bodyMapper: Mappers.CloudError,
|
|
698
|
+
isError: true
|
|
699
|
+
},
|
|
538
700
|
default: {
|
|
539
701
|
bodyMapper: Mappers.CloudError
|
|
540
702
|
}
|
|
541
703
|
},
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
546
|
-
httpMethod: "DELETE",
|
|
547
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
704
|
+
requestBody: Parameters.parameters1,
|
|
705
|
+
queryParameters: [Parameters.apiVersion],
|
|
548
706
|
urlParameters: [
|
|
707
|
+
Parameters.$host,
|
|
549
708
|
Parameters.resourceGroupName,
|
|
550
|
-
Parameters.
|
|
709
|
+
Parameters.vaultName,
|
|
551
710
|
Parameters.subscriptionId
|
|
552
711
|
],
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
712
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
713
|
+
mediaType: "json",
|
|
714
|
+
serializer
|
|
715
|
+
};
|
|
716
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
717
|
+
path:
|
|
718
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
719
|
+
httpMethod: "DELETE",
|
|
559
720
|
responses: {
|
|
560
721
|
200: {},
|
|
561
722
|
204: {},
|
|
723
|
+
400: {
|
|
724
|
+
bodyMapper: Mappers.CloudError,
|
|
725
|
+
isError: true
|
|
726
|
+
},
|
|
562
727
|
default: {
|
|
563
728
|
bodyMapper: Mappers.CloudError
|
|
564
729
|
}
|
|
565
730
|
},
|
|
566
|
-
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
570
|
-
httpMethod: "GET",
|
|
571
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
731
|
+
queryParameters: [Parameters.apiVersion],
|
|
572
732
|
urlParameters: [
|
|
733
|
+
Parameters.$host,
|
|
573
734
|
Parameters.resourceGroupName,
|
|
574
|
-
Parameters.
|
|
575
|
-
Parameters.
|
|
576
|
-
],
|
|
577
|
-
queryParameters: [
|
|
578
|
-
Parameters.apiVersion0
|
|
579
|
-
],
|
|
580
|
-
headerParameters: [
|
|
581
|
-
Parameters.acceptLanguage
|
|
735
|
+
Parameters.subscriptionId,
|
|
736
|
+
Parameters.vaultName1
|
|
582
737
|
],
|
|
738
|
+
headerParameters: [Parameters.accept],
|
|
739
|
+
serializer
|
|
740
|
+
};
|
|
741
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
742
|
+
path:
|
|
743
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
744
|
+
httpMethod: "GET",
|
|
583
745
|
responses: {
|
|
584
746
|
200: {
|
|
585
747
|
bodyMapper: Mappers.Vault
|
|
@@ -588,31 +750,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
588
750
|
bodyMapper: Mappers.CloudError
|
|
589
751
|
}
|
|
590
752
|
},
|
|
591
|
-
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
const updateAccessPolicyOperationSpec: msRest.OperationSpec = {
|
|
595
|
-
httpMethod: "PUT",
|
|
596
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}",
|
|
753
|
+
queryParameters: [Parameters.apiVersion],
|
|
597
754
|
urlParameters: [
|
|
755
|
+
Parameters.$host,
|
|
598
756
|
Parameters.resourceGroupName,
|
|
599
|
-
Parameters.
|
|
600
|
-
Parameters.
|
|
601
|
-
Parameters.subscriptionId
|
|
602
|
-
],
|
|
603
|
-
queryParameters: [
|
|
604
|
-
Parameters.apiVersion0
|
|
757
|
+
Parameters.subscriptionId,
|
|
758
|
+
Parameters.vaultName1
|
|
605
759
|
],
|
|
606
|
-
headerParameters: [
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
required: true
|
|
614
|
-
}
|
|
615
|
-
},
|
|
760
|
+
headerParameters: [Parameters.accept],
|
|
761
|
+
serializer
|
|
762
|
+
};
|
|
763
|
+
const updateAccessPolicyOperationSpec: coreClient.OperationSpec = {
|
|
764
|
+
path:
|
|
765
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}",
|
|
766
|
+
httpMethod: "PUT",
|
|
616
767
|
responses: {
|
|
617
768
|
200: {
|
|
618
769
|
bodyMapper: Mappers.VaultAccessPolicyParameters
|
|
@@ -620,27 +771,39 @@ const updateAccessPolicyOperationSpec: msRest.OperationSpec = {
|
|
|
620
771
|
201: {
|
|
621
772
|
bodyMapper: Mappers.VaultAccessPolicyParameters
|
|
622
773
|
},
|
|
774
|
+
400: {
|
|
775
|
+
bodyMapper: Mappers.CloudError,
|
|
776
|
+
isError: true
|
|
777
|
+
},
|
|
778
|
+
404: {
|
|
779
|
+
bodyMapper: Mappers.CloudError,
|
|
780
|
+
isError: true
|
|
781
|
+
},
|
|
782
|
+
409: {
|
|
783
|
+
bodyMapper: Mappers.CloudError,
|
|
784
|
+
isError: true
|
|
785
|
+
},
|
|
623
786
|
default: {
|
|
624
787
|
bodyMapper: Mappers.CloudError
|
|
625
788
|
}
|
|
626
789
|
},
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
631
|
-
httpMethod: "GET",
|
|
632
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults",
|
|
790
|
+
requestBody: Parameters.parameters2,
|
|
791
|
+
queryParameters: [Parameters.apiVersion],
|
|
633
792
|
urlParameters: [
|
|
793
|
+
Parameters.$host,
|
|
634
794
|
Parameters.resourceGroupName,
|
|
635
|
-
Parameters.
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
Parameters.top,
|
|
639
|
-
Parameters.apiVersion0
|
|
640
|
-
],
|
|
641
|
-
headerParameters: [
|
|
642
|
-
Parameters.acceptLanguage
|
|
795
|
+
Parameters.vaultName,
|
|
796
|
+
Parameters.subscriptionId,
|
|
797
|
+
Parameters.operationKind
|
|
643
798
|
],
|
|
799
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
800
|
+
mediaType: "json",
|
|
801
|
+
serializer
|
|
802
|
+
};
|
|
803
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
804
|
+
path:
|
|
805
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults",
|
|
806
|
+
httpMethod: "GET",
|
|
644
807
|
responses: {
|
|
645
808
|
200: {
|
|
646
809
|
bodyMapper: Mappers.VaultListResult
|
|
@@ -649,22 +812,18 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
649
812
|
bodyMapper: Mappers.CloudError
|
|
650
813
|
}
|
|
651
814
|
},
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
656
|
-
httpMethod: "GET",
|
|
657
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults",
|
|
815
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
658
816
|
urlParameters: [
|
|
817
|
+
Parameters.$host,
|
|
818
|
+
Parameters.resourceGroupName,
|
|
659
819
|
Parameters.subscriptionId
|
|
660
820
|
],
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
],
|
|
821
|
+
headerParameters: [Parameters.accept],
|
|
822
|
+
serializer
|
|
823
|
+
};
|
|
824
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
825
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults",
|
|
826
|
+
httpMethod: "GET",
|
|
668
827
|
responses: {
|
|
669
828
|
200: {
|
|
670
829
|
bodyMapper: Mappers.VaultListResult
|
|
@@ -673,21 +832,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
673
832
|
bodyMapper: Mappers.CloudError
|
|
674
833
|
}
|
|
675
834
|
},
|
|
835
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
836
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
837
|
+
headerParameters: [Parameters.accept],
|
|
676
838
|
serializer
|
|
677
839
|
};
|
|
678
|
-
|
|
679
|
-
|
|
840
|
+
const listDeletedOperationSpec: coreClient.OperationSpec = {
|
|
841
|
+
path:
|
|
842
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults",
|
|
680
843
|
httpMethod: "GET",
|
|
681
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults",
|
|
682
|
-
urlParameters: [
|
|
683
|
-
Parameters.subscriptionId
|
|
684
|
-
],
|
|
685
|
-
queryParameters: [
|
|
686
|
-
Parameters.apiVersion0
|
|
687
|
-
],
|
|
688
|
-
headerParameters: [
|
|
689
|
-
Parameters.acceptLanguage
|
|
690
|
-
],
|
|
691
844
|
responses: {
|
|
692
845
|
200: {
|
|
693
846
|
bodyMapper: Mappers.DeletedVaultListResult
|
|
@@ -696,23 +849,15 @@ const listDeletedOperationSpec: msRest.OperationSpec = {
|
|
|
696
849
|
bodyMapper: Mappers.CloudError
|
|
697
850
|
}
|
|
698
851
|
},
|
|
852
|
+
queryParameters: [Parameters.apiVersion],
|
|
853
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
854
|
+
headerParameters: [Parameters.accept],
|
|
699
855
|
serializer
|
|
700
856
|
};
|
|
701
|
-
|
|
702
|
-
|
|
857
|
+
const getDeletedOperationSpec: coreClient.OperationSpec = {
|
|
858
|
+
path:
|
|
859
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}",
|
|
703
860
|
httpMethod: "GET",
|
|
704
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}",
|
|
705
|
-
urlParameters: [
|
|
706
|
-
Parameters.vaultName1,
|
|
707
|
-
Parameters.location,
|
|
708
|
-
Parameters.subscriptionId
|
|
709
|
-
],
|
|
710
|
-
queryParameters: [
|
|
711
|
-
Parameters.apiVersion0
|
|
712
|
-
],
|
|
713
|
-
headerParameters: [
|
|
714
|
-
Parameters.acceptLanguage
|
|
715
|
-
],
|
|
716
861
|
responses: {
|
|
717
862
|
200: {
|
|
718
863
|
bodyMapper: Mappers.DeletedVault
|
|
@@ -721,133 +866,85 @@ const getDeletedOperationSpec: msRest.OperationSpec = {
|
|
|
721
866
|
bodyMapper: Mappers.CloudError
|
|
722
867
|
}
|
|
723
868
|
},
|
|
724
|
-
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
728
|
-
httpMethod: "GET",
|
|
729
|
-
path: "subscriptions/{subscriptionId}/resources",
|
|
869
|
+
queryParameters: [Parameters.apiVersion],
|
|
730
870
|
urlParameters: [
|
|
731
|
-
Parameters
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
Parameters.
|
|
735
|
-
Parameters.top,
|
|
736
|
-
Parameters.apiVersion1
|
|
737
|
-
],
|
|
738
|
-
headerParameters: [
|
|
739
|
-
Parameters.acceptLanguage
|
|
871
|
+
Parameters.$host,
|
|
872
|
+
Parameters.subscriptionId,
|
|
873
|
+
Parameters.vaultName1,
|
|
874
|
+
Parameters.location
|
|
740
875
|
],
|
|
741
|
-
|
|
742
|
-
200: {
|
|
743
|
-
bodyMapper: Mappers.ResourceListResult
|
|
744
|
-
},
|
|
745
|
-
default: {
|
|
746
|
-
bodyMapper: Mappers.CloudError
|
|
747
|
-
}
|
|
748
|
-
},
|
|
876
|
+
headerParameters: [Parameters.accept],
|
|
749
877
|
serializer
|
|
750
878
|
};
|
|
751
|
-
|
|
752
|
-
|
|
879
|
+
const purgeDeletedOperationSpec: coreClient.OperationSpec = {
|
|
880
|
+
path:
|
|
881
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge",
|
|
753
882
|
httpMethod: "POST",
|
|
754
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability",
|
|
755
|
-
urlParameters: [
|
|
756
|
-
Parameters.subscriptionId
|
|
757
|
-
],
|
|
758
|
-
queryParameters: [
|
|
759
|
-
Parameters.apiVersion0
|
|
760
|
-
],
|
|
761
|
-
headerParameters: [
|
|
762
|
-
Parameters.acceptLanguage
|
|
763
|
-
],
|
|
764
|
-
requestBody: {
|
|
765
|
-
parameterPath: "vaultName",
|
|
766
|
-
mapper: {
|
|
767
|
-
...Mappers.VaultCheckNameAvailabilityParameters,
|
|
768
|
-
required: true
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
883
|
responses: {
|
|
772
|
-
200: {
|
|
773
|
-
|
|
884
|
+
200: {},
|
|
885
|
+
201: {},
|
|
886
|
+
202: {},
|
|
887
|
+
204: {},
|
|
888
|
+
400: {
|
|
889
|
+
bodyMapper: Mappers.CloudError,
|
|
890
|
+
isError: true
|
|
891
|
+
},
|
|
892
|
+
404: {
|
|
893
|
+
bodyMapper: Mappers.CloudError,
|
|
894
|
+
isError: true
|
|
774
895
|
},
|
|
775
896
|
default: {
|
|
776
897
|
bodyMapper: Mappers.CloudError
|
|
777
898
|
}
|
|
778
899
|
},
|
|
779
|
-
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
783
|
-
httpMethod: "PUT",
|
|
784
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
900
|
+
queryParameters: [Parameters.apiVersion],
|
|
785
901
|
urlParameters: [
|
|
786
|
-
Parameters
|
|
787
|
-
Parameters.
|
|
788
|
-
Parameters.
|
|
789
|
-
|
|
790
|
-
queryParameters: [
|
|
791
|
-
Parameters.apiVersion0
|
|
792
|
-
],
|
|
793
|
-
headerParameters: [
|
|
794
|
-
Parameters.acceptLanguage
|
|
902
|
+
Parameters.$host,
|
|
903
|
+
Parameters.subscriptionId,
|
|
904
|
+
Parameters.vaultName1,
|
|
905
|
+
Parameters.location
|
|
795
906
|
],
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
},
|
|
907
|
+
headerParameters: [Parameters.accept],
|
|
908
|
+
serializer
|
|
909
|
+
};
|
|
910
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
911
|
+
path: "/subscriptions/{subscriptionId}/resources",
|
|
912
|
+
httpMethod: "GET",
|
|
803
913
|
responses: {
|
|
804
914
|
200: {
|
|
805
|
-
bodyMapper: Mappers.
|
|
806
|
-
},
|
|
807
|
-
201: {
|
|
808
|
-
bodyMapper: Mappers.Vault
|
|
915
|
+
bodyMapper: Mappers.ResourceListResult
|
|
809
916
|
},
|
|
810
917
|
default: {
|
|
811
918
|
bodyMapper: Mappers.CloudError
|
|
812
919
|
}
|
|
813
920
|
},
|
|
921
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
922
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
923
|
+
headerParameters: [Parameters.accept],
|
|
814
924
|
serializer
|
|
815
925
|
};
|
|
816
|
-
|
|
817
|
-
|
|
926
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
927
|
+
path:
|
|
928
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability",
|
|
818
929
|
httpMethod: "POST",
|
|
819
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge",
|
|
820
|
-
urlParameters: [
|
|
821
|
-
Parameters.vaultName1,
|
|
822
|
-
Parameters.location,
|
|
823
|
-
Parameters.subscriptionId
|
|
824
|
-
],
|
|
825
|
-
queryParameters: [
|
|
826
|
-
Parameters.apiVersion0
|
|
827
|
-
],
|
|
828
|
-
headerParameters: [
|
|
829
|
-
Parameters.acceptLanguage
|
|
830
|
-
],
|
|
831
930
|
responses: {
|
|
832
|
-
200: {
|
|
833
|
-
|
|
931
|
+
200: {
|
|
932
|
+
bodyMapper: Mappers.CheckNameAvailabilityResult
|
|
933
|
+
},
|
|
834
934
|
default: {
|
|
835
935
|
bodyMapper: Mappers.CloudError
|
|
836
936
|
}
|
|
837
937
|
},
|
|
938
|
+
requestBody: Parameters.vaultName2,
|
|
939
|
+
queryParameters: [Parameters.apiVersion],
|
|
940
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
941
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
942
|
+
mediaType: "json",
|
|
838
943
|
serializer
|
|
839
944
|
};
|
|
840
|
-
|
|
841
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
842
|
-
httpMethod: "GET",
|
|
843
|
-
baseUrl: "https://management.azure.com",
|
|
945
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
844
946
|
path: "{nextLink}",
|
|
845
|
-
|
|
846
|
-
Parameters.nextPageLink
|
|
847
|
-
],
|
|
848
|
-
headerParameters: [
|
|
849
|
-
Parameters.acceptLanguage
|
|
850
|
-
],
|
|
947
|
+
httpMethod: "GET",
|
|
851
948
|
responses: {
|
|
852
949
|
200: {
|
|
853
950
|
bodyMapper: Mappers.VaultListResult
|
|
@@ -856,19 +953,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
856
953
|
bodyMapper: Mappers.CloudError
|
|
857
954
|
}
|
|
858
955
|
},
|
|
956
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
957
|
+
urlParameters: [
|
|
958
|
+
Parameters.$host,
|
|
959
|
+
Parameters.resourceGroupName,
|
|
960
|
+
Parameters.subscriptionId,
|
|
961
|
+
Parameters.nextLink
|
|
962
|
+
],
|
|
963
|
+
headerParameters: [Parameters.accept],
|
|
859
964
|
serializer
|
|
860
965
|
};
|
|
861
|
-
|
|
862
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
863
|
-
httpMethod: "GET",
|
|
864
|
-
baseUrl: "https://management.azure.com",
|
|
966
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
865
967
|
path: "{nextLink}",
|
|
866
|
-
|
|
867
|
-
Parameters.nextPageLink
|
|
868
|
-
],
|
|
869
|
-
headerParameters: [
|
|
870
|
-
Parameters.acceptLanguage
|
|
871
|
-
],
|
|
968
|
+
httpMethod: "GET",
|
|
872
969
|
responses: {
|
|
873
970
|
200: {
|
|
874
971
|
bodyMapper: Mappers.VaultListResult
|
|
@@ -877,19 +974,18 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
877
974
|
bodyMapper: Mappers.CloudError
|
|
878
975
|
}
|
|
879
976
|
},
|
|
977
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
978
|
+
urlParameters: [
|
|
979
|
+
Parameters.$host,
|
|
980
|
+
Parameters.subscriptionId,
|
|
981
|
+
Parameters.nextLink
|
|
982
|
+
],
|
|
983
|
+
headerParameters: [Parameters.accept],
|
|
880
984
|
serializer
|
|
881
985
|
};
|
|
882
|
-
|
|
883
|
-
const listDeletedNextOperationSpec: msRest.OperationSpec = {
|
|
884
|
-
httpMethod: "GET",
|
|
885
|
-
baseUrl: "https://management.azure.com",
|
|
986
|
+
const listDeletedNextOperationSpec: coreClient.OperationSpec = {
|
|
886
987
|
path: "{nextLink}",
|
|
887
|
-
|
|
888
|
-
Parameters.nextPageLink
|
|
889
|
-
],
|
|
890
|
-
headerParameters: [
|
|
891
|
-
Parameters.acceptLanguage
|
|
892
|
-
],
|
|
988
|
+
httpMethod: "GET",
|
|
893
989
|
responses: {
|
|
894
990
|
200: {
|
|
895
991
|
bodyMapper: Mappers.DeletedVaultListResult
|
|
@@ -898,19 +994,18 @@ const listDeletedNextOperationSpec: msRest.OperationSpec = {
|
|
|
898
994
|
bodyMapper: Mappers.CloudError
|
|
899
995
|
}
|
|
900
996
|
},
|
|
997
|
+
queryParameters: [Parameters.apiVersion],
|
|
998
|
+
urlParameters: [
|
|
999
|
+
Parameters.$host,
|
|
1000
|
+
Parameters.subscriptionId,
|
|
1001
|
+
Parameters.nextLink
|
|
1002
|
+
],
|
|
1003
|
+
headerParameters: [Parameters.accept],
|
|
901
1004
|
serializer
|
|
902
1005
|
};
|
|
903
|
-
|
|
904
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
905
|
-
httpMethod: "GET",
|
|
906
|
-
baseUrl: "https://management.azure.com",
|
|
1006
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
907
1007
|
path: "{nextLink}",
|
|
908
|
-
|
|
909
|
-
Parameters.nextPageLink
|
|
910
|
-
],
|
|
911
|
-
headerParameters: [
|
|
912
|
-
Parameters.acceptLanguage
|
|
913
|
-
],
|
|
1008
|
+
httpMethod: "GET",
|
|
914
1009
|
responses: {
|
|
915
1010
|
200: {
|
|
916
1011
|
bodyMapper: Mappers.ResourceListResult
|
|
@@ -919,5 +1014,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
919
1014
|
bodyMapper: Mappers.CloudError
|
|
920
1015
|
}
|
|
921
1016
|
},
|
|
1017
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
1018
|
+
urlParameters: [
|
|
1019
|
+
Parameters.$host,
|
|
1020
|
+
Parameters.subscriptionId,
|
|
1021
|
+
Parameters.nextLink
|
|
1022
|
+
],
|
|
1023
|
+
headerParameters: [Parameters.accept],
|
|
922
1024
|
serializer
|
|
923
1025
|
};
|