@azure/arm-keyvault-profile-2020-09-01-hybrid 1.1.0 → 2.0.0

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.
Files changed (178) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +80 -83
  4. package/dist/index.js +3453 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/keyVaultManagementClient.d.ts +23 -0
  13. package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -0
  14. package/dist-esm/src/keyVaultManagementClient.js +56 -0
  15. package/dist-esm/src/keyVaultManagementClient.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +1008 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +123 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +48 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +728 -617
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +26 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +220 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +3 -5
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +120 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/privateEndpointConnections.d.ts +51 -0
  41. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  42. package/dist-esm/src/operations/privateEndpointConnections.js +187 -0
  43. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  44. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  45. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  46. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  47. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  48. package/dist-esm/src/operations/secrets.d.ts +72 -0
  49. package/dist-esm/src/operations/secrets.d.ts.map +1 -0
  50. package/dist-esm/src/operations/secrets.js +247 -0
  51. package/dist-esm/src/operations/secrets.js.map +1 -0
  52. package/dist-esm/src/operations/vaults.d.ts +166 -0
  53. package/dist-esm/src/operations/vaults.d.ts.map +1 -0
  54. package/dist-esm/src/operations/vaults.js +816 -0
  55. package/dist-esm/src/operations/vaults.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  57. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  59. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +43 -0
  65. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  69. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/secrets.d.ts +45 -0
  73. package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/vaults.d.ts +103 -0
  77. package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +73 -22
  85. package/review/arm-keyvault-profile-2020-09-01-hybrid.api.md +876 -0
  86. package/rollup.config.js +115 -30
  87. package/src/index.ts +12 -0
  88. package/src/keyVaultManagementClient.ts +84 -45
  89. package/src/lroImpl.ts +34 -0
  90. package/src/models/index.ts +849 -1276
  91. package/src/models/mappers.ts +730 -609
  92. package/src/models/parameters.ts +153 -76
  93. package/src/operations/index.ts +3 -5
  94. package/src/operations/operations.ts +87 -73
  95. package/src/operations/privateEndpointConnections.ts +174 -154
  96. package/src/operations/privateLinkResources.ts +39 -54
  97. package/src/operations/secrets.ts +215 -248
  98. package/src/operations/vaults.ts +731 -629
  99. package/src/operationsInterfaces/index.ts +13 -0
  100. package/src/operationsInterfaces/operations.ts +22 -0
  101. package/src/operationsInterfaces/privateEndpointConnections.ts +85 -0
  102. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  103. package/src/operationsInterfaces/secrets.ts +86 -0
  104. package/src/operationsInterfaces/vaults.ts +197 -0
  105. package/tsconfig.json +14 -6
  106. package/types/arm-keyvault-profile-2020-09-01-hybrid.d.ts +1360 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-keyvault-profile-2020-09-01-hybrid.js +0 -3058
  109. package/dist/arm-keyvault-profile-2020-09-01-hybrid.js.map +0 -1
  110. package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js +0 -1
  111. package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js.map +0 -1
  112. package/esm/keyVaultManagementClient.d.ts +0 -29
  113. package/esm/keyVaultManagementClient.d.ts.map +0 -1
  114. package/esm/keyVaultManagementClient.js +0 -43
  115. package/esm/keyVaultManagementClient.js.map +0 -1
  116. package/esm/keyVaultManagementClientContext.d.ts +0 -23
  117. package/esm/keyVaultManagementClientContext.d.ts.map +0 -1
  118. package/esm/keyVaultManagementClientContext.js +0 -62
  119. package/esm/keyVaultManagementClientContext.js.map +0 -1
  120. package/esm/models/index.d.ts +0 -1449
  121. package/esm/models/index.d.ts.map +0 -1
  122. package/esm/models/index.js +0 -8
  123. package/esm/models/index.js.map +0 -1
  124. package/esm/models/mappers.d.ts +0 -46
  125. package/esm/models/mappers.d.ts.map +0 -1
  126. package/esm/models/mappers.js.map +0 -1
  127. package/esm/models/operationsMappers.d.ts +0 -2
  128. package/esm/models/operationsMappers.d.ts.map +0 -1
  129. package/esm/models/operationsMappers.js +0 -9
  130. package/esm/models/operationsMappers.js.map +0 -1
  131. package/esm/models/parameters.d.ts +0 -17
  132. package/esm/models/parameters.d.ts.map +0 -1
  133. package/esm/models/parameters.js +0 -178
  134. package/esm/models/parameters.js.map +0 -1
  135. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  136. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  137. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  138. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  139. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  140. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  141. package/esm/models/privateLinkResourcesMappers.js +0 -9
  142. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  143. package/esm/models/secretsMappers.d.ts +0 -2
  144. package/esm/models/secretsMappers.d.ts.map +0 -1
  145. package/esm/models/secretsMappers.js +0 -9
  146. package/esm/models/secretsMappers.js.map +0 -1
  147. package/esm/models/vaultsMappers.d.ts +0 -2
  148. package/esm/models/vaultsMappers.d.ts.map +0 -1
  149. package/esm/models/vaultsMappers.js +0 -9
  150. package/esm/models/vaultsMappers.js.map +0 -1
  151. package/esm/operations/index.d.ts.map +0 -1
  152. package/esm/operations/index.js.map +0 -1
  153. package/esm/operations/operations.d.ts +0 -46
  154. package/esm/operations/operations.d.ts.map +0 -1
  155. package/esm/operations/operations.js +0 -77
  156. package/esm/operations/operations.js.map +0 -1
  157. package/esm/operations/privateEndpointConnections.d.ts +0 -91
  158. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  159. package/esm/operations/privateEndpointConnections.js +0 -164
  160. package/esm/operations/privateEndpointConnections.js.map +0 -1
  161. package/esm/operations/privateLinkResources.d.ts +0 -34
  162. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  163. package/esm/operations/privateLinkResources.js +0 -58
  164. package/esm/operations/privateLinkResources.js.map +0 -1
  165. package/esm/operations/secrets.d.ts +0 -139
  166. package/esm/operations/secrets.d.ts.map +0 -1
  167. package/esm/operations/secrets.js +0 -201
  168. package/esm/operations/secrets.js.map +0 -1
  169. package/esm/operations/vaults.d.ts +0 -317
  170. package/esm/operations/vaults.d.ts.map +0 -1
  171. package/esm/operations/vaults.js +0 -557
  172. package/esm/operations/vaults.js.map +0 -1
  173. package/src/keyVaultManagementClientContext.ts +0 -69
  174. package/src/models/operationsMappers.ts +0 -16
  175. package/src/models/privateEndpointConnectionsMappers.ts +0 -40
  176. package/src/models/privateLinkResourcesMappers.ts +0 -39
  177. package/src/models/secretsMappers.ts +0 -39
  178. package/src/models/vaultsMappers.ts +0 -45
@@ -1,3058 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
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
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmKeyvaultProfile20200901Hybrid = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation. All rights reserved.
56
- * Licensed under the MIT License. See License.txt in the project root for license information.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation. All rights reserved.
68
- * Licensed under the MIT License. See License.txt in the project root for license information.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var Sku = {
76
- serializedName: "Sku",
77
- type: {
78
- name: "Composite",
79
- className: "Sku",
80
- modelProperties: {
81
- family: {
82
- required: true,
83
- isConstant: true,
84
- serializedName: "family",
85
- defaultValue: 'A',
86
- type: {
87
- name: "String"
88
- }
89
- },
90
- name: {
91
- required: true,
92
- serializedName: "name",
93
- type: {
94
- name: "Enum",
95
- allowedValues: [
96
- "standard",
97
- "premium"
98
- ]
99
- }
100
- }
101
- }
102
- }
103
- };
104
- var Permissions = {
105
- serializedName: "Permissions",
106
- type: {
107
- name: "Composite",
108
- className: "Permissions",
109
- modelProperties: {
110
- keys: {
111
- serializedName: "keys",
112
- type: {
113
- name: "Sequence",
114
- element: {
115
- type: {
116
- name: "String"
117
- }
118
- }
119
- }
120
- },
121
- secrets: {
122
- serializedName: "secrets",
123
- type: {
124
- name: "Sequence",
125
- element: {
126
- type: {
127
- name: "String"
128
- }
129
- }
130
- }
131
- },
132
- certificates: {
133
- serializedName: "certificates",
134
- type: {
135
- name: "Sequence",
136
- element: {
137
- type: {
138
- name: "String"
139
- }
140
- }
141
- }
142
- },
143
- storage: {
144
- serializedName: "storage",
145
- type: {
146
- name: "Sequence",
147
- element: {
148
- type: {
149
- name: "String"
150
- }
151
- }
152
- }
153
- }
154
- }
155
- }
156
- };
157
- var AccessPolicyEntry = {
158
- serializedName: "AccessPolicyEntry",
159
- type: {
160
- name: "Composite",
161
- className: "AccessPolicyEntry",
162
- modelProperties: {
163
- tenantId: {
164
- required: true,
165
- serializedName: "tenantId",
166
- type: {
167
- name: "Uuid"
168
- }
169
- },
170
- objectId: {
171
- required: true,
172
- serializedName: "objectId",
173
- type: {
174
- name: "String"
175
- }
176
- },
177
- applicationId: {
178
- serializedName: "applicationId",
179
- type: {
180
- name: "Uuid"
181
- }
182
- },
183
- permissions: {
184
- required: true,
185
- serializedName: "permissions",
186
- type: {
187
- name: "Composite",
188
- className: "Permissions"
189
- }
190
- }
191
- }
192
- }
193
- };
194
- var IPRule = {
195
- serializedName: "IPRule",
196
- type: {
197
- name: "Composite",
198
- className: "IPRule",
199
- modelProperties: {
200
- value: {
201
- required: true,
202
- serializedName: "value",
203
- type: {
204
- name: "String"
205
- }
206
- }
207
- }
208
- }
209
- };
210
- var VirtualNetworkRule = {
211
- serializedName: "VirtualNetworkRule",
212
- type: {
213
- name: "Composite",
214
- className: "VirtualNetworkRule",
215
- modelProperties: {
216
- id: {
217
- required: true,
218
- serializedName: "id",
219
- type: {
220
- name: "String"
221
- }
222
- }
223
- }
224
- }
225
- };
226
- var NetworkRuleSet = {
227
- serializedName: "NetworkRuleSet",
228
- type: {
229
- name: "Composite",
230
- className: "NetworkRuleSet",
231
- modelProperties: {
232
- bypass: {
233
- serializedName: "bypass",
234
- type: {
235
- name: "String"
236
- }
237
- },
238
- defaultAction: {
239
- serializedName: "defaultAction",
240
- type: {
241
- name: "String"
242
- }
243
- },
244
- ipRules: {
245
- serializedName: "ipRules",
246
- type: {
247
- name: "Sequence",
248
- element: {
249
- type: {
250
- name: "Composite",
251
- className: "IPRule"
252
- }
253
- }
254
- }
255
- },
256
- virtualNetworkRules: {
257
- serializedName: "virtualNetworkRules",
258
- type: {
259
- name: "Sequence",
260
- element: {
261
- type: {
262
- name: "Composite",
263
- className: "VirtualNetworkRule"
264
- }
265
- }
266
- }
267
- }
268
- }
269
- }
270
- };
271
- var PrivateEndpoint = {
272
- serializedName: "PrivateEndpoint",
273
- type: {
274
- name: "Composite",
275
- className: "PrivateEndpoint",
276
- modelProperties: {
277
- id: {
278
- readOnly: true,
279
- serializedName: "id",
280
- type: {
281
- name: "String"
282
- }
283
- }
284
- }
285
- }
286
- };
287
- var PrivateLinkServiceConnectionState = {
288
- serializedName: "PrivateLinkServiceConnectionState",
289
- type: {
290
- name: "Composite",
291
- className: "PrivateLinkServiceConnectionState",
292
- modelProperties: {
293
- status: {
294
- serializedName: "status",
295
- type: {
296
- name: "String"
297
- }
298
- },
299
- description: {
300
- serializedName: "description",
301
- type: {
302
- name: "String"
303
- }
304
- },
305
- actionRequired: {
306
- serializedName: "actionRequired",
307
- type: {
308
- name: "String"
309
- }
310
- }
311
- }
312
- }
313
- };
314
- var PrivateEndpointConnectionItem = {
315
- serializedName: "PrivateEndpointConnectionItem",
316
- type: {
317
- name: "Composite",
318
- className: "PrivateEndpointConnectionItem",
319
- modelProperties: {
320
- privateEndpoint: {
321
- serializedName: "properties.privateEndpoint",
322
- type: {
323
- name: "Composite",
324
- className: "PrivateEndpoint"
325
- }
326
- },
327
- privateLinkServiceConnectionState: {
328
- serializedName: "properties.privateLinkServiceConnectionState",
329
- type: {
330
- name: "Composite",
331
- className: "PrivateLinkServiceConnectionState"
332
- }
333
- },
334
- provisioningState: {
335
- serializedName: "properties.provisioningState",
336
- type: {
337
- name: "String"
338
- }
339
- }
340
- }
341
- }
342
- };
343
- var VaultProperties = {
344
- serializedName: "VaultProperties",
345
- type: {
346
- name: "Composite",
347
- className: "VaultProperties",
348
- modelProperties: {
349
- tenantId: {
350
- required: true,
351
- serializedName: "tenantId",
352
- type: {
353
- name: "Uuid"
354
- }
355
- },
356
- sku: {
357
- required: true,
358
- serializedName: "sku",
359
- defaultValue: {},
360
- type: {
361
- name: "Composite",
362
- className: "Sku"
363
- }
364
- },
365
- accessPolicies: {
366
- serializedName: "accessPolicies",
367
- type: {
368
- name: "Sequence",
369
- element: {
370
- type: {
371
- name: "Composite",
372
- className: "AccessPolicyEntry"
373
- }
374
- }
375
- }
376
- },
377
- vaultUri: {
378
- serializedName: "vaultUri",
379
- type: {
380
- name: "String"
381
- }
382
- },
383
- enabledForDeployment: {
384
- serializedName: "enabledForDeployment",
385
- type: {
386
- name: "Boolean"
387
- }
388
- },
389
- enabledForDiskEncryption: {
390
- serializedName: "enabledForDiskEncryption",
391
- type: {
392
- name: "Boolean"
393
- }
394
- },
395
- enabledForTemplateDeployment: {
396
- serializedName: "enabledForTemplateDeployment",
397
- type: {
398
- name: "Boolean"
399
- }
400
- },
401
- enableSoftDelete: {
402
- serializedName: "enableSoftDelete",
403
- defaultValue: true,
404
- type: {
405
- name: "Boolean"
406
- }
407
- },
408
- softDeleteRetentionInDays: {
409
- serializedName: "softDeleteRetentionInDays",
410
- defaultValue: 90,
411
- type: {
412
- name: "Number"
413
- }
414
- },
415
- enableRbacAuthorization: {
416
- serializedName: "enableRbacAuthorization",
417
- defaultValue: false,
418
- type: {
419
- name: "Boolean"
420
- }
421
- },
422
- createMode: {
423
- serializedName: "createMode",
424
- type: {
425
- name: "Enum",
426
- allowedValues: [
427
- "recover",
428
- "default"
429
- ]
430
- }
431
- },
432
- enablePurgeProtection: {
433
- serializedName: "enablePurgeProtection",
434
- type: {
435
- name: "Boolean"
436
- }
437
- },
438
- networkAcls: {
439
- serializedName: "networkAcls",
440
- type: {
441
- name: "Composite",
442
- className: "NetworkRuleSet"
443
- }
444
- },
445
- privateEndpointConnections: {
446
- readOnly: true,
447
- serializedName: "privateEndpointConnections",
448
- type: {
449
- name: "Sequence",
450
- element: {
451
- type: {
452
- name: "Composite",
453
- className: "PrivateEndpointConnectionItem"
454
- }
455
- }
456
- }
457
- }
458
- }
459
- }
460
- };
461
- var VaultPatchProperties = {
462
- serializedName: "VaultPatchProperties",
463
- type: {
464
- name: "Composite",
465
- className: "VaultPatchProperties",
466
- modelProperties: {
467
- tenantId: {
468
- serializedName: "tenantId",
469
- type: {
470
- name: "Uuid"
471
- }
472
- },
473
- sku: {
474
- serializedName: "sku",
475
- type: {
476
- name: "Composite",
477
- className: "Sku"
478
- }
479
- },
480
- accessPolicies: {
481
- serializedName: "accessPolicies",
482
- type: {
483
- name: "Sequence",
484
- element: {
485
- type: {
486
- name: "Composite",
487
- className: "AccessPolicyEntry"
488
- }
489
- }
490
- }
491
- },
492
- enabledForDeployment: {
493
- serializedName: "enabledForDeployment",
494
- type: {
495
- name: "Boolean"
496
- }
497
- },
498
- enabledForDiskEncryption: {
499
- serializedName: "enabledForDiskEncryption",
500
- type: {
501
- name: "Boolean"
502
- }
503
- },
504
- enabledForTemplateDeployment: {
505
- serializedName: "enabledForTemplateDeployment",
506
- type: {
507
- name: "Boolean"
508
- }
509
- },
510
- enableSoftDelete: {
511
- serializedName: "enableSoftDelete",
512
- type: {
513
- name: "Boolean"
514
- }
515
- },
516
- enableRbacAuthorization: {
517
- serializedName: "enableRbacAuthorization",
518
- type: {
519
- name: "Boolean"
520
- }
521
- },
522
- softDeleteRetentionInDays: {
523
- serializedName: "softDeleteRetentionInDays",
524
- type: {
525
- name: "Number"
526
- }
527
- },
528
- createMode: {
529
- serializedName: "createMode",
530
- type: {
531
- name: "Enum",
532
- allowedValues: [
533
- "recover",
534
- "default"
535
- ]
536
- }
537
- },
538
- enablePurgeProtection: {
539
- serializedName: "enablePurgeProtection",
540
- type: {
541
- name: "Boolean"
542
- }
543
- },
544
- networkAcls: {
545
- serializedName: "networkAcls",
546
- type: {
547
- name: "Composite",
548
- className: "NetworkRuleSet"
549
- }
550
- }
551
- }
552
- }
553
- };
554
- var VaultAccessPolicyProperties = {
555
- serializedName: "VaultAccessPolicyProperties",
556
- type: {
557
- name: "Composite",
558
- className: "VaultAccessPolicyProperties",
559
- modelProperties: {
560
- accessPolicies: {
561
- required: true,
562
- serializedName: "accessPolicies",
563
- type: {
564
- name: "Sequence",
565
- element: {
566
- type: {
567
- name: "Composite",
568
- className: "AccessPolicyEntry"
569
- }
570
- }
571
- }
572
- }
573
- }
574
- }
575
- };
576
- var DeletedVaultProperties = {
577
- serializedName: "DeletedVaultProperties",
578
- type: {
579
- name: "Composite",
580
- className: "DeletedVaultProperties",
581
- modelProperties: {
582
- vaultId: {
583
- readOnly: true,
584
- serializedName: "vaultId",
585
- type: {
586
- name: "String"
587
- }
588
- },
589
- location: {
590
- readOnly: true,
591
- serializedName: "location",
592
- type: {
593
- name: "String"
594
- }
595
- },
596
- deletionDate: {
597
- readOnly: true,
598
- serializedName: "deletionDate",
599
- type: {
600
- name: "DateTime"
601
- }
602
- },
603
- scheduledPurgeDate: {
604
- readOnly: true,
605
- serializedName: "scheduledPurgeDate",
606
- type: {
607
- name: "DateTime"
608
- }
609
- },
610
- tags: {
611
- readOnly: true,
612
- serializedName: "tags",
613
- type: {
614
- name: "Dictionary",
615
- value: {
616
- type: {
617
- name: "String"
618
- }
619
- }
620
- }
621
- }
622
- }
623
- }
624
- };
625
- var VaultCreateOrUpdateParameters = {
626
- serializedName: "VaultCreateOrUpdateParameters",
627
- type: {
628
- name: "Composite",
629
- className: "VaultCreateOrUpdateParameters",
630
- modelProperties: {
631
- location: {
632
- required: true,
633
- serializedName: "location",
634
- type: {
635
- name: "String"
636
- }
637
- },
638
- tags: {
639
- serializedName: "tags",
640
- type: {
641
- name: "Dictionary",
642
- value: {
643
- type: {
644
- name: "String"
645
- }
646
- }
647
- }
648
- },
649
- properties: {
650
- required: true,
651
- serializedName: "properties",
652
- defaultValue: {},
653
- type: {
654
- name: "Composite",
655
- className: "VaultProperties"
656
- }
657
- }
658
- }
659
- }
660
- };
661
- var VaultPatchParameters = {
662
- serializedName: "VaultPatchParameters",
663
- type: {
664
- name: "Composite",
665
- className: "VaultPatchParameters",
666
- modelProperties: {
667
- tags: {
668
- serializedName: "tags",
669
- type: {
670
- name: "Dictionary",
671
- value: {
672
- type: {
673
- name: "String"
674
- }
675
- }
676
- }
677
- },
678
- properties: {
679
- serializedName: "properties",
680
- type: {
681
- name: "Composite",
682
- className: "VaultPatchProperties"
683
- }
684
- }
685
- }
686
- }
687
- };
688
- var VaultAccessPolicyParameters = {
689
- serializedName: "VaultAccessPolicyParameters",
690
- type: {
691
- name: "Composite",
692
- className: "VaultAccessPolicyParameters",
693
- modelProperties: {
694
- id: {
695
- readOnly: true,
696
- serializedName: "id",
697
- type: {
698
- name: "String"
699
- }
700
- },
701
- name: {
702
- readOnly: true,
703
- serializedName: "name",
704
- type: {
705
- name: "String"
706
- }
707
- },
708
- type: {
709
- readOnly: true,
710
- serializedName: "type",
711
- type: {
712
- name: "String"
713
- }
714
- },
715
- location: {
716
- readOnly: true,
717
- serializedName: "location",
718
- type: {
719
- name: "String"
720
- }
721
- },
722
- properties: {
723
- required: true,
724
- serializedName: "properties",
725
- type: {
726
- name: "Composite",
727
- className: "VaultAccessPolicyProperties"
728
- }
729
- }
730
- }
731
- }
732
- };
733
- var Vault = {
734
- serializedName: "Vault",
735
- type: {
736
- name: "Composite",
737
- className: "Vault",
738
- modelProperties: {
739
- id: {
740
- readOnly: true,
741
- serializedName: "id",
742
- type: {
743
- name: "String"
744
- }
745
- },
746
- name: {
747
- readOnly: true,
748
- serializedName: "name",
749
- type: {
750
- name: "String"
751
- }
752
- },
753
- type: {
754
- readOnly: true,
755
- serializedName: "type",
756
- type: {
757
- name: "String"
758
- }
759
- },
760
- location: {
761
- serializedName: "location",
762
- type: {
763
- name: "String"
764
- }
765
- },
766
- tags: {
767
- serializedName: "tags",
768
- type: {
769
- name: "Dictionary",
770
- value: {
771
- type: {
772
- name: "String"
773
- }
774
- }
775
- }
776
- },
777
- properties: {
778
- required: true,
779
- serializedName: "properties",
780
- defaultValue: {},
781
- type: {
782
- name: "Composite",
783
- className: "VaultProperties"
784
- }
785
- }
786
- }
787
- }
788
- };
789
- var DeletedVault = {
790
- serializedName: "DeletedVault",
791
- type: {
792
- name: "Composite",
793
- className: "DeletedVault",
794
- modelProperties: {
795
- id: {
796
- readOnly: true,
797
- serializedName: "id",
798
- type: {
799
- name: "String"
800
- }
801
- },
802
- name: {
803
- readOnly: true,
804
- serializedName: "name",
805
- type: {
806
- name: "String"
807
- }
808
- },
809
- type: {
810
- readOnly: true,
811
- serializedName: "type",
812
- type: {
813
- name: "String"
814
- }
815
- },
816
- properties: {
817
- serializedName: "properties",
818
- type: {
819
- name: "Composite",
820
- className: "DeletedVaultProperties"
821
- }
822
- }
823
- }
824
- }
825
- };
826
- var Resource = {
827
- serializedName: "Resource",
828
- type: {
829
- name: "Composite",
830
- className: "Resource",
831
- modelProperties: {
832
- id: {
833
- readOnly: true,
834
- serializedName: "id",
835
- type: {
836
- name: "String"
837
- }
838
- },
839
- name: {
840
- readOnly: true,
841
- serializedName: "name",
842
- type: {
843
- name: "String"
844
- }
845
- },
846
- type: {
847
- readOnly: true,
848
- serializedName: "type",
849
- type: {
850
- name: "String"
851
- }
852
- },
853
- location: {
854
- readOnly: true,
855
- serializedName: "location",
856
- type: {
857
- name: "String"
858
- }
859
- },
860
- tags: {
861
- readOnly: true,
862
- serializedName: "tags",
863
- type: {
864
- name: "Dictionary",
865
- value: {
866
- type: {
867
- name: "String"
868
- }
869
- }
870
- }
871
- }
872
- }
873
- }
874
- };
875
- var VaultCheckNameAvailabilityParameters = {
876
- serializedName: "VaultCheckNameAvailabilityParameters",
877
- type: {
878
- name: "Composite",
879
- className: "VaultCheckNameAvailabilityParameters",
880
- modelProperties: {
881
- name: {
882
- required: true,
883
- serializedName: "name",
884
- type: {
885
- name: "String"
886
- }
887
- },
888
- type: {
889
- required: true,
890
- isConstant: true,
891
- serializedName: "type",
892
- defaultValue: 'Microsoft.KeyVault/vaults',
893
- type: {
894
- name: "String"
895
- }
896
- }
897
- }
898
- }
899
- };
900
- var CheckNameAvailabilityResult = {
901
- serializedName: "CheckNameAvailabilityResult",
902
- type: {
903
- name: "Composite",
904
- className: "CheckNameAvailabilityResult",
905
- modelProperties: {
906
- nameAvailable: {
907
- readOnly: true,
908
- serializedName: "nameAvailable",
909
- type: {
910
- name: "Boolean"
911
- }
912
- },
913
- reason: {
914
- readOnly: true,
915
- serializedName: "reason",
916
- type: {
917
- name: "Enum",
918
- allowedValues: [
919
- "AccountNameInvalid",
920
- "AlreadyExists"
921
- ]
922
- }
923
- },
924
- message: {
925
- readOnly: true,
926
- serializedName: "message",
927
- type: {
928
- name: "String"
929
- }
930
- }
931
- }
932
- }
933
- };
934
- var PrivateEndpointConnection = {
935
- serializedName: "PrivateEndpointConnection",
936
- type: {
937
- name: "Composite",
938
- className: "PrivateEndpointConnection",
939
- modelProperties: {
940
- privateEndpoint: {
941
- serializedName: "properties.privateEndpoint",
942
- type: {
943
- name: "Composite",
944
- className: "PrivateEndpoint"
945
- }
946
- },
947
- privateLinkServiceConnectionState: {
948
- serializedName: "properties.privateLinkServiceConnectionState",
949
- type: {
950
- name: "Composite",
951
- className: "PrivateLinkServiceConnectionState"
952
- }
953
- },
954
- provisioningState: {
955
- serializedName: "properties.provisioningState",
956
- type: {
957
- name: "String"
958
- }
959
- }
960
- }
961
- }
962
- };
963
- var PrivateLinkResource = {
964
- serializedName: "PrivateLinkResource",
965
- type: {
966
- name: "Composite",
967
- className: "PrivateLinkResource",
968
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { groupId: {
969
- readOnly: true,
970
- serializedName: "properties.groupId",
971
- type: {
972
- name: "String"
973
- }
974
- }, requiredMembers: {
975
- readOnly: true,
976
- serializedName: "properties.requiredMembers",
977
- type: {
978
- name: "Sequence",
979
- element: {
980
- type: {
981
- name: "String"
982
- }
983
- }
984
- }
985
- }, requiredZoneNames: {
986
- serializedName: "properties.requiredZoneNames",
987
- type: {
988
- name: "Sequence",
989
- element: {
990
- type: {
991
- name: "String"
992
- }
993
- }
994
- }
995
- } })
996
- }
997
- };
998
- var PrivateLinkResourceListResult = {
999
- serializedName: "PrivateLinkResourceListResult",
1000
- type: {
1001
- name: "Composite",
1002
- className: "PrivateLinkResourceListResult",
1003
- modelProperties: {
1004
- value: {
1005
- serializedName: "value",
1006
- type: {
1007
- name: "Sequence",
1008
- element: {
1009
- type: {
1010
- name: "Composite",
1011
- className: "PrivateLinkResource"
1012
- }
1013
- }
1014
- }
1015
- }
1016
- }
1017
- }
1018
- };
1019
- var OperationDisplay = {
1020
- serializedName: "Operation_display",
1021
- type: {
1022
- name: "Composite",
1023
- className: "OperationDisplay",
1024
- modelProperties: {
1025
- provider: {
1026
- serializedName: "provider",
1027
- type: {
1028
- name: "String"
1029
- }
1030
- },
1031
- resource: {
1032
- serializedName: "resource",
1033
- type: {
1034
- name: "String"
1035
- }
1036
- },
1037
- operation: {
1038
- serializedName: "operation",
1039
- type: {
1040
- name: "String"
1041
- }
1042
- },
1043
- description: {
1044
- serializedName: "description",
1045
- type: {
1046
- name: "String"
1047
- }
1048
- }
1049
- }
1050
- }
1051
- };
1052
- var LogSpecification = {
1053
- serializedName: "LogSpecification",
1054
- type: {
1055
- name: "Composite",
1056
- className: "LogSpecification",
1057
- modelProperties: {
1058
- name: {
1059
- serializedName: "name",
1060
- type: {
1061
- name: "String"
1062
- }
1063
- },
1064
- displayName: {
1065
- serializedName: "displayName",
1066
- type: {
1067
- name: "String"
1068
- }
1069
- },
1070
- blobDuration: {
1071
- serializedName: "blobDuration",
1072
- type: {
1073
- name: "String"
1074
- }
1075
- }
1076
- }
1077
- }
1078
- };
1079
- var ServiceSpecification = {
1080
- serializedName: "ServiceSpecification",
1081
- type: {
1082
- name: "Composite",
1083
- className: "ServiceSpecification",
1084
- modelProperties: {
1085
- logSpecifications: {
1086
- serializedName: "logSpecifications",
1087
- type: {
1088
- name: "Sequence",
1089
- element: {
1090
- type: {
1091
- name: "Composite",
1092
- className: "LogSpecification"
1093
- }
1094
- }
1095
- }
1096
- }
1097
- }
1098
- }
1099
- };
1100
- var Operation = {
1101
- serializedName: "Operation",
1102
- type: {
1103
- name: "Composite",
1104
- className: "Operation",
1105
- modelProperties: {
1106
- name: {
1107
- serializedName: "name",
1108
- type: {
1109
- name: "String"
1110
- }
1111
- },
1112
- display: {
1113
- serializedName: "display",
1114
- type: {
1115
- name: "Composite",
1116
- className: "OperationDisplay"
1117
- }
1118
- },
1119
- origin: {
1120
- serializedName: "origin",
1121
- type: {
1122
- name: "String"
1123
- }
1124
- },
1125
- serviceSpecification: {
1126
- serializedName: "properties.serviceSpecification",
1127
- type: {
1128
- name: "Composite",
1129
- className: "ServiceSpecification"
1130
- }
1131
- }
1132
- }
1133
- }
1134
- };
1135
- var Attributes = {
1136
- serializedName: "Attributes",
1137
- type: {
1138
- name: "Composite",
1139
- className: "Attributes",
1140
- modelProperties: {
1141
- enabled: {
1142
- serializedName: "enabled",
1143
- type: {
1144
- name: "Boolean"
1145
- }
1146
- },
1147
- notBefore: {
1148
- serializedName: "nbf",
1149
- type: {
1150
- name: "UnixTime"
1151
- }
1152
- },
1153
- expires: {
1154
- serializedName: "exp",
1155
- type: {
1156
- name: "UnixTime"
1157
- }
1158
- },
1159
- created: {
1160
- readOnly: true,
1161
- serializedName: "created",
1162
- type: {
1163
- name: "UnixTime"
1164
- }
1165
- },
1166
- updated: {
1167
- readOnly: true,
1168
- serializedName: "updated",
1169
- type: {
1170
- name: "UnixTime"
1171
- }
1172
- }
1173
- }
1174
- }
1175
- };
1176
- var SecretAttributes = {
1177
- serializedName: "SecretAttributes",
1178
- type: {
1179
- name: "Composite",
1180
- className: "SecretAttributes",
1181
- modelProperties: __assign({}, Attributes.type.modelProperties)
1182
- }
1183
- };
1184
- var SecretProperties = {
1185
- serializedName: "SecretProperties",
1186
- type: {
1187
- name: "Composite",
1188
- className: "SecretProperties",
1189
- modelProperties: {
1190
- value: {
1191
- serializedName: "value",
1192
- type: {
1193
- name: "String"
1194
- }
1195
- },
1196
- contentType: {
1197
- serializedName: "contentType",
1198
- type: {
1199
- name: "String"
1200
- }
1201
- },
1202
- attributes: {
1203
- serializedName: "attributes",
1204
- type: {
1205
- name: "Composite",
1206
- className: "SecretAttributes"
1207
- }
1208
- },
1209
- secretUri: {
1210
- readOnly: true,
1211
- serializedName: "secretUri",
1212
- type: {
1213
- name: "String"
1214
- }
1215
- },
1216
- secretUriWithVersion: {
1217
- readOnly: true,
1218
- serializedName: "secretUriWithVersion",
1219
- type: {
1220
- name: "String"
1221
- }
1222
- }
1223
- }
1224
- }
1225
- };
1226
- var SecretPatchProperties = {
1227
- serializedName: "SecretPatchProperties",
1228
- type: {
1229
- name: "Composite",
1230
- className: "SecretPatchProperties",
1231
- modelProperties: {
1232
- value: {
1233
- serializedName: "value",
1234
- type: {
1235
- name: "String"
1236
- }
1237
- },
1238
- contentType: {
1239
- serializedName: "contentType",
1240
- type: {
1241
- name: "String"
1242
- }
1243
- },
1244
- attributes: {
1245
- serializedName: "attributes",
1246
- type: {
1247
- name: "Composite",
1248
- className: "SecretAttributes"
1249
- }
1250
- }
1251
- }
1252
- }
1253
- };
1254
- var SecretCreateOrUpdateParameters = {
1255
- serializedName: "SecretCreateOrUpdateParameters",
1256
- type: {
1257
- name: "Composite",
1258
- className: "SecretCreateOrUpdateParameters",
1259
- modelProperties: {
1260
- tags: {
1261
- serializedName: "tags",
1262
- type: {
1263
- name: "Dictionary",
1264
- value: {
1265
- type: {
1266
- name: "String"
1267
- }
1268
- }
1269
- }
1270
- },
1271
- properties: {
1272
- required: true,
1273
- serializedName: "properties",
1274
- type: {
1275
- name: "Composite",
1276
- className: "SecretProperties"
1277
- }
1278
- }
1279
- }
1280
- }
1281
- };
1282
- var SecretPatchParameters = {
1283
- serializedName: "SecretPatchParameters",
1284
- type: {
1285
- name: "Composite",
1286
- className: "SecretPatchParameters",
1287
- modelProperties: {
1288
- tags: {
1289
- serializedName: "tags",
1290
- type: {
1291
- name: "Dictionary",
1292
- value: {
1293
- type: {
1294
- name: "String"
1295
- }
1296
- }
1297
- }
1298
- },
1299
- properties: {
1300
- serializedName: "properties",
1301
- type: {
1302
- name: "Composite",
1303
- className: "SecretPatchProperties"
1304
- }
1305
- }
1306
- }
1307
- }
1308
- };
1309
- var Secret = {
1310
- serializedName: "Secret",
1311
- type: {
1312
- name: "Composite",
1313
- className: "Secret",
1314
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { properties: {
1315
- required: true,
1316
- serializedName: "properties",
1317
- type: {
1318
- name: "Composite",
1319
- className: "SecretProperties"
1320
- }
1321
- } })
1322
- }
1323
- };
1324
- var PrivateEndpointConnectionsPutHeaders = {
1325
- serializedName: "privateendpointconnections-put-headers",
1326
- type: {
1327
- name: "Composite",
1328
- className: "PrivateEndpointConnectionsPutHeaders",
1329
- modelProperties: {
1330
- retryAfter: {
1331
- serializedName: "retry-after",
1332
- type: {
1333
- name: "Number"
1334
- }
1335
- },
1336
- azureAsyncOperation: {
1337
- serializedName: "azure-asyncoperation",
1338
- type: {
1339
- name: "String"
1340
- }
1341
- }
1342
- }
1343
- }
1344
- };
1345
- var PrivateEndpointConnectionsDeleteHeaders = {
1346
- serializedName: "privateendpointconnections-delete-headers",
1347
- type: {
1348
- name: "Composite",
1349
- className: "PrivateEndpointConnectionsDeleteHeaders",
1350
- modelProperties: {
1351
- retryAfter: {
1352
- serializedName: "retry-after",
1353
- type: {
1354
- name: "Number"
1355
- }
1356
- },
1357
- locationHeader: {
1358
- serializedName: "location",
1359
- type: {
1360
- name: "String"
1361
- }
1362
- }
1363
- }
1364
- }
1365
- };
1366
- var VaultListResult = {
1367
- serializedName: "VaultListResult",
1368
- type: {
1369
- name: "Composite",
1370
- className: "VaultListResult",
1371
- modelProperties: {
1372
- value: {
1373
- serializedName: "",
1374
- type: {
1375
- name: "Sequence",
1376
- element: {
1377
- type: {
1378
- name: "Composite",
1379
- className: "Vault"
1380
- }
1381
- }
1382
- }
1383
- },
1384
- nextLink: {
1385
- serializedName: "nextLink",
1386
- type: {
1387
- name: "String"
1388
- }
1389
- }
1390
- }
1391
- }
1392
- };
1393
- var DeletedVaultListResult = {
1394
- serializedName: "DeletedVaultListResult",
1395
- type: {
1396
- name: "Composite",
1397
- className: "DeletedVaultListResult",
1398
- modelProperties: {
1399
- value: {
1400
- serializedName: "",
1401
- type: {
1402
- name: "Sequence",
1403
- element: {
1404
- type: {
1405
- name: "Composite",
1406
- className: "DeletedVault"
1407
- }
1408
- }
1409
- }
1410
- },
1411
- nextLink: {
1412
- serializedName: "nextLink",
1413
- type: {
1414
- name: "String"
1415
- }
1416
- }
1417
- }
1418
- }
1419
- };
1420
- var ResourceListResult = {
1421
- serializedName: "ResourceListResult",
1422
- type: {
1423
- name: "Composite",
1424
- className: "ResourceListResult",
1425
- modelProperties: {
1426
- value: {
1427
- serializedName: "",
1428
- type: {
1429
- name: "Sequence",
1430
- element: {
1431
- type: {
1432
- name: "Composite",
1433
- className: "Resource"
1434
- }
1435
- }
1436
- }
1437
- },
1438
- nextLink: {
1439
- serializedName: "nextLink",
1440
- type: {
1441
- name: "String"
1442
- }
1443
- }
1444
- }
1445
- }
1446
- };
1447
- var OperationListResult = {
1448
- serializedName: "OperationListResult",
1449
- type: {
1450
- name: "Composite",
1451
- className: "OperationListResult",
1452
- modelProperties: {
1453
- value: {
1454
- serializedName: "",
1455
- type: {
1456
- name: "Sequence",
1457
- element: {
1458
- type: {
1459
- name: "Composite",
1460
- className: "Operation"
1461
- }
1462
- }
1463
- }
1464
- },
1465
- nextLink: {
1466
- serializedName: "nextLink",
1467
- type: {
1468
- name: "String"
1469
- }
1470
- }
1471
- }
1472
- }
1473
- };
1474
- var SecretListResult = {
1475
- serializedName: "SecretListResult",
1476
- type: {
1477
- name: "Composite",
1478
- className: "SecretListResult",
1479
- modelProperties: {
1480
- value: {
1481
- serializedName: "",
1482
- type: {
1483
- name: "Sequence",
1484
- element: {
1485
- type: {
1486
- name: "Composite",
1487
- className: "Secret"
1488
- }
1489
- }
1490
- }
1491
- },
1492
- nextLink: {
1493
- serializedName: "nextLink",
1494
- type: {
1495
- name: "String"
1496
- }
1497
- }
1498
- }
1499
- }
1500
- };
1501
-
1502
- var mappers = /*#__PURE__*/Object.freeze({
1503
- __proto__: null,
1504
- CloudError: CloudError,
1505
- BaseResource: BaseResource,
1506
- Sku: Sku,
1507
- Permissions: Permissions,
1508
- AccessPolicyEntry: AccessPolicyEntry,
1509
- IPRule: IPRule,
1510
- VirtualNetworkRule: VirtualNetworkRule,
1511
- NetworkRuleSet: NetworkRuleSet,
1512
- PrivateEndpoint: PrivateEndpoint,
1513
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1514
- PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
1515
- VaultProperties: VaultProperties,
1516
- VaultPatchProperties: VaultPatchProperties,
1517
- VaultAccessPolicyProperties: VaultAccessPolicyProperties,
1518
- DeletedVaultProperties: DeletedVaultProperties,
1519
- VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
1520
- VaultPatchParameters: VaultPatchParameters,
1521
- VaultAccessPolicyParameters: VaultAccessPolicyParameters,
1522
- Vault: Vault,
1523
- DeletedVault: DeletedVault,
1524
- Resource: Resource,
1525
- VaultCheckNameAvailabilityParameters: VaultCheckNameAvailabilityParameters,
1526
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
1527
- PrivateEndpointConnection: PrivateEndpointConnection,
1528
- PrivateLinkResource: PrivateLinkResource,
1529
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1530
- OperationDisplay: OperationDisplay,
1531
- LogSpecification: LogSpecification,
1532
- ServiceSpecification: ServiceSpecification,
1533
- Operation: Operation,
1534
- Attributes: Attributes,
1535
- SecretAttributes: SecretAttributes,
1536
- SecretProperties: SecretProperties,
1537
- SecretPatchProperties: SecretPatchProperties,
1538
- SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
1539
- SecretPatchParameters: SecretPatchParameters,
1540
- Secret: Secret,
1541
- PrivateEndpointConnectionsPutHeaders: PrivateEndpointConnectionsPutHeaders,
1542
- PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
1543
- VaultListResult: VaultListResult,
1544
- DeletedVaultListResult: DeletedVaultListResult,
1545
- ResourceListResult: ResourceListResult,
1546
- OperationListResult: OperationListResult,
1547
- SecretListResult: SecretListResult
1548
- });
1549
-
1550
- /*
1551
- * Copyright (c) Microsoft Corporation. All rights reserved.
1552
- * Licensed under the MIT License. See License.txt in the project root for license information.
1553
- *
1554
- * Code generated by Microsoft (R) AutoRest Code Generator.
1555
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1556
- */
1557
-
1558
- var Mappers = /*#__PURE__*/Object.freeze({
1559
- __proto__: null,
1560
- AccessPolicyEntry: AccessPolicyEntry,
1561
- Attributes: Attributes,
1562
- BaseResource: BaseResource,
1563
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
1564
- CloudError: CloudError,
1565
- DeletedVault: DeletedVault,
1566
- DeletedVaultListResult: DeletedVaultListResult,
1567
- DeletedVaultProperties: DeletedVaultProperties,
1568
- IPRule: IPRule,
1569
- NetworkRuleSet: NetworkRuleSet,
1570
- Permissions: Permissions,
1571
- PrivateEndpoint: PrivateEndpoint,
1572
- PrivateEndpointConnection: PrivateEndpointConnection,
1573
- PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
1574
- PrivateLinkResource: PrivateLinkResource,
1575
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1576
- Resource: Resource,
1577
- ResourceListResult: ResourceListResult,
1578
- Secret: Secret,
1579
- SecretAttributes: SecretAttributes,
1580
- SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
1581
- SecretPatchParameters: SecretPatchParameters,
1582
- SecretPatchProperties: SecretPatchProperties,
1583
- SecretProperties: SecretProperties,
1584
- Sku: Sku,
1585
- Vault: Vault,
1586
- VaultAccessPolicyParameters: VaultAccessPolicyParameters,
1587
- VaultAccessPolicyProperties: VaultAccessPolicyProperties,
1588
- VaultCheckNameAvailabilityParameters: VaultCheckNameAvailabilityParameters,
1589
- VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
1590
- VaultListResult: VaultListResult,
1591
- VaultPatchParameters: VaultPatchParameters,
1592
- VaultPatchProperties: VaultPatchProperties,
1593
- VaultProperties: VaultProperties,
1594
- VirtualNetworkRule: VirtualNetworkRule
1595
- });
1596
-
1597
- /*
1598
- * Copyright (c) Microsoft Corporation. All rights reserved.
1599
- * Licensed under the MIT License. See License.txt in the project root for
1600
- * license information.
1601
- *
1602
- * Code generated by Microsoft (R) AutoRest Code Generator.
1603
- * Changes may cause incorrect behavior and will be lost if the code is
1604
- * regenerated.
1605
- */
1606
- var acceptLanguage = {
1607
- parameterPath: "acceptLanguage",
1608
- mapper: {
1609
- serializedName: "accept-language",
1610
- defaultValue: 'en-US',
1611
- type: {
1612
- name: "String"
1613
- }
1614
- }
1615
- };
1616
- var apiVersion0 = {
1617
- parameterPath: "apiVersion",
1618
- mapper: {
1619
- required: true,
1620
- serializedName: "api-version",
1621
- type: {
1622
- name: "String"
1623
- }
1624
- }
1625
- };
1626
- var apiVersion1 = {
1627
- parameterPath: "apiVersion",
1628
- mapper: {
1629
- required: true,
1630
- isConstant: true,
1631
- serializedName: "api-version",
1632
- defaultValue: '2015-11-01',
1633
- type: {
1634
- name: "String"
1635
- }
1636
- }
1637
- };
1638
- var filter = {
1639
- parameterPath: "filter",
1640
- mapper: {
1641
- required: true,
1642
- isConstant: true,
1643
- serializedName: "$filter",
1644
- defaultValue: 'resourceType eq \'Microsoft.KeyVault/vaults\'',
1645
- type: {
1646
- name: "String"
1647
- }
1648
- }
1649
- };
1650
- var location = {
1651
- parameterPath: "location",
1652
- mapper: {
1653
- required: true,
1654
- serializedName: "location",
1655
- type: {
1656
- name: "String"
1657
- }
1658
- }
1659
- };
1660
- var nextPageLink = {
1661
- parameterPath: "nextPageLink",
1662
- mapper: {
1663
- required: true,
1664
- serializedName: "nextLink",
1665
- type: {
1666
- name: "String"
1667
- }
1668
- },
1669
- skipEncoding: true
1670
- };
1671
- var operationKind = {
1672
- parameterPath: "operationKind",
1673
- mapper: {
1674
- required: true,
1675
- serializedName: "operationKind",
1676
- type: {
1677
- name: "Enum",
1678
- allowedValues: [
1679
- "add",
1680
- "replace",
1681
- "remove"
1682
- ]
1683
- }
1684
- }
1685
- };
1686
- var privateEndpointConnectionName = {
1687
- parameterPath: "privateEndpointConnectionName",
1688
- mapper: {
1689
- required: true,
1690
- serializedName: "privateEndpointConnectionName",
1691
- type: {
1692
- name: "String"
1693
- }
1694
- }
1695
- };
1696
- var resourceGroupName = {
1697
- parameterPath: "resourceGroupName",
1698
- mapper: {
1699
- required: true,
1700
- serializedName: "resourceGroupName",
1701
- type: {
1702
- name: "String"
1703
- }
1704
- }
1705
- };
1706
- var secretName0 = {
1707
- parameterPath: "secretName",
1708
- mapper: {
1709
- required: true,
1710
- serializedName: "secretName",
1711
- constraints: {
1712
- Pattern: /^[a-zA-Z0-9-]{1,127}$/
1713
- },
1714
- type: {
1715
- name: "String"
1716
- }
1717
- }
1718
- };
1719
- var secretName1 = {
1720
- parameterPath: "secretName",
1721
- mapper: {
1722
- required: true,
1723
- serializedName: "secretName",
1724
- type: {
1725
- name: "String"
1726
- }
1727
- }
1728
- };
1729
- var subscriptionId = {
1730
- parameterPath: "subscriptionId",
1731
- mapper: {
1732
- required: true,
1733
- serializedName: "subscriptionId",
1734
- type: {
1735
- name: "String"
1736
- }
1737
- }
1738
- };
1739
- var top = {
1740
- parameterPath: [
1741
- "options",
1742
- "top"
1743
- ],
1744
- mapper: {
1745
- serializedName: "$top",
1746
- type: {
1747
- name: "Number"
1748
- }
1749
- }
1750
- };
1751
- var vaultName0 = {
1752
- parameterPath: "vaultName",
1753
- mapper: {
1754
- required: true,
1755
- serializedName: "vaultName",
1756
- constraints: {
1757
- Pattern: /^[a-zA-Z0-9-]{3,24}$/
1758
- },
1759
- type: {
1760
- name: "String"
1761
- }
1762
- }
1763
- };
1764
- var vaultName1 = {
1765
- parameterPath: "vaultName",
1766
- mapper: {
1767
- required: true,
1768
- serializedName: "vaultName",
1769
- type: {
1770
- name: "String"
1771
- }
1772
- }
1773
- };
1774
-
1775
- /*
1776
- * Copyright (c) Microsoft Corporation. All rights reserved.
1777
- * Licensed under the MIT License. See License.txt in the project root for
1778
- * license information.
1779
- *
1780
- * Code generated by Microsoft (R) AutoRest Code Generator.
1781
- * Changes may cause incorrect behavior and will be lost if the code is
1782
- * regenerated.
1783
- */
1784
- /** Class representing a Vaults. */
1785
- var Vaults = /** @class */ (function () {
1786
- /**
1787
- * Create a Vaults.
1788
- * @param {KeyVaultManagementClientContext} client Reference to the service client.
1789
- */
1790
- function Vaults(client) {
1791
- this.client = client;
1792
- }
1793
- /**
1794
- * Create or update a key vault in the specified subscription.
1795
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
1796
- * @param vaultName Name of the vault
1797
- * @param parameters Parameters to create or update the vault
1798
- * @param [options] The optional parameters
1799
- * @returns Promise<Models.VaultsCreateOrUpdateResponse>
1800
- */
1801
- Vaults.prototype.createOrUpdate = function (resourceGroupName, vaultName, parameters, options) {
1802
- return this.beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options)
1803
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1804
- };
1805
- Vaults.prototype.update = function (resourceGroupName, vaultName, parameters, options, callback) {
1806
- return this.client.sendOperationRequest({
1807
- resourceGroupName: resourceGroupName,
1808
- vaultName: vaultName,
1809
- parameters: parameters,
1810
- options: options
1811
- }, updateOperationSpec, callback);
1812
- };
1813
- Vaults.prototype.deleteMethod = function (resourceGroupName, vaultName, options, callback) {
1814
- return this.client.sendOperationRequest({
1815
- resourceGroupName: resourceGroupName,
1816
- vaultName: vaultName,
1817
- options: options
1818
- }, deleteMethodOperationSpec, callback);
1819
- };
1820
- Vaults.prototype.get = function (resourceGroupName, vaultName, options, callback) {
1821
- return this.client.sendOperationRequest({
1822
- resourceGroupName: resourceGroupName,
1823
- vaultName: vaultName,
1824
- options: options
1825
- }, getOperationSpec, callback);
1826
- };
1827
- Vaults.prototype.updateAccessPolicy = function (resourceGroupName, vaultName, operationKind, parameters, options, callback) {
1828
- return this.client.sendOperationRequest({
1829
- resourceGroupName: resourceGroupName,
1830
- vaultName: vaultName,
1831
- operationKind: operationKind,
1832
- parameters: parameters,
1833
- options: options
1834
- }, updateAccessPolicyOperationSpec, callback);
1835
- };
1836
- Vaults.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
1837
- return this.client.sendOperationRequest({
1838
- resourceGroupName: resourceGroupName,
1839
- options: options
1840
- }, listByResourceGroupOperationSpec, callback);
1841
- };
1842
- Vaults.prototype.listBySubscription = function (options, callback) {
1843
- return this.client.sendOperationRequest({
1844
- options: options
1845
- }, listBySubscriptionOperationSpec, callback);
1846
- };
1847
- Vaults.prototype.listDeleted = function (options, callback) {
1848
- return this.client.sendOperationRequest({
1849
- options: options
1850
- }, listDeletedOperationSpec, callback);
1851
- };
1852
- Vaults.prototype.getDeleted = function (vaultName, location, options, callback) {
1853
- return this.client.sendOperationRequest({
1854
- vaultName: vaultName,
1855
- location: location,
1856
- options: options
1857
- }, getDeletedOperationSpec, callback);
1858
- };
1859
- /**
1860
- * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
1861
- * @param vaultName The name of the soft-deleted vault.
1862
- * @param location The location of the soft-deleted vault.
1863
- * @param [options] The optional parameters
1864
- * @returns Promise<msRest.RestResponse>
1865
- */
1866
- Vaults.prototype.purgeDeleted = function (vaultName, location, options) {
1867
- return this.beginPurgeDeleted(vaultName, location, options)
1868
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1869
- };
1870
- Vaults.prototype.list = function (options, callback) {
1871
- return this.client.sendOperationRequest({
1872
- options: options
1873
- }, listOperationSpec, callback);
1874
- };
1875
- Vaults.prototype.checkNameAvailability = function (vaultName, options, callback) {
1876
- return this.client.sendOperationRequest({
1877
- vaultName: vaultName,
1878
- options: options
1879
- }, checkNameAvailabilityOperationSpec, callback);
1880
- };
1881
- /**
1882
- * Create or update a key vault in the specified subscription.
1883
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
1884
- * @param vaultName Name of the vault
1885
- * @param parameters Parameters to create or update the vault
1886
- * @param [options] The optional parameters
1887
- * @returns Promise<msRestAzure.LROPoller>
1888
- */
1889
- Vaults.prototype.beginCreateOrUpdate = function (resourceGroupName, vaultName, parameters, options) {
1890
- return this.client.sendLRORequest({
1891
- resourceGroupName: resourceGroupName,
1892
- vaultName: vaultName,
1893
- parameters: parameters,
1894
- options: options
1895
- }, beginCreateOrUpdateOperationSpec, options);
1896
- };
1897
- /**
1898
- * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
1899
- * @param vaultName The name of the soft-deleted vault.
1900
- * @param location The location of the soft-deleted vault.
1901
- * @param [options] The optional parameters
1902
- * @returns Promise<msRestAzure.LROPoller>
1903
- */
1904
- Vaults.prototype.beginPurgeDeleted = function (vaultName, location, options) {
1905
- return this.client.sendLRORequest({
1906
- vaultName: vaultName,
1907
- location: location,
1908
- options: options
1909
- }, beginPurgeDeletedOperationSpec, options);
1910
- };
1911
- Vaults.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
1912
- return this.client.sendOperationRequest({
1913
- nextPageLink: nextPageLink,
1914
- options: options
1915
- }, listByResourceGroupNextOperationSpec, callback);
1916
- };
1917
- Vaults.prototype.listBySubscriptionNext = function (nextPageLink, options, callback) {
1918
- return this.client.sendOperationRequest({
1919
- nextPageLink: nextPageLink,
1920
- options: options
1921
- }, listBySubscriptionNextOperationSpec, callback);
1922
- };
1923
- Vaults.prototype.listDeletedNext = function (nextPageLink, options, callback) {
1924
- return this.client.sendOperationRequest({
1925
- nextPageLink: nextPageLink,
1926
- options: options
1927
- }, listDeletedNextOperationSpec, callback);
1928
- };
1929
- Vaults.prototype.listNext = function (nextPageLink, options, callback) {
1930
- return this.client.sendOperationRequest({
1931
- nextPageLink: nextPageLink,
1932
- options: options
1933
- }, listNextOperationSpec, callback);
1934
- };
1935
- return Vaults;
1936
- }());
1937
- // Operation Specifications
1938
- var serializer = new msRest.Serializer(Mappers);
1939
- var updateOperationSpec = {
1940
- httpMethod: "PATCH",
1941
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
1942
- urlParameters: [
1943
- resourceGroupName,
1944
- vaultName0,
1945
- subscriptionId
1946
- ],
1947
- queryParameters: [
1948
- apiVersion0
1949
- ],
1950
- headerParameters: [
1951
- acceptLanguage
1952
- ],
1953
- requestBody: {
1954
- parameterPath: "parameters",
1955
- mapper: __assign(__assign({}, VaultPatchParameters), { required: true })
1956
- },
1957
- responses: {
1958
- 200: {
1959
- bodyMapper: Vault
1960
- },
1961
- 201: {
1962
- bodyMapper: Vault
1963
- },
1964
- default: {
1965
- bodyMapper: CloudError
1966
- }
1967
- },
1968
- serializer: serializer
1969
- };
1970
- var deleteMethodOperationSpec = {
1971
- httpMethod: "DELETE",
1972
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
1973
- urlParameters: [
1974
- resourceGroupName,
1975
- vaultName1,
1976
- subscriptionId
1977
- ],
1978
- queryParameters: [
1979
- apiVersion0
1980
- ],
1981
- headerParameters: [
1982
- acceptLanguage
1983
- ],
1984
- responses: {
1985
- 200: {},
1986
- 204: {},
1987
- default: {
1988
- bodyMapper: CloudError
1989
- }
1990
- },
1991
- serializer: serializer
1992
- };
1993
- var getOperationSpec = {
1994
- httpMethod: "GET",
1995
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
1996
- urlParameters: [
1997
- resourceGroupName,
1998
- vaultName1,
1999
- subscriptionId
2000
- ],
2001
- queryParameters: [
2002
- apiVersion0
2003
- ],
2004
- headerParameters: [
2005
- acceptLanguage
2006
- ],
2007
- responses: {
2008
- 200: {
2009
- bodyMapper: Vault
2010
- },
2011
- default: {
2012
- bodyMapper: CloudError
2013
- }
2014
- },
2015
- serializer: serializer
2016
- };
2017
- var updateAccessPolicyOperationSpec = {
2018
- httpMethod: "PUT",
2019
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}",
2020
- urlParameters: [
2021
- resourceGroupName,
2022
- vaultName0,
2023
- operationKind,
2024
- subscriptionId
2025
- ],
2026
- queryParameters: [
2027
- apiVersion0
2028
- ],
2029
- headerParameters: [
2030
- acceptLanguage
2031
- ],
2032
- requestBody: {
2033
- parameterPath: "parameters",
2034
- mapper: __assign(__assign({}, VaultAccessPolicyParameters), { required: true })
2035
- },
2036
- responses: {
2037
- 200: {
2038
- bodyMapper: VaultAccessPolicyParameters
2039
- },
2040
- 201: {
2041
- bodyMapper: VaultAccessPolicyParameters
2042
- },
2043
- default: {
2044
- bodyMapper: CloudError
2045
- }
2046
- },
2047
- serializer: serializer
2048
- };
2049
- var listByResourceGroupOperationSpec = {
2050
- httpMethod: "GET",
2051
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults",
2052
- urlParameters: [
2053
- resourceGroupName,
2054
- subscriptionId
2055
- ],
2056
- queryParameters: [
2057
- top,
2058
- apiVersion0
2059
- ],
2060
- headerParameters: [
2061
- acceptLanguage
2062
- ],
2063
- responses: {
2064
- 200: {
2065
- bodyMapper: VaultListResult
2066
- },
2067
- default: {
2068
- bodyMapper: CloudError
2069
- }
2070
- },
2071
- serializer: serializer
2072
- };
2073
- var listBySubscriptionOperationSpec = {
2074
- httpMethod: "GET",
2075
- path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults",
2076
- urlParameters: [
2077
- subscriptionId
2078
- ],
2079
- queryParameters: [
2080
- top,
2081
- apiVersion0
2082
- ],
2083
- headerParameters: [
2084
- acceptLanguage
2085
- ],
2086
- responses: {
2087
- 200: {
2088
- bodyMapper: VaultListResult
2089
- },
2090
- default: {
2091
- bodyMapper: CloudError
2092
- }
2093
- },
2094
- serializer: serializer
2095
- };
2096
- var listDeletedOperationSpec = {
2097
- httpMethod: "GET",
2098
- path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults",
2099
- urlParameters: [
2100
- subscriptionId
2101
- ],
2102
- queryParameters: [
2103
- apiVersion0
2104
- ],
2105
- headerParameters: [
2106
- acceptLanguage
2107
- ],
2108
- responses: {
2109
- 200: {
2110
- bodyMapper: DeletedVaultListResult
2111
- },
2112
- default: {
2113
- bodyMapper: CloudError
2114
- }
2115
- },
2116
- serializer: serializer
2117
- };
2118
- var getDeletedOperationSpec = {
2119
- httpMethod: "GET",
2120
- path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}",
2121
- urlParameters: [
2122
- vaultName1,
2123
- location,
2124
- subscriptionId
2125
- ],
2126
- queryParameters: [
2127
- apiVersion0
2128
- ],
2129
- headerParameters: [
2130
- acceptLanguage
2131
- ],
2132
- responses: {
2133
- 200: {
2134
- bodyMapper: DeletedVault
2135
- },
2136
- default: {
2137
- bodyMapper: CloudError
2138
- }
2139
- },
2140
- serializer: serializer
2141
- };
2142
- var listOperationSpec = {
2143
- httpMethod: "GET",
2144
- path: "subscriptions/{subscriptionId}/resources",
2145
- urlParameters: [
2146
- subscriptionId
2147
- ],
2148
- queryParameters: [
2149
- filter,
2150
- top,
2151
- apiVersion1
2152
- ],
2153
- headerParameters: [
2154
- acceptLanguage
2155
- ],
2156
- responses: {
2157
- 200: {
2158
- bodyMapper: ResourceListResult
2159
- },
2160
- default: {
2161
- bodyMapper: CloudError
2162
- }
2163
- },
2164
- serializer: serializer
2165
- };
2166
- var checkNameAvailabilityOperationSpec = {
2167
- httpMethod: "POST",
2168
- path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability",
2169
- urlParameters: [
2170
- subscriptionId
2171
- ],
2172
- queryParameters: [
2173
- apiVersion0
2174
- ],
2175
- headerParameters: [
2176
- acceptLanguage
2177
- ],
2178
- requestBody: {
2179
- parameterPath: "vaultName",
2180
- mapper: __assign(__assign({}, VaultCheckNameAvailabilityParameters), { required: true })
2181
- },
2182
- responses: {
2183
- 200: {
2184
- bodyMapper: CheckNameAvailabilityResult
2185
- },
2186
- default: {
2187
- bodyMapper: CloudError
2188
- }
2189
- },
2190
- serializer: serializer
2191
- };
2192
- var beginCreateOrUpdateOperationSpec = {
2193
- httpMethod: "PUT",
2194
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
2195
- urlParameters: [
2196
- resourceGroupName,
2197
- vaultName0,
2198
- subscriptionId
2199
- ],
2200
- queryParameters: [
2201
- apiVersion0
2202
- ],
2203
- headerParameters: [
2204
- acceptLanguage
2205
- ],
2206
- requestBody: {
2207
- parameterPath: "parameters",
2208
- mapper: __assign(__assign({}, VaultCreateOrUpdateParameters), { required: true })
2209
- },
2210
- responses: {
2211
- 200: {
2212
- bodyMapper: Vault
2213
- },
2214
- 201: {
2215
- bodyMapper: Vault
2216
- },
2217
- default: {
2218
- bodyMapper: CloudError
2219
- }
2220
- },
2221
- serializer: serializer
2222
- };
2223
- var beginPurgeDeletedOperationSpec = {
2224
- httpMethod: "POST",
2225
- path: "subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge",
2226
- urlParameters: [
2227
- vaultName1,
2228
- location,
2229
- subscriptionId
2230
- ],
2231
- queryParameters: [
2232
- apiVersion0
2233
- ],
2234
- headerParameters: [
2235
- acceptLanguage
2236
- ],
2237
- responses: {
2238
- 200: {},
2239
- 202: {},
2240
- default: {
2241
- bodyMapper: CloudError
2242
- }
2243
- },
2244
- serializer: serializer
2245
- };
2246
- var listByResourceGroupNextOperationSpec = {
2247
- httpMethod: "GET",
2248
- baseUrl: "https://management.azure.com",
2249
- path: "{nextLink}",
2250
- urlParameters: [
2251
- nextPageLink
2252
- ],
2253
- headerParameters: [
2254
- acceptLanguage
2255
- ],
2256
- responses: {
2257
- 200: {
2258
- bodyMapper: VaultListResult
2259
- },
2260
- default: {
2261
- bodyMapper: CloudError
2262
- }
2263
- },
2264
- serializer: serializer
2265
- };
2266
- var listBySubscriptionNextOperationSpec = {
2267
- httpMethod: "GET",
2268
- baseUrl: "https://management.azure.com",
2269
- path: "{nextLink}",
2270
- urlParameters: [
2271
- nextPageLink
2272
- ],
2273
- headerParameters: [
2274
- acceptLanguage
2275
- ],
2276
- responses: {
2277
- 200: {
2278
- bodyMapper: VaultListResult
2279
- },
2280
- default: {
2281
- bodyMapper: CloudError
2282
- }
2283
- },
2284
- serializer: serializer
2285
- };
2286
- var listDeletedNextOperationSpec = {
2287
- httpMethod: "GET",
2288
- baseUrl: "https://management.azure.com",
2289
- path: "{nextLink}",
2290
- urlParameters: [
2291
- nextPageLink
2292
- ],
2293
- headerParameters: [
2294
- acceptLanguage
2295
- ],
2296
- responses: {
2297
- 200: {
2298
- bodyMapper: DeletedVaultListResult
2299
- },
2300
- default: {
2301
- bodyMapper: CloudError
2302
- }
2303
- },
2304
- serializer: serializer
2305
- };
2306
- var listNextOperationSpec = {
2307
- httpMethod: "GET",
2308
- baseUrl: "https://management.azure.com",
2309
- path: "{nextLink}",
2310
- urlParameters: [
2311
- nextPageLink
2312
- ],
2313
- headerParameters: [
2314
- acceptLanguage
2315
- ],
2316
- responses: {
2317
- 200: {
2318
- bodyMapper: ResourceListResult
2319
- },
2320
- default: {
2321
- bodyMapper: CloudError
2322
- }
2323
- },
2324
- serializer: serializer
2325
- };
2326
-
2327
- /*
2328
- * Copyright (c) Microsoft Corporation. All rights reserved.
2329
- * Licensed under the MIT License. See License.txt in the project root for license information.
2330
- *
2331
- * Code generated by Microsoft (R) AutoRest Code Generator.
2332
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2333
- */
2334
-
2335
- var Mappers$1 = /*#__PURE__*/Object.freeze({
2336
- __proto__: null,
2337
- AccessPolicyEntry: AccessPolicyEntry,
2338
- Attributes: Attributes,
2339
- BaseResource: BaseResource,
2340
- CloudError: CloudError,
2341
- IPRule: IPRule,
2342
- NetworkRuleSet: NetworkRuleSet,
2343
- Permissions: Permissions,
2344
- PrivateEndpoint: PrivateEndpoint,
2345
- PrivateEndpointConnection: PrivateEndpointConnection,
2346
- PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
2347
- PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
2348
- PrivateEndpointConnectionsPutHeaders: PrivateEndpointConnectionsPutHeaders,
2349
- PrivateLinkResource: PrivateLinkResource,
2350
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2351
- Resource: Resource,
2352
- Secret: Secret,
2353
- SecretAttributes: SecretAttributes,
2354
- SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
2355
- SecretPatchParameters: SecretPatchParameters,
2356
- SecretPatchProperties: SecretPatchProperties,
2357
- SecretProperties: SecretProperties,
2358
- Sku: Sku,
2359
- Vault: Vault,
2360
- VaultAccessPolicyParameters: VaultAccessPolicyParameters,
2361
- VaultAccessPolicyProperties: VaultAccessPolicyProperties,
2362
- VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
2363
- VaultPatchParameters: VaultPatchParameters,
2364
- VaultPatchProperties: VaultPatchProperties,
2365
- VaultProperties: VaultProperties,
2366
- VirtualNetworkRule: VirtualNetworkRule
2367
- });
2368
-
2369
- /*
2370
- * Copyright (c) Microsoft Corporation. All rights reserved.
2371
- * Licensed under the MIT License. See License.txt in the project root for
2372
- * license information.
2373
- *
2374
- * Code generated by Microsoft (R) AutoRest Code Generator.
2375
- * Changes may cause incorrect behavior and will be lost if the code is
2376
- * regenerated.
2377
- */
2378
- /** Class representing a PrivateEndpointConnections. */
2379
- var PrivateEndpointConnections = /** @class */ (function () {
2380
- /**
2381
- * Create a PrivateEndpointConnections.
2382
- * @param {KeyVaultManagementClientContext} client Reference to the service client.
2383
- */
2384
- function PrivateEndpointConnections(client) {
2385
- this.client = client;
2386
- }
2387
- PrivateEndpointConnections.prototype.get = function (resourceGroupName, vaultName, privateEndpointConnectionName, options, callback) {
2388
- return this.client.sendOperationRequest({
2389
- resourceGroupName: resourceGroupName,
2390
- vaultName: vaultName,
2391
- privateEndpointConnectionName: privateEndpointConnectionName,
2392
- options: options
2393
- }, getOperationSpec$1, callback);
2394
- };
2395
- PrivateEndpointConnections.prototype.put = function (resourceGroupName, vaultName, privateEndpointConnectionName, properties, options, callback) {
2396
- return this.client.sendOperationRequest({
2397
- resourceGroupName: resourceGroupName,
2398
- vaultName: vaultName,
2399
- privateEndpointConnectionName: privateEndpointConnectionName,
2400
- properties: properties,
2401
- options: options
2402
- }, putOperationSpec, callback);
2403
- };
2404
- /**
2405
- * Deletes the specified private endpoint connection associated with the key vault.
2406
- * @param resourceGroupName Name of the resource group that contains the key vault.
2407
- * @param vaultName The name of the key vault.
2408
- * @param privateEndpointConnectionName Name of the private endpoint connection associated with the
2409
- * key vault.
2410
- * @param [options] The optional parameters
2411
- * @returns Promise<Models.PrivateEndpointConnectionsDeleteResponse>
2412
- */
2413
- PrivateEndpointConnections.prototype.deleteMethod = function (resourceGroupName, vaultName, privateEndpointConnectionName, options) {
2414
- return this.beginDeleteMethod(resourceGroupName, vaultName, privateEndpointConnectionName, options)
2415
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2416
- };
2417
- /**
2418
- * Deletes the specified private endpoint connection associated with the key vault.
2419
- * @param resourceGroupName Name of the resource group that contains the key vault.
2420
- * @param vaultName The name of the key vault.
2421
- * @param privateEndpointConnectionName Name of the private endpoint connection associated with the
2422
- * key vault.
2423
- * @param [options] The optional parameters
2424
- * @returns Promise<msRestAzure.LROPoller>
2425
- */
2426
- PrivateEndpointConnections.prototype.beginDeleteMethod = function (resourceGroupName, vaultName, privateEndpointConnectionName, options) {
2427
- return this.client.sendLRORequest({
2428
- resourceGroupName: resourceGroupName,
2429
- vaultName: vaultName,
2430
- privateEndpointConnectionName: privateEndpointConnectionName,
2431
- options: options
2432
- }, beginDeleteMethodOperationSpec, options);
2433
- };
2434
- return PrivateEndpointConnections;
2435
- }());
2436
- // Operation Specifications
2437
- var serializer$1 = new msRest.Serializer(Mappers$1);
2438
- var getOperationSpec$1 = {
2439
- httpMethod: "GET",
2440
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2441
- urlParameters: [
2442
- subscriptionId,
2443
- resourceGroupName,
2444
- vaultName0,
2445
- privateEndpointConnectionName
2446
- ],
2447
- queryParameters: [
2448
- apiVersion0
2449
- ],
2450
- headerParameters: [
2451
- acceptLanguage
2452
- ],
2453
- responses: {
2454
- 200: {
2455
- bodyMapper: PrivateEndpointConnection
2456
- },
2457
- default: {
2458
- bodyMapper: CloudError
2459
- }
2460
- },
2461
- serializer: serializer$1
2462
- };
2463
- var putOperationSpec = {
2464
- httpMethod: "PUT",
2465
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2466
- urlParameters: [
2467
- subscriptionId,
2468
- resourceGroupName,
2469
- vaultName0,
2470
- privateEndpointConnectionName
2471
- ],
2472
- queryParameters: [
2473
- apiVersion0
2474
- ],
2475
- headerParameters: [
2476
- acceptLanguage
2477
- ],
2478
- requestBody: {
2479
- parameterPath: "properties",
2480
- mapper: __assign(__assign({}, PrivateEndpointConnection), { required: true })
2481
- },
2482
- responses: {
2483
- 200: {
2484
- bodyMapper: PrivateEndpointConnection,
2485
- headersMapper: PrivateEndpointConnectionsPutHeaders
2486
- },
2487
- default: {
2488
- bodyMapper: CloudError,
2489
- headersMapper: PrivateEndpointConnectionsPutHeaders
2490
- }
2491
- },
2492
- serializer: serializer$1
2493
- };
2494
- var beginDeleteMethodOperationSpec = {
2495
- httpMethod: "DELETE",
2496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2497
- urlParameters: [
2498
- subscriptionId,
2499
- resourceGroupName,
2500
- vaultName0,
2501
- privateEndpointConnectionName
2502
- ],
2503
- queryParameters: [
2504
- apiVersion0
2505
- ],
2506
- headerParameters: [
2507
- acceptLanguage
2508
- ],
2509
- responses: {
2510
- 200: {
2511
- bodyMapper: PrivateEndpointConnection,
2512
- headersMapper: PrivateEndpointConnectionsDeleteHeaders
2513
- },
2514
- 202: {
2515
- headersMapper: PrivateEndpointConnectionsDeleteHeaders
2516
- },
2517
- 204: {
2518
- headersMapper: PrivateEndpointConnectionsDeleteHeaders
2519
- },
2520
- default: {
2521
- bodyMapper: CloudError,
2522
- headersMapper: PrivateEndpointConnectionsDeleteHeaders
2523
- }
2524
- },
2525
- serializer: serializer$1
2526
- };
2527
-
2528
- /*
2529
- * Copyright (c) Microsoft Corporation. All rights reserved.
2530
- * Licensed under the MIT License. See License.txt in the project root for license information.
2531
- *
2532
- * Code generated by Microsoft (R) AutoRest Code Generator.
2533
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2534
- */
2535
-
2536
- var Mappers$2 = /*#__PURE__*/Object.freeze({
2537
- __proto__: null,
2538
- AccessPolicyEntry: AccessPolicyEntry,
2539
- Attributes: Attributes,
2540
- BaseResource: BaseResource,
2541
- CloudError: CloudError,
2542
- IPRule: IPRule,
2543
- NetworkRuleSet: NetworkRuleSet,
2544
- Permissions: Permissions,
2545
- PrivateEndpoint: PrivateEndpoint,
2546
- PrivateEndpointConnection: PrivateEndpointConnection,
2547
- PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
2548
- PrivateLinkResource: PrivateLinkResource,
2549
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
2550
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2551
- Resource: Resource,
2552
- Secret: Secret,
2553
- SecretAttributes: SecretAttributes,
2554
- SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
2555
- SecretPatchParameters: SecretPatchParameters,
2556
- SecretPatchProperties: SecretPatchProperties,
2557
- SecretProperties: SecretProperties,
2558
- Sku: Sku,
2559
- Vault: Vault,
2560
- VaultAccessPolicyParameters: VaultAccessPolicyParameters,
2561
- VaultAccessPolicyProperties: VaultAccessPolicyProperties,
2562
- VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
2563
- VaultPatchParameters: VaultPatchParameters,
2564
- VaultPatchProperties: VaultPatchProperties,
2565
- VaultProperties: VaultProperties,
2566
- VirtualNetworkRule: VirtualNetworkRule
2567
- });
2568
-
2569
- /*
2570
- * Copyright (c) Microsoft Corporation. All rights reserved.
2571
- * Licensed under the MIT License. See License.txt in the project root for
2572
- * license information.
2573
- *
2574
- * Code generated by Microsoft (R) AutoRest Code Generator.
2575
- * Changes may cause incorrect behavior and will be lost if the code is
2576
- * regenerated.
2577
- */
2578
- /** Class representing a PrivateLinkResources. */
2579
- var PrivateLinkResources = /** @class */ (function () {
2580
- /**
2581
- * Create a PrivateLinkResources.
2582
- * @param {KeyVaultManagementClientContext} client Reference to the service client.
2583
- */
2584
- function PrivateLinkResources(client) {
2585
- this.client = client;
2586
- }
2587
- PrivateLinkResources.prototype.listByVault = function (resourceGroupName, vaultName, options, callback) {
2588
- return this.client.sendOperationRequest({
2589
- resourceGroupName: resourceGroupName,
2590
- vaultName: vaultName,
2591
- options: options
2592
- }, listByVaultOperationSpec, callback);
2593
- };
2594
- return PrivateLinkResources;
2595
- }());
2596
- // Operation Specifications
2597
- var serializer$2 = new msRest.Serializer(Mappers$2);
2598
- var listByVaultOperationSpec = {
2599
- httpMethod: "GET",
2600
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources",
2601
- urlParameters: [
2602
- subscriptionId,
2603
- resourceGroupName,
2604
- vaultName0
2605
- ],
2606
- queryParameters: [
2607
- apiVersion0
2608
- ],
2609
- headerParameters: [
2610
- acceptLanguage
2611
- ],
2612
- responses: {
2613
- 200: {
2614
- bodyMapper: PrivateLinkResourceListResult
2615
- },
2616
- default: {
2617
- bodyMapper: CloudError
2618
- }
2619
- },
2620
- serializer: serializer$2
2621
- };
2622
-
2623
- /*
2624
- * Copyright (c) Microsoft Corporation. All rights reserved.
2625
- * Licensed under the MIT License. See License.txt in the project root for license information.
2626
- *
2627
- * Code generated by Microsoft (R) AutoRest Code Generator.
2628
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2629
- */
2630
-
2631
- var Mappers$3 = /*#__PURE__*/Object.freeze({
2632
- __proto__: null,
2633
- CloudError: CloudError,
2634
- LogSpecification: LogSpecification,
2635
- Operation: Operation,
2636
- OperationDisplay: OperationDisplay,
2637
- OperationListResult: OperationListResult,
2638
- ServiceSpecification: ServiceSpecification
2639
- });
2640
-
2641
- /*
2642
- * Copyright (c) Microsoft Corporation. All rights reserved.
2643
- * Licensed under the MIT License. See License.txt in the project root for
2644
- * license information.
2645
- *
2646
- * Code generated by Microsoft (R) AutoRest Code Generator.
2647
- * Changes may cause incorrect behavior and will be lost if the code is
2648
- * regenerated.
2649
- */
2650
- /** Class representing a Operations. */
2651
- var Operations = /** @class */ (function () {
2652
- /**
2653
- * Create a Operations.
2654
- * @param {KeyVaultManagementClientContext} client Reference to the service client.
2655
- */
2656
- function Operations(client) {
2657
- this.client = client;
2658
- }
2659
- Operations.prototype.list = function (options, callback) {
2660
- return this.client.sendOperationRequest({
2661
- options: options
2662
- }, listOperationSpec$1, callback);
2663
- };
2664
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
2665
- return this.client.sendOperationRequest({
2666
- nextPageLink: nextPageLink,
2667
- options: options
2668
- }, listNextOperationSpec$1, callback);
2669
- };
2670
- return Operations;
2671
- }());
2672
- // Operation Specifications
2673
- var serializer$3 = new msRest.Serializer(Mappers$3);
2674
- var listOperationSpec$1 = {
2675
- httpMethod: "GET",
2676
- path: "providers/Microsoft.KeyVault/operations",
2677
- queryParameters: [
2678
- apiVersion0
2679
- ],
2680
- headerParameters: [
2681
- acceptLanguage
2682
- ],
2683
- responses: {
2684
- 200: {
2685
- bodyMapper: OperationListResult
2686
- },
2687
- default: {
2688
- bodyMapper: CloudError
2689
- }
2690
- },
2691
- serializer: serializer$3
2692
- };
2693
- var listNextOperationSpec$1 = {
2694
- httpMethod: "GET",
2695
- baseUrl: "https://management.azure.com",
2696
- path: "{nextLink}",
2697
- urlParameters: [
2698
- nextPageLink
2699
- ],
2700
- headerParameters: [
2701
- acceptLanguage
2702
- ],
2703
- responses: {
2704
- 200: {
2705
- bodyMapper: OperationListResult
2706
- },
2707
- default: {
2708
- bodyMapper: CloudError
2709
- }
2710
- },
2711
- serializer: serializer$3
2712
- };
2713
-
2714
- /*
2715
- * Copyright (c) Microsoft Corporation. All rights reserved.
2716
- * Licensed under the MIT License. See License.txt in the project root for license information.
2717
- *
2718
- * Code generated by Microsoft (R) AutoRest Code Generator.
2719
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2720
- */
2721
-
2722
- var Mappers$4 = /*#__PURE__*/Object.freeze({
2723
- __proto__: null,
2724
- AccessPolicyEntry: AccessPolicyEntry,
2725
- Attributes: Attributes,
2726
- BaseResource: BaseResource,
2727
- CloudError: CloudError,
2728
- IPRule: IPRule,
2729
- NetworkRuleSet: NetworkRuleSet,
2730
- Permissions: Permissions,
2731
- PrivateEndpoint: PrivateEndpoint,
2732
- PrivateEndpointConnection: PrivateEndpointConnection,
2733
- PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
2734
- PrivateLinkResource: PrivateLinkResource,
2735
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2736
- Resource: Resource,
2737
- Secret: Secret,
2738
- SecretAttributes: SecretAttributes,
2739
- SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
2740
- SecretListResult: SecretListResult,
2741
- SecretPatchParameters: SecretPatchParameters,
2742
- SecretPatchProperties: SecretPatchProperties,
2743
- SecretProperties: SecretProperties,
2744
- Sku: Sku,
2745
- Vault: Vault,
2746
- VaultAccessPolicyParameters: VaultAccessPolicyParameters,
2747
- VaultAccessPolicyProperties: VaultAccessPolicyProperties,
2748
- VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
2749
- VaultPatchParameters: VaultPatchParameters,
2750
- VaultPatchProperties: VaultPatchProperties,
2751
- VaultProperties: VaultProperties,
2752
- VirtualNetworkRule: VirtualNetworkRule
2753
- });
2754
-
2755
- /*
2756
- * Copyright (c) Microsoft Corporation. All rights reserved.
2757
- * Licensed under the MIT License. See License.txt in the project root for
2758
- * license information.
2759
- *
2760
- * Code generated by Microsoft (R) AutoRest Code Generator.
2761
- * Changes may cause incorrect behavior and will be lost if the code is
2762
- * regenerated.
2763
- */
2764
- /** Class representing a Secrets. */
2765
- var Secrets = /** @class */ (function () {
2766
- /**
2767
- * Create a Secrets.
2768
- * @param {KeyVaultManagementClientContext} client Reference to the service client.
2769
- */
2770
- function Secrets(client) {
2771
- this.client = client;
2772
- }
2773
- Secrets.prototype.createOrUpdate = function (resourceGroupName, vaultName, secretName, parameters, options, callback) {
2774
- return this.client.sendOperationRequest({
2775
- resourceGroupName: resourceGroupName,
2776
- vaultName: vaultName,
2777
- secretName: secretName,
2778
- parameters: parameters,
2779
- options: options
2780
- }, createOrUpdateOperationSpec, callback);
2781
- };
2782
- Secrets.prototype.update = function (resourceGroupName, vaultName, secretName, parameters, options, callback) {
2783
- return this.client.sendOperationRequest({
2784
- resourceGroupName: resourceGroupName,
2785
- vaultName: vaultName,
2786
- secretName: secretName,
2787
- parameters: parameters,
2788
- options: options
2789
- }, updateOperationSpec$1, callback);
2790
- };
2791
- Secrets.prototype.get = function (resourceGroupName, vaultName, secretName, options, callback) {
2792
- return this.client.sendOperationRequest({
2793
- resourceGroupName: resourceGroupName,
2794
- vaultName: vaultName,
2795
- secretName: secretName,
2796
- options: options
2797
- }, getOperationSpec$2, callback);
2798
- };
2799
- Secrets.prototype.list = function (resourceGroupName, vaultName, options, callback) {
2800
- return this.client.sendOperationRequest({
2801
- resourceGroupName: resourceGroupName,
2802
- vaultName: vaultName,
2803
- options: options
2804
- }, listOperationSpec$2, callback);
2805
- };
2806
- Secrets.prototype.listNext = function (nextPageLink, options, callback) {
2807
- return this.client.sendOperationRequest({
2808
- nextPageLink: nextPageLink,
2809
- options: options
2810
- }, listNextOperationSpec$2, callback);
2811
- };
2812
- return Secrets;
2813
- }());
2814
- // Operation Specifications
2815
- var serializer$4 = new msRest.Serializer(Mappers$4);
2816
- var createOrUpdateOperationSpec = {
2817
- httpMethod: "PUT",
2818
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
2819
- urlParameters: [
2820
- resourceGroupName,
2821
- vaultName0,
2822
- secretName0,
2823
- subscriptionId
2824
- ],
2825
- queryParameters: [
2826
- apiVersion0
2827
- ],
2828
- headerParameters: [
2829
- acceptLanguage
2830
- ],
2831
- requestBody: {
2832
- parameterPath: "parameters",
2833
- mapper: __assign(__assign({}, SecretCreateOrUpdateParameters), { required: true })
2834
- },
2835
- responses: {
2836
- 200: {
2837
- bodyMapper: Secret
2838
- },
2839
- 201: {
2840
- bodyMapper: Secret
2841
- },
2842
- default: {
2843
- bodyMapper: CloudError
2844
- }
2845
- },
2846
- serializer: serializer$4
2847
- };
2848
- var updateOperationSpec$1 = {
2849
- httpMethod: "PATCH",
2850
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
2851
- urlParameters: [
2852
- resourceGroupName,
2853
- vaultName0,
2854
- secretName0,
2855
- subscriptionId
2856
- ],
2857
- queryParameters: [
2858
- apiVersion0
2859
- ],
2860
- headerParameters: [
2861
- acceptLanguage
2862
- ],
2863
- requestBody: {
2864
- parameterPath: "parameters",
2865
- mapper: __assign(__assign({}, SecretPatchParameters), { required: true })
2866
- },
2867
- responses: {
2868
- 200: {
2869
- bodyMapper: Secret
2870
- },
2871
- 201: {
2872
- bodyMapper: Secret
2873
- },
2874
- default: {
2875
- bodyMapper: CloudError
2876
- }
2877
- },
2878
- serializer: serializer$4
2879
- };
2880
- var getOperationSpec$2 = {
2881
- httpMethod: "GET",
2882
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
2883
- urlParameters: [
2884
- resourceGroupName,
2885
- vaultName1,
2886
- secretName1,
2887
- subscriptionId
2888
- ],
2889
- queryParameters: [
2890
- apiVersion0
2891
- ],
2892
- headerParameters: [
2893
- acceptLanguage
2894
- ],
2895
- responses: {
2896
- 200: {
2897
- bodyMapper: Secret
2898
- },
2899
- default: {
2900
- bodyMapper: CloudError
2901
- }
2902
- },
2903
- serializer: serializer$4
2904
- };
2905
- var listOperationSpec$2 = {
2906
- httpMethod: "GET",
2907
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets",
2908
- urlParameters: [
2909
- resourceGroupName,
2910
- vaultName1,
2911
- subscriptionId
2912
- ],
2913
- queryParameters: [
2914
- top,
2915
- apiVersion0
2916
- ],
2917
- headerParameters: [
2918
- acceptLanguage
2919
- ],
2920
- responses: {
2921
- 200: {
2922
- bodyMapper: SecretListResult
2923
- },
2924
- default: {
2925
- bodyMapper: CloudError
2926
- }
2927
- },
2928
- serializer: serializer$4
2929
- };
2930
- var listNextOperationSpec$2 = {
2931
- httpMethod: "GET",
2932
- baseUrl: "https://management.azure.com",
2933
- path: "{nextLink}",
2934
- urlParameters: [
2935
- nextPageLink
2936
- ],
2937
- headerParameters: [
2938
- acceptLanguage
2939
- ],
2940
- responses: {
2941
- 200: {
2942
- bodyMapper: SecretListResult
2943
- },
2944
- default: {
2945
- bodyMapper: CloudError
2946
- }
2947
- },
2948
- serializer: serializer$4
2949
- };
2950
-
2951
- /*
2952
- * Copyright (c) Microsoft Corporation. All rights reserved.
2953
- * Licensed under the MIT License. See License.txt in the project root for
2954
- * license information.
2955
- *
2956
- * Code generated by Microsoft (R) AutoRest Code Generator.
2957
- * Changes may cause incorrect behavior and will be lost if the code is
2958
- * regenerated.
2959
- */
2960
- var packageName = "@azure/arm-keyvault-profile-2020-09-01-hybrid";
2961
- var packageVersion = "1.1.0";
2962
- var KeyVaultManagementClientContext = /** @class */ (function (_super) {
2963
- __extends(KeyVaultManagementClientContext, _super);
2964
- /**
2965
- * Initializes a new instance of the KeyVaultManagementClient class.
2966
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
2967
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
2968
- * more information about these credentials, see
2969
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
2970
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
2971
- * @azure/ms-rest-browserauth are also supported.
2972
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
2973
- * subscription. The subscription ID forms part of the URI for every service call.
2974
- * @param [options] The parameter options
2975
- */
2976
- function KeyVaultManagementClientContext(credentials, subscriptionId, options) {
2977
- var _this = this;
2978
- if (credentials == undefined) {
2979
- throw new Error('\'credentials\' cannot be null.');
2980
- }
2981
- if (subscriptionId == undefined) {
2982
- throw new Error('\'subscriptionId\' cannot be null.');
2983
- }
2984
- if (!options) {
2985
- options = {};
2986
- }
2987
- if (!options.userAgent) {
2988
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
2989
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2990
- }
2991
- _this = _super.call(this, credentials, options) || this;
2992
- _this.apiVersion = '2019-09-01';
2993
- _this.acceptLanguage = 'en-US';
2994
- _this.longRunningOperationRetryTimeout = 30;
2995
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
2996
- _this.requestContentType = "application/json; charset=utf-8";
2997
- _this.credentials = credentials;
2998
- _this.subscriptionId = subscriptionId;
2999
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
3000
- _this.acceptLanguage = options.acceptLanguage;
3001
- }
3002
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
3003
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
3004
- }
3005
- return _this;
3006
- }
3007
- return KeyVaultManagementClientContext;
3008
- }(msRestAzure.AzureServiceClient));
3009
-
3010
- /*
3011
- * Copyright (c) Microsoft Corporation. All rights reserved.
3012
- * Licensed under the MIT License. See License.txt in the project root for
3013
- * license information.
3014
- *
3015
- * Code generated by Microsoft (R) AutoRest Code Generator.
3016
- * Changes may cause incorrect behavior and will be lost if the code is
3017
- * regenerated.
3018
- */
3019
- var KeyVaultManagementClient = /** @class */ (function (_super) {
3020
- __extends(KeyVaultManagementClient, _super);
3021
- /**
3022
- * Initializes a new instance of the KeyVaultManagementClient class.
3023
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
3024
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
3025
- * more information about these credentials, see
3026
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
3027
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
3028
- * @azure/ms-rest-browserauth are also supported.
3029
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
3030
- * subscription. The subscription ID forms part of the URI for every service call.
3031
- * @param [options] The parameter options
3032
- */
3033
- function KeyVaultManagementClient(credentials, subscriptionId, options) {
3034
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
3035
- _this.vaults = new Vaults(_this);
3036
- _this.privateEndpointConnections = new PrivateEndpointConnections(_this);
3037
- _this.privateLinkResources = new PrivateLinkResources(_this);
3038
- _this.operations = new Operations(_this);
3039
- _this.secrets = new Secrets(_this);
3040
- return _this;
3041
- }
3042
- return KeyVaultManagementClient;
3043
- }(KeyVaultManagementClientContext));
3044
-
3045
- exports.KeyVaultManagementClient = KeyVaultManagementClient;
3046
- exports.KeyVaultManagementClientContext = KeyVaultManagementClientContext;
3047
- exports.KeyVaultManagementMappers = mappers;
3048
- exports.KeyVaultManagementModels = index;
3049
- exports.Operations = Operations;
3050
- exports.PrivateEndpointConnections = PrivateEndpointConnections;
3051
- exports.PrivateLinkResources = PrivateLinkResources;
3052
- exports.Secrets = Secrets;
3053
- exports.Vaults = Vaults;
3054
-
3055
- Object.defineProperty(exports, '__esModule', { value: true });
3056
-
3057
- })));
3058
- //# sourceMappingURL=arm-keyvault-profile-2020-09-01-hybrid.js.map