@azure/arm-keyvault-profile-2020-09-01-hybrid 1.1.1 → 2.0.0-alpha.20220321.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 +74 -23
- 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
|
@@ -0,0 +1,816 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Vaults operations. */
|
|
16
|
+
export class VaultsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Vaults class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The List operation gets information about the vaults associated with the subscription and within the
|
|
26
|
+
* specified resource group.
|
|
27
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
31
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
listBySubscription(options) {
|
|
79
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
80
|
+
return {
|
|
81
|
+
next() {
|
|
82
|
+
return iter.next();
|
|
83
|
+
},
|
|
84
|
+
[Symbol.asyncIterator]() {
|
|
85
|
+
return this;
|
|
86
|
+
},
|
|
87
|
+
byPage: () => {
|
|
88
|
+
return this.listBySubscriptionPagingPage(options);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
listBySubscriptionPagingPage(options) {
|
|
93
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
94
|
+
let result = yield __await(this._listBySubscription(options));
|
|
95
|
+
yield yield __await(result.value || []);
|
|
96
|
+
let continuationToken = result.nextLink;
|
|
97
|
+
while (continuationToken) {
|
|
98
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
yield yield __await(result.value || []);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
listBySubscriptionPagingAll(options) {
|
|
105
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
106
|
+
var e_2, _a;
|
|
107
|
+
try {
|
|
108
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
109
|
+
const page = _c.value;
|
|
110
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
114
|
+
finally {
|
|
115
|
+
try {
|
|
116
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
117
|
+
}
|
|
118
|
+
finally { if (e_2) throw e_2.error; }
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Gets information about the deleted vaults in a subscription.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
listDeleted(options) {
|
|
127
|
+
const iter = this.listDeletedPagingAll(options);
|
|
128
|
+
return {
|
|
129
|
+
next() {
|
|
130
|
+
return iter.next();
|
|
131
|
+
},
|
|
132
|
+
[Symbol.asyncIterator]() {
|
|
133
|
+
return this;
|
|
134
|
+
},
|
|
135
|
+
byPage: () => {
|
|
136
|
+
return this.listDeletedPagingPage(options);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
listDeletedPagingPage(options) {
|
|
141
|
+
return __asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
|
|
142
|
+
let result = yield __await(this._listDeleted(options));
|
|
143
|
+
yield yield __await(result.value || []);
|
|
144
|
+
let continuationToken = result.nextLink;
|
|
145
|
+
while (continuationToken) {
|
|
146
|
+
result = yield __await(this._listDeletedNext(continuationToken, options));
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
yield yield __await(result.value || []);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
listDeletedPagingAll(options) {
|
|
153
|
+
return __asyncGenerator(this, arguments, function* listDeletedPagingAll_1() {
|
|
154
|
+
var e_3, _a;
|
|
155
|
+
try {
|
|
156
|
+
for (var _b = __asyncValues(this.listDeletedPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
157
|
+
const page = _c.value;
|
|
158
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
162
|
+
finally {
|
|
163
|
+
try {
|
|
164
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
165
|
+
}
|
|
166
|
+
finally { if (e_3) throw e_3.error; }
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
172
|
+
* @param options The options parameters.
|
|
173
|
+
*/
|
|
174
|
+
list(options) {
|
|
175
|
+
const iter = this.listPagingAll(options);
|
|
176
|
+
return {
|
|
177
|
+
next() {
|
|
178
|
+
return iter.next();
|
|
179
|
+
},
|
|
180
|
+
[Symbol.asyncIterator]() {
|
|
181
|
+
return this;
|
|
182
|
+
},
|
|
183
|
+
byPage: () => {
|
|
184
|
+
return this.listPagingPage(options);
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
listPagingPage(options) {
|
|
189
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
190
|
+
let result = yield __await(this._list(options));
|
|
191
|
+
yield yield __await(result.value || []);
|
|
192
|
+
let continuationToken = result.nextLink;
|
|
193
|
+
while (continuationToken) {
|
|
194
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
195
|
+
continuationToken = result.nextLink;
|
|
196
|
+
yield yield __await(result.value || []);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
listPagingAll(options) {
|
|
201
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
202
|
+
var e_4, _a;
|
|
203
|
+
try {
|
|
204
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
205
|
+
const page = _c.value;
|
|
206
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
210
|
+
finally {
|
|
211
|
+
try {
|
|
212
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
213
|
+
}
|
|
214
|
+
finally { if (e_4) throw e_4.error; }
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Create or update a key vault in the specified subscription.
|
|
220
|
+
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
221
|
+
* @param vaultName Name of the vault
|
|
222
|
+
* @param parameters Parameters to create or update the vault
|
|
223
|
+
* @param options The options parameters.
|
|
224
|
+
*/
|
|
225
|
+
beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
return this.client.sendOperationRequest(args, spec);
|
|
229
|
+
});
|
|
230
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
var _a;
|
|
232
|
+
let currentRawResponse = undefined;
|
|
233
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
234
|
+
const callback = (rawResponse, flatResponse) => {
|
|
235
|
+
currentRawResponse = rawResponse;
|
|
236
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
237
|
+
};
|
|
238
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
239
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
240
|
+
return {
|
|
241
|
+
flatResponse,
|
|
242
|
+
rawResponse: {
|
|
243
|
+
statusCode: currentRawResponse.status,
|
|
244
|
+
body: currentRawResponse.parsedBody,
|
|
245
|
+
headers: currentRawResponse.headers.toJSON()
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
});
|
|
249
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, parameters, options }, createOrUpdateOperationSpec);
|
|
250
|
+
return new LroEngine(lro, {
|
|
251
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
252
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Create or update a key vault in the specified subscription.
|
|
258
|
+
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
259
|
+
* @param vaultName Name of the vault
|
|
260
|
+
* @param parameters Parameters to create or update the vault
|
|
261
|
+
* @param options The options parameters.
|
|
262
|
+
*/
|
|
263
|
+
beginCreateOrUpdateAndWait(resourceGroupName, vaultName, parameters, options) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options);
|
|
266
|
+
return poller.pollUntilDone();
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Update a key vault in the specified subscription.
|
|
271
|
+
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
272
|
+
* @param vaultName Name of the vault
|
|
273
|
+
* @param parameters Parameters to patch the vault
|
|
274
|
+
* @param options The options parameters.
|
|
275
|
+
*/
|
|
276
|
+
update(resourceGroupName, vaultName, parameters, options) {
|
|
277
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, parameters, options }, updateOperationSpec);
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Deletes the specified Azure key vault.
|
|
281
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
282
|
+
* @param vaultName The name of the vault to delete
|
|
283
|
+
* @param options The options parameters.
|
|
284
|
+
*/
|
|
285
|
+
delete(resourceGroupName, vaultName, options) {
|
|
286
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, deleteOperationSpec);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Gets the specified Azure key vault.
|
|
290
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
291
|
+
* @param vaultName The name of the vault.
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
get(resourceGroupName, vaultName, options) {
|
|
295
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Update access policies in a key vault in the specified subscription.
|
|
299
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
300
|
+
* @param vaultName Name of the vault
|
|
301
|
+
* @param operationKind Name of the operation
|
|
302
|
+
* @param parameters Access policy to merge into the vault
|
|
303
|
+
* @param options The options parameters.
|
|
304
|
+
*/
|
|
305
|
+
updateAccessPolicy(resourceGroupName, vaultName, operationKind, parameters, options) {
|
|
306
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationKind, parameters, options }, updateAccessPolicyOperationSpec);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The List operation gets information about the vaults associated with the subscription and within the
|
|
310
|
+
* specified resource group.
|
|
311
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
312
|
+
* @param options The options parameters.
|
|
313
|
+
*/
|
|
314
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
315
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
_listBySubscription(options) {
|
|
322
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Gets information about the deleted vaults in a subscription.
|
|
326
|
+
* @param options The options parameters.
|
|
327
|
+
*/
|
|
328
|
+
_listDeleted(options) {
|
|
329
|
+
return this.client.sendOperationRequest({ options }, listDeletedOperationSpec);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Gets the deleted Azure key vault.
|
|
333
|
+
* @param vaultName The name of the vault.
|
|
334
|
+
* @param location The location of the deleted vault.
|
|
335
|
+
* @param options The options parameters.
|
|
336
|
+
*/
|
|
337
|
+
getDeleted(vaultName, location, options) {
|
|
338
|
+
return this.client.sendOperationRequest({ vaultName, location, options }, getDeletedOperationSpec);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
|
|
342
|
+
* @param vaultName The name of the soft-deleted vault.
|
|
343
|
+
* @param location The location of the soft-deleted vault.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
beginPurgeDeleted(vaultName, location, options) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
return this.client.sendOperationRequest(args, spec);
|
|
350
|
+
});
|
|
351
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
352
|
+
var _a;
|
|
353
|
+
let currentRawResponse = undefined;
|
|
354
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
355
|
+
const callback = (rawResponse, flatResponse) => {
|
|
356
|
+
currentRawResponse = rawResponse;
|
|
357
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
358
|
+
};
|
|
359
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
361
|
+
return {
|
|
362
|
+
flatResponse,
|
|
363
|
+
rawResponse: {
|
|
364
|
+
statusCode: currentRawResponse.status,
|
|
365
|
+
body: currentRawResponse.parsedBody,
|
|
366
|
+
headers: currentRawResponse.headers.toJSON()
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
const lro = new LroImpl(sendOperation, { vaultName, location, options }, purgeDeletedOperationSpec);
|
|
371
|
+
return new LroEngine(lro, {
|
|
372
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
373
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
|
|
379
|
+
* @param vaultName The name of the soft-deleted vault.
|
|
380
|
+
* @param location The location of the soft-deleted vault.
|
|
381
|
+
* @param options The options parameters.
|
|
382
|
+
*/
|
|
383
|
+
beginPurgeDeletedAndWait(vaultName, location, options) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
const poller = yield this.beginPurgeDeleted(vaultName, location, options);
|
|
386
|
+
return poller.pollUntilDone();
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* The List operation gets information about the vaults associated with the subscription.
|
|
391
|
+
* @param options The options parameters.
|
|
392
|
+
*/
|
|
393
|
+
_list(options) {
|
|
394
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Checks that the vault name is valid and is not already in use.
|
|
398
|
+
* @param vaultName The name of the vault.
|
|
399
|
+
* @param options The options parameters.
|
|
400
|
+
*/
|
|
401
|
+
checkNameAvailability(vaultName, options) {
|
|
402
|
+
return this.client.sendOperationRequest({ vaultName, options }, checkNameAvailabilityOperationSpec);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* ListByResourceGroupNext
|
|
406
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
407
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
408
|
+
* @param options The options parameters.
|
|
409
|
+
*/
|
|
410
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
411
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* ListBySubscriptionNext
|
|
415
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
416
|
+
* @param options The options parameters.
|
|
417
|
+
*/
|
|
418
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
419
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* ListDeletedNext
|
|
423
|
+
* @param nextLink The nextLink from the previous successful call to the ListDeleted method.
|
|
424
|
+
* @param options The options parameters.
|
|
425
|
+
*/
|
|
426
|
+
_listDeletedNext(nextLink, options) {
|
|
427
|
+
return this.client.sendOperationRequest({ nextLink, options }, listDeletedNextOperationSpec);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* ListNext
|
|
431
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
432
|
+
* @param options The options parameters.
|
|
433
|
+
*/
|
|
434
|
+
_listNext(nextLink, options) {
|
|
435
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
// Operation Specifications
|
|
439
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
440
|
+
const createOrUpdateOperationSpec = {
|
|
441
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
442
|
+
httpMethod: "PUT",
|
|
443
|
+
responses: {
|
|
444
|
+
200: {
|
|
445
|
+
bodyMapper: Mappers.Vault
|
|
446
|
+
},
|
|
447
|
+
201: {
|
|
448
|
+
bodyMapper: Mappers.Vault
|
|
449
|
+
},
|
|
450
|
+
202: {
|
|
451
|
+
bodyMapper: Mappers.Vault
|
|
452
|
+
},
|
|
453
|
+
204: {
|
|
454
|
+
bodyMapper: Mappers.Vault
|
|
455
|
+
},
|
|
456
|
+
400: {
|
|
457
|
+
bodyMapper: Mappers.CloudError,
|
|
458
|
+
isError: true
|
|
459
|
+
},
|
|
460
|
+
409: {
|
|
461
|
+
bodyMapper: Mappers.CloudError,
|
|
462
|
+
isError: true
|
|
463
|
+
},
|
|
464
|
+
default: {
|
|
465
|
+
bodyMapper: Mappers.CloudError
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
requestBody: Parameters.parameters,
|
|
469
|
+
queryParameters: [Parameters.apiVersion],
|
|
470
|
+
urlParameters: [
|
|
471
|
+
Parameters.$host,
|
|
472
|
+
Parameters.resourceGroupName,
|
|
473
|
+
Parameters.vaultName,
|
|
474
|
+
Parameters.subscriptionId
|
|
475
|
+
],
|
|
476
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
477
|
+
mediaType: "json",
|
|
478
|
+
serializer
|
|
479
|
+
};
|
|
480
|
+
const updateOperationSpec = {
|
|
481
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
482
|
+
httpMethod: "PATCH",
|
|
483
|
+
responses: {
|
|
484
|
+
200: {
|
|
485
|
+
bodyMapper: Mappers.Vault
|
|
486
|
+
},
|
|
487
|
+
201: {
|
|
488
|
+
bodyMapper: Mappers.Vault
|
|
489
|
+
},
|
|
490
|
+
400: {
|
|
491
|
+
bodyMapper: Mappers.CloudError,
|
|
492
|
+
isError: true
|
|
493
|
+
},
|
|
494
|
+
409: {
|
|
495
|
+
bodyMapper: Mappers.CloudError,
|
|
496
|
+
isError: true
|
|
497
|
+
},
|
|
498
|
+
default: {
|
|
499
|
+
bodyMapper: Mappers.CloudError
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
requestBody: Parameters.parameters1,
|
|
503
|
+
queryParameters: [Parameters.apiVersion],
|
|
504
|
+
urlParameters: [
|
|
505
|
+
Parameters.$host,
|
|
506
|
+
Parameters.resourceGroupName,
|
|
507
|
+
Parameters.vaultName,
|
|
508
|
+
Parameters.subscriptionId
|
|
509
|
+
],
|
|
510
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
511
|
+
mediaType: "json",
|
|
512
|
+
serializer
|
|
513
|
+
};
|
|
514
|
+
const deleteOperationSpec = {
|
|
515
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
516
|
+
httpMethod: "DELETE",
|
|
517
|
+
responses: {
|
|
518
|
+
200: {},
|
|
519
|
+
204: {},
|
|
520
|
+
400: {
|
|
521
|
+
bodyMapper: Mappers.CloudError,
|
|
522
|
+
isError: true
|
|
523
|
+
},
|
|
524
|
+
default: {
|
|
525
|
+
bodyMapper: Mappers.CloudError
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
queryParameters: [Parameters.apiVersion],
|
|
529
|
+
urlParameters: [
|
|
530
|
+
Parameters.$host,
|
|
531
|
+
Parameters.resourceGroupName,
|
|
532
|
+
Parameters.subscriptionId,
|
|
533
|
+
Parameters.vaultName1
|
|
534
|
+
],
|
|
535
|
+
headerParameters: [Parameters.accept],
|
|
536
|
+
serializer
|
|
537
|
+
};
|
|
538
|
+
const getOperationSpec = {
|
|
539
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
|
|
540
|
+
httpMethod: "GET",
|
|
541
|
+
responses: {
|
|
542
|
+
200: {
|
|
543
|
+
bodyMapper: Mappers.Vault
|
|
544
|
+
},
|
|
545
|
+
default: {
|
|
546
|
+
bodyMapper: Mappers.CloudError
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
queryParameters: [Parameters.apiVersion],
|
|
550
|
+
urlParameters: [
|
|
551
|
+
Parameters.$host,
|
|
552
|
+
Parameters.resourceGroupName,
|
|
553
|
+
Parameters.subscriptionId,
|
|
554
|
+
Parameters.vaultName1
|
|
555
|
+
],
|
|
556
|
+
headerParameters: [Parameters.accept],
|
|
557
|
+
serializer
|
|
558
|
+
};
|
|
559
|
+
const updateAccessPolicyOperationSpec = {
|
|
560
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}",
|
|
561
|
+
httpMethod: "PUT",
|
|
562
|
+
responses: {
|
|
563
|
+
200: {
|
|
564
|
+
bodyMapper: Mappers.VaultAccessPolicyParameters
|
|
565
|
+
},
|
|
566
|
+
201: {
|
|
567
|
+
bodyMapper: Mappers.VaultAccessPolicyParameters
|
|
568
|
+
},
|
|
569
|
+
400: {
|
|
570
|
+
bodyMapper: Mappers.CloudError,
|
|
571
|
+
isError: true
|
|
572
|
+
},
|
|
573
|
+
404: {
|
|
574
|
+
bodyMapper: Mappers.CloudError,
|
|
575
|
+
isError: true
|
|
576
|
+
},
|
|
577
|
+
409: {
|
|
578
|
+
bodyMapper: Mappers.CloudError,
|
|
579
|
+
isError: true
|
|
580
|
+
},
|
|
581
|
+
default: {
|
|
582
|
+
bodyMapper: Mappers.CloudError
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
requestBody: Parameters.parameters2,
|
|
586
|
+
queryParameters: [Parameters.apiVersion],
|
|
587
|
+
urlParameters: [
|
|
588
|
+
Parameters.$host,
|
|
589
|
+
Parameters.resourceGroupName,
|
|
590
|
+
Parameters.vaultName,
|
|
591
|
+
Parameters.subscriptionId,
|
|
592
|
+
Parameters.operationKind
|
|
593
|
+
],
|
|
594
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
595
|
+
mediaType: "json",
|
|
596
|
+
serializer
|
|
597
|
+
};
|
|
598
|
+
const listByResourceGroupOperationSpec = {
|
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults",
|
|
600
|
+
httpMethod: "GET",
|
|
601
|
+
responses: {
|
|
602
|
+
200: {
|
|
603
|
+
bodyMapper: Mappers.VaultListResult
|
|
604
|
+
},
|
|
605
|
+
default: {
|
|
606
|
+
bodyMapper: Mappers.CloudError
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
610
|
+
urlParameters: [
|
|
611
|
+
Parameters.$host,
|
|
612
|
+
Parameters.resourceGroupName,
|
|
613
|
+
Parameters.subscriptionId
|
|
614
|
+
],
|
|
615
|
+
headerParameters: [Parameters.accept],
|
|
616
|
+
serializer
|
|
617
|
+
};
|
|
618
|
+
const listBySubscriptionOperationSpec = {
|
|
619
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults",
|
|
620
|
+
httpMethod: "GET",
|
|
621
|
+
responses: {
|
|
622
|
+
200: {
|
|
623
|
+
bodyMapper: Mappers.VaultListResult
|
|
624
|
+
},
|
|
625
|
+
default: {
|
|
626
|
+
bodyMapper: Mappers.CloudError
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
630
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
631
|
+
headerParameters: [Parameters.accept],
|
|
632
|
+
serializer
|
|
633
|
+
};
|
|
634
|
+
const listDeletedOperationSpec = {
|
|
635
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults",
|
|
636
|
+
httpMethod: "GET",
|
|
637
|
+
responses: {
|
|
638
|
+
200: {
|
|
639
|
+
bodyMapper: Mappers.DeletedVaultListResult
|
|
640
|
+
},
|
|
641
|
+
default: {
|
|
642
|
+
bodyMapper: Mappers.CloudError
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
queryParameters: [Parameters.apiVersion],
|
|
646
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
647
|
+
headerParameters: [Parameters.accept],
|
|
648
|
+
serializer
|
|
649
|
+
};
|
|
650
|
+
const getDeletedOperationSpec = {
|
|
651
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}",
|
|
652
|
+
httpMethod: "GET",
|
|
653
|
+
responses: {
|
|
654
|
+
200: {
|
|
655
|
+
bodyMapper: Mappers.DeletedVault
|
|
656
|
+
},
|
|
657
|
+
default: {
|
|
658
|
+
bodyMapper: Mappers.CloudError
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
queryParameters: [Parameters.apiVersion],
|
|
662
|
+
urlParameters: [
|
|
663
|
+
Parameters.$host,
|
|
664
|
+
Parameters.subscriptionId,
|
|
665
|
+
Parameters.vaultName1,
|
|
666
|
+
Parameters.location
|
|
667
|
+
],
|
|
668
|
+
headerParameters: [Parameters.accept],
|
|
669
|
+
serializer
|
|
670
|
+
};
|
|
671
|
+
const purgeDeletedOperationSpec = {
|
|
672
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge",
|
|
673
|
+
httpMethod: "POST",
|
|
674
|
+
responses: {
|
|
675
|
+
200: {},
|
|
676
|
+
201: {},
|
|
677
|
+
202: {},
|
|
678
|
+
204: {},
|
|
679
|
+
400: {
|
|
680
|
+
bodyMapper: Mappers.CloudError,
|
|
681
|
+
isError: true
|
|
682
|
+
},
|
|
683
|
+
404: {
|
|
684
|
+
bodyMapper: Mappers.CloudError,
|
|
685
|
+
isError: true
|
|
686
|
+
},
|
|
687
|
+
default: {
|
|
688
|
+
bodyMapper: Mappers.CloudError
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
queryParameters: [Parameters.apiVersion],
|
|
692
|
+
urlParameters: [
|
|
693
|
+
Parameters.$host,
|
|
694
|
+
Parameters.subscriptionId,
|
|
695
|
+
Parameters.vaultName1,
|
|
696
|
+
Parameters.location
|
|
697
|
+
],
|
|
698
|
+
headerParameters: [Parameters.accept],
|
|
699
|
+
serializer
|
|
700
|
+
};
|
|
701
|
+
const listOperationSpec = {
|
|
702
|
+
path: "/subscriptions/{subscriptionId}/resources",
|
|
703
|
+
httpMethod: "GET",
|
|
704
|
+
responses: {
|
|
705
|
+
200: {
|
|
706
|
+
bodyMapper: Mappers.ResourceListResult
|
|
707
|
+
},
|
|
708
|
+
default: {
|
|
709
|
+
bodyMapper: Mappers.CloudError
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
713
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
714
|
+
headerParameters: [Parameters.accept],
|
|
715
|
+
serializer
|
|
716
|
+
};
|
|
717
|
+
const checkNameAvailabilityOperationSpec = {
|
|
718
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability",
|
|
719
|
+
httpMethod: "POST",
|
|
720
|
+
responses: {
|
|
721
|
+
200: {
|
|
722
|
+
bodyMapper: Mappers.CheckNameAvailabilityResult
|
|
723
|
+
},
|
|
724
|
+
default: {
|
|
725
|
+
bodyMapper: Mappers.CloudError
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
requestBody: Parameters.vaultName2,
|
|
729
|
+
queryParameters: [Parameters.apiVersion],
|
|
730
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
731
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
732
|
+
mediaType: "json",
|
|
733
|
+
serializer
|
|
734
|
+
};
|
|
735
|
+
const listByResourceGroupNextOperationSpec = {
|
|
736
|
+
path: "{nextLink}",
|
|
737
|
+
httpMethod: "GET",
|
|
738
|
+
responses: {
|
|
739
|
+
200: {
|
|
740
|
+
bodyMapper: Mappers.VaultListResult
|
|
741
|
+
},
|
|
742
|
+
default: {
|
|
743
|
+
bodyMapper: Mappers.CloudError
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
747
|
+
urlParameters: [
|
|
748
|
+
Parameters.$host,
|
|
749
|
+
Parameters.resourceGroupName,
|
|
750
|
+
Parameters.subscriptionId,
|
|
751
|
+
Parameters.nextLink
|
|
752
|
+
],
|
|
753
|
+
headerParameters: [Parameters.accept],
|
|
754
|
+
serializer
|
|
755
|
+
};
|
|
756
|
+
const listBySubscriptionNextOperationSpec = {
|
|
757
|
+
path: "{nextLink}",
|
|
758
|
+
httpMethod: "GET",
|
|
759
|
+
responses: {
|
|
760
|
+
200: {
|
|
761
|
+
bodyMapper: Mappers.VaultListResult
|
|
762
|
+
},
|
|
763
|
+
default: {
|
|
764
|
+
bodyMapper: Mappers.CloudError
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
768
|
+
urlParameters: [
|
|
769
|
+
Parameters.$host,
|
|
770
|
+
Parameters.subscriptionId,
|
|
771
|
+
Parameters.nextLink
|
|
772
|
+
],
|
|
773
|
+
headerParameters: [Parameters.accept],
|
|
774
|
+
serializer
|
|
775
|
+
};
|
|
776
|
+
const listDeletedNextOperationSpec = {
|
|
777
|
+
path: "{nextLink}",
|
|
778
|
+
httpMethod: "GET",
|
|
779
|
+
responses: {
|
|
780
|
+
200: {
|
|
781
|
+
bodyMapper: Mappers.DeletedVaultListResult
|
|
782
|
+
},
|
|
783
|
+
default: {
|
|
784
|
+
bodyMapper: Mappers.CloudError
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
queryParameters: [Parameters.apiVersion],
|
|
788
|
+
urlParameters: [
|
|
789
|
+
Parameters.$host,
|
|
790
|
+
Parameters.subscriptionId,
|
|
791
|
+
Parameters.nextLink
|
|
792
|
+
],
|
|
793
|
+
headerParameters: [Parameters.accept],
|
|
794
|
+
serializer
|
|
795
|
+
};
|
|
796
|
+
const listNextOperationSpec = {
|
|
797
|
+
path: "{nextLink}",
|
|
798
|
+
httpMethod: "GET",
|
|
799
|
+
responses: {
|
|
800
|
+
200: {
|
|
801
|
+
bodyMapper: Mappers.ResourceListResult
|
|
802
|
+
},
|
|
803
|
+
default: {
|
|
804
|
+
bodyMapper: Mappers.CloudError
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
queryParameters: [Parameters.top, Parameters.filter, Parameters.apiVersion1],
|
|
808
|
+
urlParameters: [
|
|
809
|
+
Parameters.$host,
|
|
810
|
+
Parameters.subscriptionId,
|
|
811
|
+
Parameters.nextLink
|
|
812
|
+
],
|
|
813
|
+
headerParameters: [Parameters.accept],
|
|
814
|
+
serializer
|
|
815
|
+
};
|
|
816
|
+
//# sourceMappingURL=vaults.js.map
|