@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
package/dist/index.js ADDED
@@ -0,0 +1,3453 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+ var coreLro = require('@azure/core-lro');
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
+
29
+ /*
30
+ * Copyright (c) Microsoft Corporation.
31
+ * Licensed under the MIT License.
32
+ *
33
+ * Code generated by Microsoft (R) AutoRest Code Generator.
34
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
+ */
36
+ /** Known values of {@link SkuFamily} that the service accepts. */
37
+ exports.KnownSkuFamily = void 0;
38
+ (function (KnownSkuFamily) {
39
+ KnownSkuFamily["A"] = "A";
40
+ })(exports.KnownSkuFamily || (exports.KnownSkuFamily = {}));
41
+ /** Known values of {@link KeyPermissions} that the service accepts. */
42
+ exports.KnownKeyPermissions = void 0;
43
+ (function (KnownKeyPermissions) {
44
+ KnownKeyPermissions["All"] = "all";
45
+ KnownKeyPermissions["Encrypt"] = "encrypt";
46
+ KnownKeyPermissions["Decrypt"] = "decrypt";
47
+ KnownKeyPermissions["WrapKey"] = "wrapKey";
48
+ KnownKeyPermissions["UnwrapKey"] = "unwrapKey";
49
+ KnownKeyPermissions["Sign"] = "sign";
50
+ KnownKeyPermissions["Verify"] = "verify";
51
+ KnownKeyPermissions["Get"] = "get";
52
+ KnownKeyPermissions["List"] = "list";
53
+ KnownKeyPermissions["Create"] = "create";
54
+ KnownKeyPermissions["Update"] = "update";
55
+ KnownKeyPermissions["Import"] = "import";
56
+ KnownKeyPermissions["Delete"] = "delete";
57
+ KnownKeyPermissions["Backup"] = "backup";
58
+ KnownKeyPermissions["Restore"] = "restore";
59
+ KnownKeyPermissions["Recover"] = "recover";
60
+ KnownKeyPermissions["Purge"] = "purge";
61
+ })(exports.KnownKeyPermissions || (exports.KnownKeyPermissions = {}));
62
+ /** Known values of {@link SecretPermissions} that the service accepts. */
63
+ exports.KnownSecretPermissions = void 0;
64
+ (function (KnownSecretPermissions) {
65
+ KnownSecretPermissions["All"] = "all";
66
+ KnownSecretPermissions["Get"] = "get";
67
+ KnownSecretPermissions["List"] = "list";
68
+ KnownSecretPermissions["Set"] = "set";
69
+ KnownSecretPermissions["Delete"] = "delete";
70
+ KnownSecretPermissions["Backup"] = "backup";
71
+ KnownSecretPermissions["Restore"] = "restore";
72
+ KnownSecretPermissions["Recover"] = "recover";
73
+ KnownSecretPermissions["Purge"] = "purge";
74
+ })(exports.KnownSecretPermissions || (exports.KnownSecretPermissions = {}));
75
+ /** Known values of {@link CertificatePermissions} that the service accepts. */
76
+ exports.KnownCertificatePermissions = void 0;
77
+ (function (KnownCertificatePermissions) {
78
+ KnownCertificatePermissions["All"] = "all";
79
+ KnownCertificatePermissions["Get"] = "get";
80
+ KnownCertificatePermissions["List"] = "list";
81
+ KnownCertificatePermissions["Delete"] = "delete";
82
+ KnownCertificatePermissions["Create"] = "create";
83
+ KnownCertificatePermissions["Import"] = "import";
84
+ KnownCertificatePermissions["Update"] = "update";
85
+ KnownCertificatePermissions["Managecontacts"] = "managecontacts";
86
+ KnownCertificatePermissions["Getissuers"] = "getissuers";
87
+ KnownCertificatePermissions["Listissuers"] = "listissuers";
88
+ KnownCertificatePermissions["Setissuers"] = "setissuers";
89
+ KnownCertificatePermissions["Deleteissuers"] = "deleteissuers";
90
+ KnownCertificatePermissions["Manageissuers"] = "manageissuers";
91
+ KnownCertificatePermissions["Recover"] = "recover";
92
+ KnownCertificatePermissions["Purge"] = "purge";
93
+ KnownCertificatePermissions["Backup"] = "backup";
94
+ KnownCertificatePermissions["Restore"] = "restore";
95
+ })(exports.KnownCertificatePermissions || (exports.KnownCertificatePermissions = {}));
96
+ /** Known values of {@link StoragePermissions} that the service accepts. */
97
+ exports.KnownStoragePermissions = void 0;
98
+ (function (KnownStoragePermissions) {
99
+ KnownStoragePermissions["All"] = "all";
100
+ KnownStoragePermissions["Get"] = "get";
101
+ KnownStoragePermissions["List"] = "list";
102
+ KnownStoragePermissions["Delete"] = "delete";
103
+ KnownStoragePermissions["Set"] = "set";
104
+ KnownStoragePermissions["Update"] = "update";
105
+ KnownStoragePermissions["Regeneratekey"] = "regeneratekey";
106
+ KnownStoragePermissions["Recover"] = "recover";
107
+ KnownStoragePermissions["Purge"] = "purge";
108
+ KnownStoragePermissions["Backup"] = "backup";
109
+ KnownStoragePermissions["Restore"] = "restore";
110
+ KnownStoragePermissions["Setsas"] = "setsas";
111
+ KnownStoragePermissions["Listsas"] = "listsas";
112
+ KnownStoragePermissions["Getsas"] = "getsas";
113
+ KnownStoragePermissions["Deletesas"] = "deletesas";
114
+ })(exports.KnownStoragePermissions || (exports.KnownStoragePermissions = {}));
115
+ /** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */
116
+ exports.KnownNetworkRuleBypassOptions = void 0;
117
+ (function (KnownNetworkRuleBypassOptions) {
118
+ KnownNetworkRuleBypassOptions["AzureServices"] = "AzureServices";
119
+ KnownNetworkRuleBypassOptions["None"] = "None";
120
+ })(exports.KnownNetworkRuleBypassOptions || (exports.KnownNetworkRuleBypassOptions = {}));
121
+ /** Known values of {@link NetworkRuleAction} that the service accepts. */
122
+ exports.KnownNetworkRuleAction = void 0;
123
+ (function (KnownNetworkRuleAction) {
124
+ KnownNetworkRuleAction["Allow"] = "Allow";
125
+ KnownNetworkRuleAction["Deny"] = "Deny";
126
+ })(exports.KnownNetworkRuleAction || (exports.KnownNetworkRuleAction = {}));
127
+ /** Known values of {@link VaultProvisioningState} that the service accepts. */
128
+ exports.KnownVaultProvisioningState = void 0;
129
+ (function (KnownVaultProvisioningState) {
130
+ KnownVaultProvisioningState["Succeeded"] = "Succeeded";
131
+ KnownVaultProvisioningState["RegisteringDns"] = "RegisteringDns";
132
+ })(exports.KnownVaultProvisioningState || (exports.KnownVaultProvisioningState = {}));
133
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
134
+ exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
135
+ (function (KnownPrivateEndpointServiceConnectionStatus) {
136
+ KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
137
+ KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
138
+ KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
139
+ KnownPrivateEndpointServiceConnectionStatus["Disconnected"] = "Disconnected";
140
+ })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
141
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
142
+ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
143
+ (function (KnownPrivateEndpointConnectionProvisioningState) {
144
+ KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
145
+ KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
146
+ KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
147
+ KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
148
+ KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
149
+ KnownPrivateEndpointConnectionProvisioningState["Disconnected"] = "Disconnected";
150
+ })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
151
+
152
+ /*
153
+ * Copyright (c) Microsoft Corporation.
154
+ * Licensed under the MIT License.
155
+ *
156
+ * Code generated by Microsoft (R) AutoRest Code Generator.
157
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
158
+ */
159
+ const VaultCreateOrUpdateParameters = {
160
+ type: {
161
+ name: "Composite",
162
+ className: "VaultCreateOrUpdateParameters",
163
+ modelProperties: {
164
+ location: {
165
+ serializedName: "location",
166
+ required: true,
167
+ type: {
168
+ name: "String"
169
+ }
170
+ },
171
+ tags: {
172
+ serializedName: "tags",
173
+ type: {
174
+ name: "Dictionary",
175
+ value: { type: { name: "String" } }
176
+ }
177
+ },
178
+ properties: {
179
+ serializedName: "properties",
180
+ type: {
181
+ name: "Composite",
182
+ className: "VaultProperties"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ };
188
+ const VaultProperties = {
189
+ type: {
190
+ name: "Composite",
191
+ className: "VaultProperties",
192
+ modelProperties: {
193
+ tenantId: {
194
+ serializedName: "tenantId",
195
+ required: true,
196
+ type: {
197
+ name: "Uuid"
198
+ }
199
+ },
200
+ sku: {
201
+ serializedName: "sku",
202
+ type: {
203
+ name: "Composite",
204
+ className: "Sku"
205
+ }
206
+ },
207
+ accessPolicies: {
208
+ serializedName: "accessPolicies",
209
+ type: {
210
+ name: "Sequence",
211
+ element: {
212
+ type: {
213
+ name: "Composite",
214
+ className: "AccessPolicyEntry"
215
+ }
216
+ }
217
+ }
218
+ },
219
+ vaultUri: {
220
+ serializedName: "vaultUri",
221
+ type: {
222
+ name: "String"
223
+ }
224
+ },
225
+ hsmPoolResourceId: {
226
+ serializedName: "hsmPoolResourceId",
227
+ readOnly: true,
228
+ type: {
229
+ name: "String"
230
+ }
231
+ },
232
+ enabledForDeployment: {
233
+ serializedName: "enabledForDeployment",
234
+ type: {
235
+ name: "Boolean"
236
+ }
237
+ },
238
+ enabledForDiskEncryption: {
239
+ serializedName: "enabledForDiskEncryption",
240
+ type: {
241
+ name: "Boolean"
242
+ }
243
+ },
244
+ enabledForTemplateDeployment: {
245
+ serializedName: "enabledForTemplateDeployment",
246
+ type: {
247
+ name: "Boolean"
248
+ }
249
+ },
250
+ enableSoftDelete: {
251
+ defaultValue: true,
252
+ serializedName: "enableSoftDelete",
253
+ type: {
254
+ name: "Boolean"
255
+ }
256
+ },
257
+ softDeleteRetentionInDays: {
258
+ defaultValue: 90,
259
+ serializedName: "softDeleteRetentionInDays",
260
+ type: {
261
+ name: "Number"
262
+ }
263
+ },
264
+ enableRbacAuthorization: {
265
+ defaultValue: false,
266
+ serializedName: "enableRbacAuthorization",
267
+ type: {
268
+ name: "Boolean"
269
+ }
270
+ },
271
+ createMode: {
272
+ serializedName: "createMode",
273
+ type: {
274
+ name: "Enum",
275
+ allowedValues: ["recover", "default"]
276
+ }
277
+ },
278
+ enablePurgeProtection: {
279
+ serializedName: "enablePurgeProtection",
280
+ type: {
281
+ name: "Boolean"
282
+ }
283
+ },
284
+ networkAcls: {
285
+ serializedName: "networkAcls",
286
+ type: {
287
+ name: "Composite",
288
+ className: "NetworkRuleSet"
289
+ }
290
+ },
291
+ provisioningState: {
292
+ serializedName: "provisioningState",
293
+ type: {
294
+ name: "String"
295
+ }
296
+ },
297
+ privateEndpointConnections: {
298
+ serializedName: "privateEndpointConnections",
299
+ readOnly: true,
300
+ type: {
301
+ name: "Sequence",
302
+ element: {
303
+ type: {
304
+ name: "Composite",
305
+ className: "PrivateEndpointConnectionItem"
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ };
313
+ const Sku = {
314
+ type: {
315
+ name: "Composite",
316
+ className: "Sku",
317
+ modelProperties: {
318
+ family: {
319
+ serializedName: "family",
320
+ required: true,
321
+ type: {
322
+ name: "String"
323
+ }
324
+ },
325
+ name: {
326
+ serializedName: "name",
327
+ required: true,
328
+ type: {
329
+ name: "Enum",
330
+ allowedValues: ["standard", "premium"]
331
+ }
332
+ }
333
+ }
334
+ }
335
+ };
336
+ const AccessPolicyEntry = {
337
+ type: {
338
+ name: "Composite",
339
+ className: "AccessPolicyEntry",
340
+ modelProperties: {
341
+ tenantId: {
342
+ serializedName: "tenantId",
343
+ required: true,
344
+ type: {
345
+ name: "Uuid"
346
+ }
347
+ },
348
+ objectId: {
349
+ serializedName: "objectId",
350
+ required: true,
351
+ type: {
352
+ name: "String"
353
+ }
354
+ },
355
+ applicationId: {
356
+ serializedName: "applicationId",
357
+ type: {
358
+ name: "Uuid"
359
+ }
360
+ },
361
+ permissions: {
362
+ serializedName: "permissions",
363
+ type: {
364
+ name: "Composite",
365
+ className: "Permissions"
366
+ }
367
+ }
368
+ }
369
+ }
370
+ };
371
+ const Permissions = {
372
+ type: {
373
+ name: "Composite",
374
+ className: "Permissions",
375
+ modelProperties: {
376
+ keys: {
377
+ serializedName: "keys",
378
+ type: {
379
+ name: "Sequence",
380
+ element: {
381
+ type: {
382
+ name: "String"
383
+ }
384
+ }
385
+ }
386
+ },
387
+ secrets: {
388
+ serializedName: "secrets",
389
+ type: {
390
+ name: "Sequence",
391
+ element: {
392
+ type: {
393
+ name: "String"
394
+ }
395
+ }
396
+ }
397
+ },
398
+ certificates: {
399
+ serializedName: "certificates",
400
+ type: {
401
+ name: "Sequence",
402
+ element: {
403
+ type: {
404
+ name: "String"
405
+ }
406
+ }
407
+ }
408
+ },
409
+ storage: {
410
+ serializedName: "storage",
411
+ type: {
412
+ name: "Sequence",
413
+ element: {
414
+ type: {
415
+ name: "String"
416
+ }
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ };
423
+ const NetworkRuleSet = {
424
+ type: {
425
+ name: "Composite",
426
+ className: "NetworkRuleSet",
427
+ modelProperties: {
428
+ bypass: {
429
+ serializedName: "bypass",
430
+ type: {
431
+ name: "String"
432
+ }
433
+ },
434
+ defaultAction: {
435
+ serializedName: "defaultAction",
436
+ type: {
437
+ name: "String"
438
+ }
439
+ },
440
+ ipRules: {
441
+ serializedName: "ipRules",
442
+ type: {
443
+ name: "Sequence",
444
+ element: {
445
+ type: {
446
+ name: "Composite",
447
+ className: "IPRule"
448
+ }
449
+ }
450
+ }
451
+ },
452
+ virtualNetworkRules: {
453
+ serializedName: "virtualNetworkRules",
454
+ type: {
455
+ name: "Sequence",
456
+ element: {
457
+ type: {
458
+ name: "Composite",
459
+ className: "VirtualNetworkRule"
460
+ }
461
+ }
462
+ }
463
+ }
464
+ }
465
+ }
466
+ };
467
+ const IPRule = {
468
+ type: {
469
+ name: "Composite",
470
+ className: "IPRule",
471
+ modelProperties: {
472
+ value: {
473
+ serializedName: "value",
474
+ required: true,
475
+ type: {
476
+ name: "String"
477
+ }
478
+ }
479
+ }
480
+ }
481
+ };
482
+ const VirtualNetworkRule = {
483
+ type: {
484
+ name: "Composite",
485
+ className: "VirtualNetworkRule",
486
+ modelProperties: {
487
+ id: {
488
+ serializedName: "id",
489
+ required: true,
490
+ type: {
491
+ name: "String"
492
+ }
493
+ },
494
+ ignoreMissingVnetServiceEndpoint: {
495
+ serializedName: "ignoreMissingVnetServiceEndpoint",
496
+ type: {
497
+ name: "Boolean"
498
+ }
499
+ }
500
+ }
501
+ }
502
+ };
503
+ const PrivateEndpointConnectionItem = {
504
+ type: {
505
+ name: "Composite",
506
+ className: "PrivateEndpointConnectionItem",
507
+ modelProperties: {
508
+ id: {
509
+ serializedName: "id",
510
+ type: {
511
+ name: "String"
512
+ }
513
+ },
514
+ etag: {
515
+ serializedName: "etag",
516
+ type: {
517
+ name: "String"
518
+ }
519
+ },
520
+ privateEndpoint: {
521
+ serializedName: "properties.privateEndpoint",
522
+ type: {
523
+ name: "Composite",
524
+ className: "PrivateEndpoint"
525
+ }
526
+ },
527
+ privateLinkServiceConnectionState: {
528
+ serializedName: "properties.privateLinkServiceConnectionState",
529
+ type: {
530
+ name: "Composite",
531
+ className: "PrivateLinkServiceConnectionState"
532
+ }
533
+ },
534
+ provisioningState: {
535
+ serializedName: "properties.provisioningState",
536
+ readOnly: true,
537
+ type: {
538
+ name: "String"
539
+ }
540
+ }
541
+ }
542
+ }
543
+ };
544
+ const PrivateEndpoint = {
545
+ type: {
546
+ name: "Composite",
547
+ className: "PrivateEndpoint",
548
+ modelProperties: {
549
+ id: {
550
+ serializedName: "id",
551
+ readOnly: true,
552
+ type: {
553
+ name: "String"
554
+ }
555
+ }
556
+ }
557
+ }
558
+ };
559
+ const PrivateLinkServiceConnectionState = {
560
+ type: {
561
+ name: "Composite",
562
+ className: "PrivateLinkServiceConnectionState",
563
+ modelProperties: {
564
+ status: {
565
+ serializedName: "status",
566
+ type: {
567
+ name: "String"
568
+ }
569
+ },
570
+ description: {
571
+ serializedName: "description",
572
+ type: {
573
+ name: "String"
574
+ }
575
+ },
576
+ actionsRequired: {
577
+ serializedName: "actionsRequired",
578
+ type: {
579
+ name: "String"
580
+ }
581
+ }
582
+ }
583
+ }
584
+ };
585
+ const Vault = {
586
+ type: {
587
+ name: "Composite",
588
+ className: "Vault",
589
+ modelProperties: {
590
+ id: {
591
+ serializedName: "id",
592
+ readOnly: true,
593
+ type: {
594
+ name: "String"
595
+ }
596
+ },
597
+ name: {
598
+ serializedName: "name",
599
+ readOnly: true,
600
+ type: {
601
+ name: "String"
602
+ }
603
+ },
604
+ type: {
605
+ serializedName: "type",
606
+ readOnly: true,
607
+ type: {
608
+ name: "String"
609
+ }
610
+ },
611
+ location: {
612
+ serializedName: "location",
613
+ type: {
614
+ name: "String"
615
+ }
616
+ },
617
+ tags: {
618
+ serializedName: "tags",
619
+ type: {
620
+ name: "Dictionary",
621
+ value: { type: { name: "String" } }
622
+ }
623
+ },
624
+ properties: {
625
+ serializedName: "properties",
626
+ type: {
627
+ name: "Composite",
628
+ className: "VaultProperties"
629
+ }
630
+ }
631
+ }
632
+ }
633
+ };
634
+ const CloudError = {
635
+ type: {
636
+ name: "Composite",
637
+ className: "CloudError",
638
+ modelProperties: {
639
+ error: {
640
+ serializedName: "error",
641
+ type: {
642
+ name: "Composite",
643
+ className: "CloudErrorBody"
644
+ }
645
+ }
646
+ }
647
+ }
648
+ };
649
+ const CloudErrorBody = {
650
+ type: {
651
+ name: "Composite",
652
+ className: "CloudErrorBody",
653
+ modelProperties: {
654
+ code: {
655
+ serializedName: "code",
656
+ type: {
657
+ name: "String"
658
+ }
659
+ },
660
+ message: {
661
+ serializedName: "message",
662
+ type: {
663
+ name: "String"
664
+ }
665
+ }
666
+ }
667
+ }
668
+ };
669
+ const VaultPatchParameters = {
670
+ type: {
671
+ name: "Composite",
672
+ className: "VaultPatchParameters",
673
+ modelProperties: {
674
+ tags: {
675
+ serializedName: "tags",
676
+ type: {
677
+ name: "Dictionary",
678
+ value: { type: { name: "String" } }
679
+ }
680
+ },
681
+ properties: {
682
+ serializedName: "properties",
683
+ type: {
684
+ name: "Composite",
685
+ className: "VaultPatchProperties"
686
+ }
687
+ }
688
+ }
689
+ }
690
+ };
691
+ const VaultPatchProperties = {
692
+ type: {
693
+ name: "Composite",
694
+ className: "VaultPatchProperties",
695
+ modelProperties: {
696
+ tenantId: {
697
+ serializedName: "tenantId",
698
+ type: {
699
+ name: "Uuid"
700
+ }
701
+ },
702
+ sku: {
703
+ serializedName: "sku",
704
+ type: {
705
+ name: "Composite",
706
+ className: "Sku"
707
+ }
708
+ },
709
+ accessPolicies: {
710
+ serializedName: "accessPolicies",
711
+ type: {
712
+ name: "Sequence",
713
+ element: {
714
+ type: {
715
+ name: "Composite",
716
+ className: "AccessPolicyEntry"
717
+ }
718
+ }
719
+ }
720
+ },
721
+ enabledForDeployment: {
722
+ serializedName: "enabledForDeployment",
723
+ type: {
724
+ name: "Boolean"
725
+ }
726
+ },
727
+ enabledForDiskEncryption: {
728
+ serializedName: "enabledForDiskEncryption",
729
+ type: {
730
+ name: "Boolean"
731
+ }
732
+ },
733
+ enabledForTemplateDeployment: {
734
+ serializedName: "enabledForTemplateDeployment",
735
+ type: {
736
+ name: "Boolean"
737
+ }
738
+ },
739
+ enableSoftDelete: {
740
+ serializedName: "enableSoftDelete",
741
+ type: {
742
+ name: "Boolean"
743
+ }
744
+ },
745
+ enableRbacAuthorization: {
746
+ serializedName: "enableRbacAuthorization",
747
+ type: {
748
+ name: "Boolean"
749
+ }
750
+ },
751
+ softDeleteRetentionInDays: {
752
+ serializedName: "softDeleteRetentionInDays",
753
+ type: {
754
+ name: "Number"
755
+ }
756
+ },
757
+ createMode: {
758
+ serializedName: "createMode",
759
+ type: {
760
+ name: "Enum",
761
+ allowedValues: ["recover", "default"]
762
+ }
763
+ },
764
+ enablePurgeProtection: {
765
+ serializedName: "enablePurgeProtection",
766
+ type: {
767
+ name: "Boolean"
768
+ }
769
+ },
770
+ networkAcls: {
771
+ serializedName: "networkAcls",
772
+ type: {
773
+ name: "Composite",
774
+ className: "NetworkRuleSet"
775
+ }
776
+ }
777
+ }
778
+ }
779
+ };
780
+ const VaultAccessPolicyParameters = {
781
+ type: {
782
+ name: "Composite",
783
+ className: "VaultAccessPolicyParameters",
784
+ modelProperties: {
785
+ id: {
786
+ serializedName: "id",
787
+ readOnly: true,
788
+ type: {
789
+ name: "String"
790
+ }
791
+ },
792
+ name: {
793
+ serializedName: "name",
794
+ readOnly: true,
795
+ type: {
796
+ name: "String"
797
+ }
798
+ },
799
+ type: {
800
+ serializedName: "type",
801
+ readOnly: true,
802
+ type: {
803
+ name: "String"
804
+ }
805
+ },
806
+ location: {
807
+ serializedName: "location",
808
+ readOnly: true,
809
+ type: {
810
+ name: "String"
811
+ }
812
+ },
813
+ properties: {
814
+ serializedName: "properties",
815
+ type: {
816
+ name: "Composite",
817
+ className: "VaultAccessPolicyProperties"
818
+ }
819
+ }
820
+ }
821
+ }
822
+ };
823
+ const VaultAccessPolicyProperties = {
824
+ type: {
825
+ name: "Composite",
826
+ className: "VaultAccessPolicyProperties",
827
+ modelProperties: {
828
+ accessPolicies: {
829
+ serializedName: "accessPolicies",
830
+ required: true,
831
+ type: {
832
+ name: "Sequence",
833
+ element: {
834
+ type: {
835
+ name: "Composite",
836
+ className: "AccessPolicyEntry"
837
+ }
838
+ }
839
+ }
840
+ }
841
+ }
842
+ }
843
+ };
844
+ const VaultListResult = {
845
+ type: {
846
+ name: "Composite",
847
+ className: "VaultListResult",
848
+ modelProperties: {
849
+ value: {
850
+ serializedName: "value",
851
+ type: {
852
+ name: "Sequence",
853
+ element: {
854
+ type: {
855
+ name: "Composite",
856
+ className: "Vault"
857
+ }
858
+ }
859
+ }
860
+ },
861
+ nextLink: {
862
+ serializedName: "nextLink",
863
+ type: {
864
+ name: "String"
865
+ }
866
+ }
867
+ }
868
+ }
869
+ };
870
+ const DeletedVaultListResult = {
871
+ type: {
872
+ name: "Composite",
873
+ className: "DeletedVaultListResult",
874
+ modelProperties: {
875
+ value: {
876
+ serializedName: "value",
877
+ type: {
878
+ name: "Sequence",
879
+ element: {
880
+ type: {
881
+ name: "Composite",
882
+ className: "DeletedVault"
883
+ }
884
+ }
885
+ }
886
+ },
887
+ nextLink: {
888
+ serializedName: "nextLink",
889
+ type: {
890
+ name: "String"
891
+ }
892
+ }
893
+ }
894
+ }
895
+ };
896
+ const DeletedVault = {
897
+ type: {
898
+ name: "Composite",
899
+ className: "DeletedVault",
900
+ modelProperties: {
901
+ id: {
902
+ serializedName: "id",
903
+ readOnly: true,
904
+ type: {
905
+ name: "String"
906
+ }
907
+ },
908
+ name: {
909
+ serializedName: "name",
910
+ readOnly: true,
911
+ type: {
912
+ name: "String"
913
+ }
914
+ },
915
+ type: {
916
+ serializedName: "type",
917
+ readOnly: true,
918
+ type: {
919
+ name: "String"
920
+ }
921
+ },
922
+ properties: {
923
+ serializedName: "properties",
924
+ type: {
925
+ name: "Composite",
926
+ className: "DeletedVaultProperties"
927
+ }
928
+ }
929
+ }
930
+ }
931
+ };
932
+ const DeletedVaultProperties = {
933
+ type: {
934
+ name: "Composite",
935
+ className: "DeletedVaultProperties",
936
+ modelProperties: {
937
+ vaultId: {
938
+ serializedName: "vaultId",
939
+ readOnly: true,
940
+ type: {
941
+ name: "String"
942
+ }
943
+ },
944
+ location: {
945
+ serializedName: "location",
946
+ readOnly: true,
947
+ type: {
948
+ name: "String"
949
+ }
950
+ },
951
+ deletionDate: {
952
+ serializedName: "deletionDate",
953
+ readOnly: true,
954
+ type: {
955
+ name: "DateTime"
956
+ }
957
+ },
958
+ scheduledPurgeDate: {
959
+ serializedName: "scheduledPurgeDate",
960
+ readOnly: true,
961
+ type: {
962
+ name: "DateTime"
963
+ }
964
+ },
965
+ tags: {
966
+ serializedName: "tags",
967
+ readOnly: true,
968
+ type: {
969
+ name: "Dictionary",
970
+ value: { type: { name: "String" } }
971
+ }
972
+ },
973
+ purgeProtectionEnabled: {
974
+ serializedName: "purgeProtectionEnabled",
975
+ readOnly: true,
976
+ type: {
977
+ name: "Boolean"
978
+ }
979
+ }
980
+ }
981
+ }
982
+ };
983
+ const ResourceListResult = {
984
+ type: {
985
+ name: "Composite",
986
+ className: "ResourceListResult",
987
+ modelProperties: {
988
+ value: {
989
+ serializedName: "value",
990
+ type: {
991
+ name: "Sequence",
992
+ element: {
993
+ type: {
994
+ name: "Composite",
995
+ className: "Resource"
996
+ }
997
+ }
998
+ }
999
+ },
1000
+ nextLink: {
1001
+ serializedName: "nextLink",
1002
+ type: {
1003
+ name: "String"
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ };
1009
+ const Resource = {
1010
+ type: {
1011
+ name: "Composite",
1012
+ className: "Resource",
1013
+ modelProperties: {
1014
+ id: {
1015
+ serializedName: "id",
1016
+ readOnly: true,
1017
+ type: {
1018
+ name: "String"
1019
+ }
1020
+ },
1021
+ name: {
1022
+ serializedName: "name",
1023
+ readOnly: true,
1024
+ type: {
1025
+ name: "String"
1026
+ }
1027
+ },
1028
+ type: {
1029
+ serializedName: "type",
1030
+ readOnly: true,
1031
+ type: {
1032
+ name: "String"
1033
+ }
1034
+ },
1035
+ location: {
1036
+ serializedName: "location",
1037
+ readOnly: true,
1038
+ type: {
1039
+ name: "String"
1040
+ }
1041
+ },
1042
+ tags: {
1043
+ serializedName: "tags",
1044
+ readOnly: true,
1045
+ type: {
1046
+ name: "Dictionary",
1047
+ value: { type: { name: "String" } }
1048
+ }
1049
+ }
1050
+ }
1051
+ }
1052
+ };
1053
+ const VaultCheckNameAvailabilityParameters = {
1054
+ type: {
1055
+ name: "Composite",
1056
+ className: "VaultCheckNameAvailabilityParameters",
1057
+ modelProperties: {
1058
+ name: {
1059
+ serializedName: "name",
1060
+ required: true,
1061
+ type: {
1062
+ name: "String"
1063
+ }
1064
+ },
1065
+ type: {
1066
+ defaultValue: "Microsoft.KeyVault/vaults",
1067
+ isConstant: true,
1068
+ serializedName: "type",
1069
+ type: {
1070
+ name: "String"
1071
+ }
1072
+ }
1073
+ }
1074
+ }
1075
+ };
1076
+ const CheckNameAvailabilityResult = {
1077
+ type: {
1078
+ name: "Composite",
1079
+ className: "CheckNameAvailabilityResult",
1080
+ modelProperties: {
1081
+ nameAvailable: {
1082
+ serializedName: "nameAvailable",
1083
+ readOnly: true,
1084
+ type: {
1085
+ name: "Boolean"
1086
+ }
1087
+ },
1088
+ reason: {
1089
+ serializedName: "reason",
1090
+ readOnly: true,
1091
+ type: {
1092
+ name: "Enum",
1093
+ allowedValues: ["AccountNameInvalid", "AlreadyExists"]
1094
+ }
1095
+ },
1096
+ message: {
1097
+ serializedName: "message",
1098
+ readOnly: true,
1099
+ type: {
1100
+ name: "String"
1101
+ }
1102
+ }
1103
+ }
1104
+ }
1105
+ };
1106
+ const PrivateLinkResourceListResult = {
1107
+ type: {
1108
+ name: "Composite",
1109
+ className: "PrivateLinkResourceListResult",
1110
+ modelProperties: {
1111
+ value: {
1112
+ serializedName: "value",
1113
+ type: {
1114
+ name: "Sequence",
1115
+ element: {
1116
+ type: {
1117
+ name: "Composite",
1118
+ className: "PrivateLinkResource"
1119
+ }
1120
+ }
1121
+ }
1122
+ }
1123
+ }
1124
+ }
1125
+ };
1126
+ const OperationListResult = {
1127
+ type: {
1128
+ name: "Composite",
1129
+ className: "OperationListResult",
1130
+ modelProperties: {
1131
+ value: {
1132
+ serializedName: "value",
1133
+ type: {
1134
+ name: "Sequence",
1135
+ element: {
1136
+ type: {
1137
+ name: "Composite",
1138
+ className: "Operation"
1139
+ }
1140
+ }
1141
+ }
1142
+ },
1143
+ nextLink: {
1144
+ serializedName: "nextLink",
1145
+ type: {
1146
+ name: "String"
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ };
1152
+ const Operation = {
1153
+ type: {
1154
+ name: "Composite",
1155
+ className: "Operation",
1156
+ modelProperties: {
1157
+ name: {
1158
+ serializedName: "name",
1159
+ type: {
1160
+ name: "String"
1161
+ }
1162
+ },
1163
+ display: {
1164
+ serializedName: "display",
1165
+ type: {
1166
+ name: "Composite",
1167
+ className: "OperationDisplay"
1168
+ }
1169
+ },
1170
+ origin: {
1171
+ serializedName: "origin",
1172
+ type: {
1173
+ name: "String"
1174
+ }
1175
+ },
1176
+ isDataAction: {
1177
+ serializedName: "isDataAction",
1178
+ type: {
1179
+ name: "Boolean"
1180
+ }
1181
+ },
1182
+ serviceSpecification: {
1183
+ serializedName: "properties.serviceSpecification",
1184
+ type: {
1185
+ name: "Composite",
1186
+ className: "ServiceSpecification"
1187
+ }
1188
+ }
1189
+ }
1190
+ }
1191
+ };
1192
+ const OperationDisplay = {
1193
+ type: {
1194
+ name: "Composite",
1195
+ className: "OperationDisplay",
1196
+ modelProperties: {
1197
+ provider: {
1198
+ serializedName: "provider",
1199
+ type: {
1200
+ name: "String"
1201
+ }
1202
+ },
1203
+ resource: {
1204
+ serializedName: "resource",
1205
+ type: {
1206
+ name: "String"
1207
+ }
1208
+ },
1209
+ operation: {
1210
+ serializedName: "operation",
1211
+ type: {
1212
+ name: "String"
1213
+ }
1214
+ },
1215
+ description: {
1216
+ serializedName: "description",
1217
+ type: {
1218
+ name: "String"
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ };
1224
+ const ServiceSpecification = {
1225
+ type: {
1226
+ name: "Composite",
1227
+ className: "ServiceSpecification",
1228
+ modelProperties: {
1229
+ logSpecifications: {
1230
+ serializedName: "logSpecifications",
1231
+ type: {
1232
+ name: "Sequence",
1233
+ element: {
1234
+ type: {
1235
+ name: "Composite",
1236
+ className: "LogSpecification"
1237
+ }
1238
+ }
1239
+ }
1240
+ },
1241
+ metricSpecifications: {
1242
+ serializedName: "metricSpecifications",
1243
+ type: {
1244
+ name: "Sequence",
1245
+ element: {
1246
+ type: {
1247
+ name: "Composite",
1248
+ className: "MetricSpecification"
1249
+ }
1250
+ }
1251
+ }
1252
+ }
1253
+ }
1254
+ }
1255
+ };
1256
+ const LogSpecification = {
1257
+ type: {
1258
+ name: "Composite",
1259
+ className: "LogSpecification",
1260
+ modelProperties: {
1261
+ name: {
1262
+ serializedName: "name",
1263
+ type: {
1264
+ name: "String"
1265
+ }
1266
+ },
1267
+ displayName: {
1268
+ serializedName: "displayName",
1269
+ type: {
1270
+ name: "String"
1271
+ }
1272
+ },
1273
+ blobDuration: {
1274
+ serializedName: "blobDuration",
1275
+ type: {
1276
+ name: "String"
1277
+ }
1278
+ }
1279
+ }
1280
+ }
1281
+ };
1282
+ const MetricSpecification = {
1283
+ type: {
1284
+ name: "Composite",
1285
+ className: "MetricSpecification",
1286
+ modelProperties: {
1287
+ name: {
1288
+ serializedName: "name",
1289
+ type: {
1290
+ name: "String"
1291
+ }
1292
+ },
1293
+ displayName: {
1294
+ serializedName: "displayName",
1295
+ type: {
1296
+ name: "String"
1297
+ }
1298
+ },
1299
+ displayDescription: {
1300
+ serializedName: "displayDescription",
1301
+ type: {
1302
+ name: "String"
1303
+ }
1304
+ },
1305
+ unit: {
1306
+ serializedName: "unit",
1307
+ type: {
1308
+ name: "String"
1309
+ }
1310
+ },
1311
+ aggregationType: {
1312
+ serializedName: "aggregationType",
1313
+ type: {
1314
+ name: "String"
1315
+ }
1316
+ },
1317
+ supportedAggregationTypes: {
1318
+ serializedName: "supportedAggregationTypes",
1319
+ type: {
1320
+ name: "Sequence",
1321
+ element: {
1322
+ type: {
1323
+ name: "String"
1324
+ }
1325
+ }
1326
+ }
1327
+ },
1328
+ supportedTimeGrainTypes: {
1329
+ serializedName: "supportedTimeGrainTypes",
1330
+ type: {
1331
+ name: "Sequence",
1332
+ element: {
1333
+ type: {
1334
+ name: "String"
1335
+ }
1336
+ }
1337
+ }
1338
+ },
1339
+ lockAggregationType: {
1340
+ serializedName: "lockAggregationType",
1341
+ type: {
1342
+ name: "String"
1343
+ }
1344
+ },
1345
+ dimensions: {
1346
+ serializedName: "dimensions",
1347
+ type: {
1348
+ name: "Sequence",
1349
+ element: {
1350
+ type: {
1351
+ name: "Composite",
1352
+ className: "DimensionProperties"
1353
+ }
1354
+ }
1355
+ }
1356
+ },
1357
+ fillGapWithZero: {
1358
+ serializedName: "fillGapWithZero",
1359
+ type: {
1360
+ name: "Boolean"
1361
+ }
1362
+ },
1363
+ internalMetricName: {
1364
+ serializedName: "internalMetricName",
1365
+ type: {
1366
+ name: "String"
1367
+ }
1368
+ }
1369
+ }
1370
+ }
1371
+ };
1372
+ const DimensionProperties = {
1373
+ type: {
1374
+ name: "Composite",
1375
+ className: "DimensionProperties",
1376
+ modelProperties: {
1377
+ name: {
1378
+ serializedName: "name",
1379
+ type: {
1380
+ name: "String"
1381
+ }
1382
+ },
1383
+ displayName: {
1384
+ serializedName: "displayName",
1385
+ type: {
1386
+ name: "String"
1387
+ }
1388
+ },
1389
+ toBeExportedForShoebox: {
1390
+ serializedName: "toBeExportedForShoebox",
1391
+ type: {
1392
+ name: "Boolean"
1393
+ }
1394
+ }
1395
+ }
1396
+ }
1397
+ };
1398
+ const SecretCreateOrUpdateParameters = {
1399
+ type: {
1400
+ name: "Composite",
1401
+ className: "SecretCreateOrUpdateParameters",
1402
+ modelProperties: {
1403
+ tags: {
1404
+ serializedName: "tags",
1405
+ type: {
1406
+ name: "Dictionary",
1407
+ value: { type: { name: "String" } }
1408
+ }
1409
+ },
1410
+ properties: {
1411
+ serializedName: "properties",
1412
+ type: {
1413
+ name: "Composite",
1414
+ className: "SecretProperties"
1415
+ }
1416
+ }
1417
+ }
1418
+ }
1419
+ };
1420
+ const SecretProperties = {
1421
+ type: {
1422
+ name: "Composite",
1423
+ className: "SecretProperties",
1424
+ modelProperties: {
1425
+ value: {
1426
+ serializedName: "value",
1427
+ type: {
1428
+ name: "String"
1429
+ }
1430
+ },
1431
+ contentType: {
1432
+ serializedName: "contentType",
1433
+ type: {
1434
+ name: "String"
1435
+ }
1436
+ },
1437
+ attributes: {
1438
+ serializedName: "attributes",
1439
+ type: {
1440
+ name: "Composite",
1441
+ className: "SecretAttributes"
1442
+ }
1443
+ },
1444
+ secretUri: {
1445
+ serializedName: "secretUri",
1446
+ readOnly: true,
1447
+ type: {
1448
+ name: "String"
1449
+ }
1450
+ },
1451
+ secretUriWithVersion: {
1452
+ serializedName: "secretUriWithVersion",
1453
+ readOnly: true,
1454
+ type: {
1455
+ name: "String"
1456
+ }
1457
+ }
1458
+ }
1459
+ }
1460
+ };
1461
+ const Attributes = {
1462
+ type: {
1463
+ name: "Composite",
1464
+ className: "Attributes",
1465
+ modelProperties: {
1466
+ enabled: {
1467
+ serializedName: "enabled",
1468
+ type: {
1469
+ name: "Boolean"
1470
+ }
1471
+ },
1472
+ notBefore: {
1473
+ serializedName: "nbf",
1474
+ type: {
1475
+ name: "UnixTime"
1476
+ }
1477
+ },
1478
+ expires: {
1479
+ serializedName: "exp",
1480
+ type: {
1481
+ name: "UnixTime"
1482
+ }
1483
+ },
1484
+ created: {
1485
+ serializedName: "created",
1486
+ readOnly: true,
1487
+ type: {
1488
+ name: "UnixTime"
1489
+ }
1490
+ },
1491
+ updated: {
1492
+ serializedName: "updated",
1493
+ readOnly: true,
1494
+ type: {
1495
+ name: "UnixTime"
1496
+ }
1497
+ }
1498
+ }
1499
+ }
1500
+ };
1501
+ const SecretPatchParameters = {
1502
+ type: {
1503
+ name: "Composite",
1504
+ className: "SecretPatchParameters",
1505
+ modelProperties: {
1506
+ tags: {
1507
+ serializedName: "tags",
1508
+ type: {
1509
+ name: "Dictionary",
1510
+ value: { type: { name: "String" } }
1511
+ }
1512
+ },
1513
+ properties: {
1514
+ serializedName: "properties",
1515
+ type: {
1516
+ name: "Composite",
1517
+ className: "SecretPatchProperties"
1518
+ }
1519
+ }
1520
+ }
1521
+ }
1522
+ };
1523
+ const SecretPatchProperties = {
1524
+ type: {
1525
+ name: "Composite",
1526
+ className: "SecretPatchProperties",
1527
+ modelProperties: {
1528
+ value: {
1529
+ serializedName: "value",
1530
+ type: {
1531
+ name: "String"
1532
+ }
1533
+ },
1534
+ contentType: {
1535
+ serializedName: "contentType",
1536
+ type: {
1537
+ name: "String"
1538
+ }
1539
+ },
1540
+ attributes: {
1541
+ serializedName: "attributes",
1542
+ type: {
1543
+ name: "Composite",
1544
+ className: "SecretAttributes"
1545
+ }
1546
+ }
1547
+ }
1548
+ }
1549
+ };
1550
+ const SecretListResult = {
1551
+ type: {
1552
+ name: "Composite",
1553
+ className: "SecretListResult",
1554
+ modelProperties: {
1555
+ value: {
1556
+ serializedName: "value",
1557
+ type: {
1558
+ name: "Sequence",
1559
+ element: {
1560
+ type: {
1561
+ name: "Composite",
1562
+ className: "Secret"
1563
+ }
1564
+ }
1565
+ }
1566
+ },
1567
+ nextLink: {
1568
+ serializedName: "nextLink",
1569
+ type: {
1570
+ name: "String"
1571
+ }
1572
+ }
1573
+ }
1574
+ }
1575
+ };
1576
+ const PrivateEndpointConnection = {
1577
+ type: {
1578
+ name: "Composite",
1579
+ className: "PrivateEndpointConnection",
1580
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { etag: {
1581
+ serializedName: "etag",
1582
+ type: {
1583
+ name: "String"
1584
+ }
1585
+ }, privateEndpoint: {
1586
+ serializedName: "properties.privateEndpoint",
1587
+ type: {
1588
+ name: "Composite",
1589
+ className: "PrivateEndpoint"
1590
+ }
1591
+ }, privateLinkServiceConnectionState: {
1592
+ serializedName: "properties.privateLinkServiceConnectionState",
1593
+ type: {
1594
+ name: "Composite",
1595
+ className: "PrivateLinkServiceConnectionState"
1596
+ }
1597
+ }, provisioningState: {
1598
+ serializedName: "properties.provisioningState",
1599
+ readOnly: true,
1600
+ type: {
1601
+ name: "String"
1602
+ }
1603
+ } })
1604
+ }
1605
+ };
1606
+ const PrivateLinkResource = {
1607
+ type: {
1608
+ name: "Composite",
1609
+ className: "PrivateLinkResource",
1610
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
1611
+ serializedName: "properties.groupId",
1612
+ readOnly: true,
1613
+ type: {
1614
+ name: "String"
1615
+ }
1616
+ }, requiredMembers: {
1617
+ serializedName: "properties.requiredMembers",
1618
+ readOnly: true,
1619
+ type: {
1620
+ name: "Sequence",
1621
+ element: {
1622
+ type: {
1623
+ name: "String"
1624
+ }
1625
+ }
1626
+ }
1627
+ }, requiredZoneNames: {
1628
+ serializedName: "properties.requiredZoneNames",
1629
+ type: {
1630
+ name: "Sequence",
1631
+ element: {
1632
+ type: {
1633
+ name: "String"
1634
+ }
1635
+ }
1636
+ }
1637
+ } })
1638
+ }
1639
+ };
1640
+ const Secret = {
1641
+ type: {
1642
+ name: "Composite",
1643
+ className: "Secret",
1644
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1645
+ serializedName: "properties",
1646
+ type: {
1647
+ name: "Composite",
1648
+ className: "SecretProperties"
1649
+ }
1650
+ } })
1651
+ }
1652
+ };
1653
+ const SecretAttributes = {
1654
+ type: {
1655
+ name: "Composite",
1656
+ className: "SecretAttributes",
1657
+ modelProperties: Object.assign({}, Attributes.type.modelProperties)
1658
+ }
1659
+ };
1660
+ const PrivateEndpointConnectionsPutHeaders = {
1661
+ type: {
1662
+ name: "Composite",
1663
+ className: "PrivateEndpointConnectionsPutHeaders",
1664
+ modelProperties: {
1665
+ retryAfter: {
1666
+ serializedName: "retry-after",
1667
+ type: {
1668
+ name: "Number"
1669
+ }
1670
+ },
1671
+ azureAsyncOperation: {
1672
+ serializedName: "azure-asyncoperation",
1673
+ type: {
1674
+ name: "String"
1675
+ }
1676
+ }
1677
+ }
1678
+ }
1679
+ };
1680
+ const PrivateEndpointConnectionsDeleteHeaders = {
1681
+ type: {
1682
+ name: "Composite",
1683
+ className: "PrivateEndpointConnectionsDeleteHeaders",
1684
+ modelProperties: {
1685
+ retryAfter: {
1686
+ serializedName: "retry-after",
1687
+ type: {
1688
+ name: "Number"
1689
+ }
1690
+ },
1691
+ location: {
1692
+ serializedName: "location",
1693
+ type: {
1694
+ name: "String"
1695
+ }
1696
+ }
1697
+ }
1698
+ }
1699
+ };
1700
+
1701
+ var Mappers = /*#__PURE__*/Object.freeze({
1702
+ __proto__: null,
1703
+ VaultCreateOrUpdateParameters: VaultCreateOrUpdateParameters,
1704
+ VaultProperties: VaultProperties,
1705
+ Sku: Sku,
1706
+ AccessPolicyEntry: AccessPolicyEntry,
1707
+ Permissions: Permissions,
1708
+ NetworkRuleSet: NetworkRuleSet,
1709
+ IPRule: IPRule,
1710
+ VirtualNetworkRule: VirtualNetworkRule,
1711
+ PrivateEndpointConnectionItem: PrivateEndpointConnectionItem,
1712
+ PrivateEndpoint: PrivateEndpoint,
1713
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1714
+ Vault: Vault,
1715
+ CloudError: CloudError,
1716
+ CloudErrorBody: CloudErrorBody,
1717
+ VaultPatchParameters: VaultPatchParameters,
1718
+ VaultPatchProperties: VaultPatchProperties,
1719
+ VaultAccessPolicyParameters: VaultAccessPolicyParameters,
1720
+ VaultAccessPolicyProperties: VaultAccessPolicyProperties,
1721
+ VaultListResult: VaultListResult,
1722
+ DeletedVaultListResult: DeletedVaultListResult,
1723
+ DeletedVault: DeletedVault,
1724
+ DeletedVaultProperties: DeletedVaultProperties,
1725
+ ResourceListResult: ResourceListResult,
1726
+ Resource: Resource,
1727
+ VaultCheckNameAvailabilityParameters: VaultCheckNameAvailabilityParameters,
1728
+ CheckNameAvailabilityResult: CheckNameAvailabilityResult,
1729
+ PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1730
+ OperationListResult: OperationListResult,
1731
+ Operation: Operation,
1732
+ OperationDisplay: OperationDisplay,
1733
+ ServiceSpecification: ServiceSpecification,
1734
+ LogSpecification: LogSpecification,
1735
+ MetricSpecification: MetricSpecification,
1736
+ DimensionProperties: DimensionProperties,
1737
+ SecretCreateOrUpdateParameters: SecretCreateOrUpdateParameters,
1738
+ SecretProperties: SecretProperties,
1739
+ Attributes: Attributes,
1740
+ SecretPatchParameters: SecretPatchParameters,
1741
+ SecretPatchProperties: SecretPatchProperties,
1742
+ SecretListResult: SecretListResult,
1743
+ PrivateEndpointConnection: PrivateEndpointConnection,
1744
+ PrivateLinkResource: PrivateLinkResource,
1745
+ Secret: Secret,
1746
+ SecretAttributes: SecretAttributes,
1747
+ PrivateEndpointConnectionsPutHeaders: PrivateEndpointConnectionsPutHeaders,
1748
+ PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders
1749
+ });
1750
+
1751
+ /*
1752
+ * Copyright (c) Microsoft Corporation.
1753
+ * Licensed under the MIT License.
1754
+ *
1755
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1756
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1757
+ */
1758
+ const contentType = {
1759
+ parameterPath: ["options", "contentType"],
1760
+ mapper: {
1761
+ defaultValue: "application/json",
1762
+ isConstant: true,
1763
+ serializedName: "Content-Type",
1764
+ type: {
1765
+ name: "String"
1766
+ }
1767
+ }
1768
+ };
1769
+ const parameters = {
1770
+ parameterPath: "parameters",
1771
+ mapper: VaultCreateOrUpdateParameters
1772
+ };
1773
+ const accept = {
1774
+ parameterPath: "accept",
1775
+ mapper: {
1776
+ defaultValue: "application/json",
1777
+ isConstant: true,
1778
+ serializedName: "Accept",
1779
+ type: {
1780
+ name: "String"
1781
+ }
1782
+ }
1783
+ };
1784
+ const $host = {
1785
+ parameterPath: "$host",
1786
+ mapper: {
1787
+ serializedName: "$host",
1788
+ required: true,
1789
+ type: {
1790
+ name: "String"
1791
+ }
1792
+ },
1793
+ skipEncoding: true
1794
+ };
1795
+ const resourceGroupName = {
1796
+ parameterPath: "resourceGroupName",
1797
+ mapper: {
1798
+ serializedName: "resourceGroupName",
1799
+ required: true,
1800
+ type: {
1801
+ name: "String"
1802
+ }
1803
+ }
1804
+ };
1805
+ const vaultName = {
1806
+ parameterPath: "vaultName",
1807
+ mapper: {
1808
+ constraints: {
1809
+ Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$")
1810
+ },
1811
+ serializedName: "vaultName",
1812
+ required: true,
1813
+ type: {
1814
+ name: "String"
1815
+ }
1816
+ }
1817
+ };
1818
+ const apiVersion = {
1819
+ parameterPath: "apiVersion",
1820
+ mapper: {
1821
+ defaultValue: "2019-09-01",
1822
+ isConstant: true,
1823
+ serializedName: "api-version",
1824
+ type: {
1825
+ name: "String"
1826
+ }
1827
+ }
1828
+ };
1829
+ const subscriptionId = {
1830
+ parameterPath: "subscriptionId",
1831
+ mapper: {
1832
+ serializedName: "subscriptionId",
1833
+ required: true,
1834
+ type: {
1835
+ name: "String"
1836
+ }
1837
+ }
1838
+ };
1839
+ const parameters1 = {
1840
+ parameterPath: "parameters",
1841
+ mapper: VaultPatchParameters
1842
+ };
1843
+ const vaultName1 = {
1844
+ parameterPath: "vaultName",
1845
+ mapper: {
1846
+ serializedName: "vaultName",
1847
+ required: true,
1848
+ type: {
1849
+ name: "String"
1850
+ }
1851
+ }
1852
+ };
1853
+ const parameters2 = {
1854
+ parameterPath: "parameters",
1855
+ mapper: VaultAccessPolicyParameters
1856
+ };
1857
+ const operationKind = {
1858
+ parameterPath: "operationKind",
1859
+ mapper: {
1860
+ serializedName: "operationKind",
1861
+ required: true,
1862
+ type: {
1863
+ name: "Enum",
1864
+ allowedValues: ["add", "replace", "remove"]
1865
+ }
1866
+ }
1867
+ };
1868
+ const top = {
1869
+ parameterPath: ["options", "top"],
1870
+ mapper: {
1871
+ serializedName: "$top",
1872
+ type: {
1873
+ name: "Number"
1874
+ }
1875
+ }
1876
+ };
1877
+ const location = {
1878
+ parameterPath: "location",
1879
+ mapper: {
1880
+ serializedName: "location",
1881
+ required: true,
1882
+ type: {
1883
+ name: "String"
1884
+ }
1885
+ }
1886
+ };
1887
+ const filter = {
1888
+ parameterPath: "filter",
1889
+ mapper: {
1890
+ defaultValue: "resourceType eq 'Microsoft.KeyVault/vaults'",
1891
+ isConstant: true,
1892
+ serializedName: "$filter",
1893
+ type: {
1894
+ name: "String"
1895
+ }
1896
+ }
1897
+ };
1898
+ const apiVersion1 = {
1899
+ parameterPath: "apiVersion",
1900
+ mapper: {
1901
+ defaultValue: "2015-11-01",
1902
+ isConstant: true,
1903
+ serializedName: "api-version",
1904
+ type: {
1905
+ name: "String"
1906
+ }
1907
+ }
1908
+ };
1909
+ const vaultName2 = {
1910
+ parameterPath: "vaultName",
1911
+ mapper: VaultCheckNameAvailabilityParameters
1912
+ };
1913
+ const nextLink = {
1914
+ parameterPath: "nextLink",
1915
+ mapper: {
1916
+ serializedName: "nextLink",
1917
+ required: true,
1918
+ type: {
1919
+ name: "String"
1920
+ }
1921
+ },
1922
+ skipEncoding: true
1923
+ };
1924
+ const privateEndpointConnectionName = {
1925
+ parameterPath: "privateEndpointConnectionName",
1926
+ mapper: {
1927
+ serializedName: "privateEndpointConnectionName",
1928
+ required: true,
1929
+ type: {
1930
+ name: "String"
1931
+ }
1932
+ }
1933
+ };
1934
+ const properties = {
1935
+ parameterPath: "properties",
1936
+ mapper: PrivateEndpointConnection
1937
+ };
1938
+ const parameters3 = {
1939
+ parameterPath: "parameters",
1940
+ mapper: SecretCreateOrUpdateParameters
1941
+ };
1942
+ const secretName = {
1943
+ parameterPath: "secretName",
1944
+ mapper: {
1945
+ constraints: {
1946
+ Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$")
1947
+ },
1948
+ serializedName: "secretName",
1949
+ required: true,
1950
+ type: {
1951
+ name: "String"
1952
+ }
1953
+ }
1954
+ };
1955
+ const parameters4 = {
1956
+ parameterPath: "parameters",
1957
+ mapper: SecretPatchParameters
1958
+ };
1959
+ const secretName1 = {
1960
+ parameterPath: "secretName",
1961
+ mapper: {
1962
+ serializedName: "secretName",
1963
+ required: true,
1964
+ type: {
1965
+ name: "String"
1966
+ }
1967
+ }
1968
+ };
1969
+
1970
+ /*
1971
+ * Copyright (c) Microsoft Corporation.
1972
+ * Licensed under the MIT License.
1973
+ *
1974
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1975
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1976
+ */
1977
+ class LroImpl {
1978
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1979
+ this.sendOperationFn = sendOperationFn;
1980
+ this.args = args;
1981
+ this.spec = spec;
1982
+ this.requestPath = requestPath;
1983
+ this.requestMethod = requestMethod;
1984
+ }
1985
+ sendInitialRequest() {
1986
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1987
+ return this.sendOperationFn(this.args, this.spec);
1988
+ });
1989
+ }
1990
+ sendPollRequest(path) {
1991
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1992
+ const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1993
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1994
+ });
1995
+ }
1996
+ }
1997
+
1998
+ /*
1999
+ * Copyright (c) Microsoft Corporation.
2000
+ * Licensed under the MIT License.
2001
+ *
2002
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2003
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2004
+ */
2005
+ /// <reference lib="esnext.asynciterable" />
2006
+ /** Class containing Vaults operations. */
2007
+ class VaultsImpl {
2008
+ /**
2009
+ * Initialize a new instance of the class Vaults class.
2010
+ * @param client Reference to the service client
2011
+ */
2012
+ constructor(client) {
2013
+ this.client = client;
2014
+ }
2015
+ /**
2016
+ * The List operation gets information about the vaults associated with the subscription and within the
2017
+ * specified resource group.
2018
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2019
+ * @param options The options parameters.
2020
+ */
2021
+ listByResourceGroup(resourceGroupName, options) {
2022
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2023
+ return {
2024
+ next() {
2025
+ return iter.next();
2026
+ },
2027
+ [Symbol.asyncIterator]() {
2028
+ return this;
2029
+ },
2030
+ byPage: () => {
2031
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
2032
+ }
2033
+ };
2034
+ }
2035
+ listByResourceGroupPagingPage(resourceGroupName, options) {
2036
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2037
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2038
+ yield yield tslib.__await(result.value || []);
2039
+ let continuationToken = result.nextLink;
2040
+ while (continuationToken) {
2041
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2042
+ continuationToken = result.nextLink;
2043
+ yield yield tslib.__await(result.value || []);
2044
+ }
2045
+ });
2046
+ }
2047
+ listByResourceGroupPagingAll(resourceGroupName, options) {
2048
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2049
+ var e_1, _a;
2050
+ try {
2051
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2052
+ const page = _c.value;
2053
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2054
+ }
2055
+ }
2056
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2057
+ finally {
2058
+ try {
2059
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2060
+ }
2061
+ finally { if (e_1) throw e_1.error; }
2062
+ }
2063
+ });
2064
+ }
2065
+ /**
2066
+ * The List operation gets information about the vaults associated with the subscription.
2067
+ * @param options The options parameters.
2068
+ */
2069
+ listBySubscription(options) {
2070
+ const iter = this.listBySubscriptionPagingAll(options);
2071
+ return {
2072
+ next() {
2073
+ return iter.next();
2074
+ },
2075
+ [Symbol.asyncIterator]() {
2076
+ return this;
2077
+ },
2078
+ byPage: () => {
2079
+ return this.listBySubscriptionPagingPage(options);
2080
+ }
2081
+ };
2082
+ }
2083
+ listBySubscriptionPagingPage(options) {
2084
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2085
+ let result = yield tslib.__await(this._listBySubscription(options));
2086
+ yield yield tslib.__await(result.value || []);
2087
+ let continuationToken = result.nextLink;
2088
+ while (continuationToken) {
2089
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2090
+ continuationToken = result.nextLink;
2091
+ yield yield tslib.__await(result.value || []);
2092
+ }
2093
+ });
2094
+ }
2095
+ listBySubscriptionPagingAll(options) {
2096
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2097
+ var e_2, _a;
2098
+ try {
2099
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2100
+ const page = _c.value;
2101
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2102
+ }
2103
+ }
2104
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
2105
+ finally {
2106
+ try {
2107
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2108
+ }
2109
+ finally { if (e_2) throw e_2.error; }
2110
+ }
2111
+ });
2112
+ }
2113
+ /**
2114
+ * Gets information about the deleted vaults in a subscription.
2115
+ * @param options The options parameters.
2116
+ */
2117
+ listDeleted(options) {
2118
+ const iter = this.listDeletedPagingAll(options);
2119
+ return {
2120
+ next() {
2121
+ return iter.next();
2122
+ },
2123
+ [Symbol.asyncIterator]() {
2124
+ return this;
2125
+ },
2126
+ byPage: () => {
2127
+ return this.listDeletedPagingPage(options);
2128
+ }
2129
+ };
2130
+ }
2131
+ listDeletedPagingPage(options) {
2132
+ return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
2133
+ let result = yield tslib.__await(this._listDeleted(options));
2134
+ yield yield tslib.__await(result.value || []);
2135
+ let continuationToken = result.nextLink;
2136
+ while (continuationToken) {
2137
+ result = yield tslib.__await(this._listDeletedNext(continuationToken, options));
2138
+ continuationToken = result.nextLink;
2139
+ yield yield tslib.__await(result.value || []);
2140
+ }
2141
+ });
2142
+ }
2143
+ listDeletedPagingAll(options) {
2144
+ return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingAll_1() {
2145
+ var e_3, _a;
2146
+ try {
2147
+ for (var _b = tslib.__asyncValues(this.listDeletedPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2148
+ const page = _c.value;
2149
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2150
+ }
2151
+ }
2152
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
2153
+ finally {
2154
+ try {
2155
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2156
+ }
2157
+ finally { if (e_3) throw e_3.error; }
2158
+ }
2159
+ });
2160
+ }
2161
+ /**
2162
+ * The List operation gets information about the vaults associated with the subscription.
2163
+ * @param options The options parameters.
2164
+ */
2165
+ list(options) {
2166
+ const iter = this.listPagingAll(options);
2167
+ return {
2168
+ next() {
2169
+ return iter.next();
2170
+ },
2171
+ [Symbol.asyncIterator]() {
2172
+ return this;
2173
+ },
2174
+ byPage: () => {
2175
+ return this.listPagingPage(options);
2176
+ }
2177
+ };
2178
+ }
2179
+ listPagingPage(options) {
2180
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2181
+ let result = yield tslib.__await(this._list(options));
2182
+ yield yield tslib.__await(result.value || []);
2183
+ let continuationToken = result.nextLink;
2184
+ while (continuationToken) {
2185
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2186
+ continuationToken = result.nextLink;
2187
+ yield yield tslib.__await(result.value || []);
2188
+ }
2189
+ });
2190
+ }
2191
+ listPagingAll(options) {
2192
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2193
+ var e_4, _a;
2194
+ try {
2195
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2196
+ const page = _c.value;
2197
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2198
+ }
2199
+ }
2200
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
2201
+ finally {
2202
+ try {
2203
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2204
+ }
2205
+ finally { if (e_4) throw e_4.error; }
2206
+ }
2207
+ });
2208
+ }
2209
+ /**
2210
+ * Create or update a key vault in the specified subscription.
2211
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
2212
+ * @param vaultName Name of the vault
2213
+ * @param parameters Parameters to create or update the vault
2214
+ * @param options The options parameters.
2215
+ */
2216
+ beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options) {
2217
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2218
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2219
+ return this.client.sendOperationRequest(args, spec);
2220
+ });
2221
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2222
+ var _a;
2223
+ let currentRawResponse = undefined;
2224
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2225
+ const callback = (rawResponse, flatResponse) => {
2226
+ currentRawResponse = rawResponse;
2227
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2228
+ };
2229
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2230
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2231
+ return {
2232
+ flatResponse,
2233
+ rawResponse: {
2234
+ statusCode: currentRawResponse.status,
2235
+ body: currentRawResponse.parsedBody,
2236
+ headers: currentRawResponse.headers.toJSON()
2237
+ }
2238
+ };
2239
+ });
2240
+ const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, parameters, options }, createOrUpdateOperationSpec$1);
2241
+ return new coreLro.LroEngine(lro, {
2242
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2243
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2244
+ });
2245
+ });
2246
+ }
2247
+ /**
2248
+ * Create or update a key vault in the specified subscription.
2249
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
2250
+ * @param vaultName Name of the vault
2251
+ * @param parameters Parameters to create or update the vault
2252
+ * @param options The options parameters.
2253
+ */
2254
+ beginCreateOrUpdateAndWait(resourceGroupName, vaultName, parameters, options) {
2255
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2256
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, vaultName, parameters, options);
2257
+ return poller.pollUntilDone();
2258
+ });
2259
+ }
2260
+ /**
2261
+ * Update a key vault in the specified subscription.
2262
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
2263
+ * @param vaultName Name of the vault
2264
+ * @param parameters Parameters to patch the vault
2265
+ * @param options The options parameters.
2266
+ */
2267
+ update(resourceGroupName, vaultName, parameters, options) {
2268
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, parameters, options }, updateOperationSpec$1);
2269
+ }
2270
+ /**
2271
+ * Deletes the specified Azure key vault.
2272
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2273
+ * @param vaultName The name of the vault to delete
2274
+ * @param options The options parameters.
2275
+ */
2276
+ delete(resourceGroupName, vaultName, options) {
2277
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, deleteOperationSpec$1);
2278
+ }
2279
+ /**
2280
+ * Gets the specified Azure key vault.
2281
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2282
+ * @param vaultName The name of the vault.
2283
+ * @param options The options parameters.
2284
+ */
2285
+ get(resourceGroupName, vaultName, options) {
2286
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec$2);
2287
+ }
2288
+ /**
2289
+ * Update access policies in a key vault in the specified subscription.
2290
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2291
+ * @param vaultName Name of the vault
2292
+ * @param operationKind Name of the operation
2293
+ * @param parameters Access policy to merge into the vault
2294
+ * @param options The options parameters.
2295
+ */
2296
+ updateAccessPolicy(resourceGroupName, vaultName, operationKind, parameters, options) {
2297
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationKind, parameters, options }, updateAccessPolicyOperationSpec);
2298
+ }
2299
+ /**
2300
+ * The List operation gets information about the vaults associated with the subscription and within the
2301
+ * specified resource group.
2302
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2303
+ * @param options The options parameters.
2304
+ */
2305
+ _listByResourceGroup(resourceGroupName, options) {
2306
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2307
+ }
2308
+ /**
2309
+ * The List operation gets information about the vaults associated with the subscription.
2310
+ * @param options The options parameters.
2311
+ */
2312
+ _listBySubscription(options) {
2313
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
2314
+ }
2315
+ /**
2316
+ * Gets information about the deleted vaults in a subscription.
2317
+ * @param options The options parameters.
2318
+ */
2319
+ _listDeleted(options) {
2320
+ return this.client.sendOperationRequest({ options }, listDeletedOperationSpec);
2321
+ }
2322
+ /**
2323
+ * Gets the deleted Azure key vault.
2324
+ * @param vaultName The name of the vault.
2325
+ * @param location The location of the deleted vault.
2326
+ * @param options The options parameters.
2327
+ */
2328
+ getDeleted(vaultName, location, options) {
2329
+ return this.client.sendOperationRequest({ vaultName, location, options }, getDeletedOperationSpec);
2330
+ }
2331
+ /**
2332
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
2333
+ * @param vaultName The name of the soft-deleted vault.
2334
+ * @param location The location of the soft-deleted vault.
2335
+ * @param options The options parameters.
2336
+ */
2337
+ beginPurgeDeleted(vaultName, location, options) {
2338
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2339
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2340
+ return this.client.sendOperationRequest(args, spec);
2341
+ });
2342
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2343
+ var _a;
2344
+ let currentRawResponse = undefined;
2345
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2346
+ const callback = (rawResponse, flatResponse) => {
2347
+ currentRawResponse = rawResponse;
2348
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2349
+ };
2350
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2351
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2352
+ return {
2353
+ flatResponse,
2354
+ rawResponse: {
2355
+ statusCode: currentRawResponse.status,
2356
+ body: currentRawResponse.parsedBody,
2357
+ headers: currentRawResponse.headers.toJSON()
2358
+ }
2359
+ };
2360
+ });
2361
+ const lro = new LroImpl(sendOperation, { vaultName, location, options }, purgeDeletedOperationSpec);
2362
+ return new coreLro.LroEngine(lro, {
2363
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2364
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2365
+ });
2366
+ });
2367
+ }
2368
+ /**
2369
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
2370
+ * @param vaultName The name of the soft-deleted vault.
2371
+ * @param location The location of the soft-deleted vault.
2372
+ * @param options The options parameters.
2373
+ */
2374
+ beginPurgeDeletedAndWait(vaultName, location, options) {
2375
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2376
+ const poller = yield this.beginPurgeDeleted(vaultName, location, options);
2377
+ return poller.pollUntilDone();
2378
+ });
2379
+ }
2380
+ /**
2381
+ * The List operation gets information about the vaults associated with the subscription.
2382
+ * @param options The options parameters.
2383
+ */
2384
+ _list(options) {
2385
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
2386
+ }
2387
+ /**
2388
+ * Checks that the vault name is valid and is not already in use.
2389
+ * @param vaultName The name of the vault.
2390
+ * @param options The options parameters.
2391
+ */
2392
+ checkNameAvailability(vaultName, options) {
2393
+ return this.client.sendOperationRequest({ vaultName, options }, checkNameAvailabilityOperationSpec);
2394
+ }
2395
+ /**
2396
+ * ListByResourceGroupNext
2397
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2398
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2399
+ * @param options The options parameters.
2400
+ */
2401
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2402
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2403
+ }
2404
+ /**
2405
+ * ListBySubscriptionNext
2406
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2407
+ * @param options The options parameters.
2408
+ */
2409
+ _listBySubscriptionNext(nextLink, options) {
2410
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2411
+ }
2412
+ /**
2413
+ * ListDeletedNext
2414
+ * @param nextLink The nextLink from the previous successful call to the ListDeleted method.
2415
+ * @param options The options parameters.
2416
+ */
2417
+ _listDeletedNext(nextLink, options) {
2418
+ return this.client.sendOperationRequest({ nextLink, options }, listDeletedNextOperationSpec);
2419
+ }
2420
+ /**
2421
+ * ListNext
2422
+ * @param nextLink The nextLink from the previous successful call to the List method.
2423
+ * @param options The options parameters.
2424
+ */
2425
+ _listNext(nextLink, options) {
2426
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
2427
+ }
2428
+ }
2429
+ // Operation Specifications
2430
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2431
+ const createOrUpdateOperationSpec$1 = {
2432
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
2433
+ httpMethod: "PUT",
2434
+ responses: {
2435
+ 200: {
2436
+ bodyMapper: Vault
2437
+ },
2438
+ 201: {
2439
+ bodyMapper: Vault
2440
+ },
2441
+ 202: {
2442
+ bodyMapper: Vault
2443
+ },
2444
+ 204: {
2445
+ bodyMapper: Vault
2446
+ },
2447
+ 400: {
2448
+ bodyMapper: CloudError,
2449
+ isError: true
2450
+ },
2451
+ 409: {
2452
+ bodyMapper: CloudError,
2453
+ isError: true
2454
+ },
2455
+ default: {
2456
+ bodyMapper: CloudError
2457
+ }
2458
+ },
2459
+ requestBody: parameters,
2460
+ queryParameters: [apiVersion],
2461
+ urlParameters: [
2462
+ $host,
2463
+ resourceGroupName,
2464
+ vaultName,
2465
+ subscriptionId
2466
+ ],
2467
+ headerParameters: [contentType, accept],
2468
+ mediaType: "json",
2469
+ serializer: serializer$4
2470
+ };
2471
+ const updateOperationSpec$1 = {
2472
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
2473
+ httpMethod: "PATCH",
2474
+ responses: {
2475
+ 200: {
2476
+ bodyMapper: Vault
2477
+ },
2478
+ 201: {
2479
+ bodyMapper: Vault
2480
+ },
2481
+ 400: {
2482
+ bodyMapper: CloudError,
2483
+ isError: true
2484
+ },
2485
+ 409: {
2486
+ bodyMapper: CloudError,
2487
+ isError: true
2488
+ },
2489
+ default: {
2490
+ bodyMapper: CloudError
2491
+ }
2492
+ },
2493
+ requestBody: parameters1,
2494
+ queryParameters: [apiVersion],
2495
+ urlParameters: [
2496
+ $host,
2497
+ resourceGroupName,
2498
+ vaultName,
2499
+ subscriptionId
2500
+ ],
2501
+ headerParameters: [contentType, accept],
2502
+ mediaType: "json",
2503
+ serializer: serializer$4
2504
+ };
2505
+ const deleteOperationSpec$1 = {
2506
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
2507
+ httpMethod: "DELETE",
2508
+ responses: {
2509
+ 200: {},
2510
+ 204: {},
2511
+ 400: {
2512
+ bodyMapper: CloudError,
2513
+ isError: true
2514
+ },
2515
+ default: {
2516
+ bodyMapper: CloudError
2517
+ }
2518
+ },
2519
+ queryParameters: [apiVersion],
2520
+ urlParameters: [
2521
+ $host,
2522
+ resourceGroupName,
2523
+ subscriptionId,
2524
+ vaultName1
2525
+ ],
2526
+ headerParameters: [accept],
2527
+ serializer: serializer$4
2528
+ };
2529
+ const getOperationSpec$2 = {
2530
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}",
2531
+ httpMethod: "GET",
2532
+ responses: {
2533
+ 200: {
2534
+ bodyMapper: Vault
2535
+ },
2536
+ default: {
2537
+ bodyMapper: CloudError
2538
+ }
2539
+ },
2540
+ queryParameters: [apiVersion],
2541
+ urlParameters: [
2542
+ $host,
2543
+ resourceGroupName,
2544
+ subscriptionId,
2545
+ vaultName1
2546
+ ],
2547
+ headerParameters: [accept],
2548
+ serializer: serializer$4
2549
+ };
2550
+ const updateAccessPolicyOperationSpec = {
2551
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}",
2552
+ httpMethod: "PUT",
2553
+ responses: {
2554
+ 200: {
2555
+ bodyMapper: VaultAccessPolicyParameters
2556
+ },
2557
+ 201: {
2558
+ bodyMapper: VaultAccessPolicyParameters
2559
+ },
2560
+ 400: {
2561
+ bodyMapper: CloudError,
2562
+ isError: true
2563
+ },
2564
+ 404: {
2565
+ bodyMapper: CloudError,
2566
+ isError: true
2567
+ },
2568
+ 409: {
2569
+ bodyMapper: CloudError,
2570
+ isError: true
2571
+ },
2572
+ default: {
2573
+ bodyMapper: CloudError
2574
+ }
2575
+ },
2576
+ requestBody: parameters2,
2577
+ queryParameters: [apiVersion],
2578
+ urlParameters: [
2579
+ $host,
2580
+ resourceGroupName,
2581
+ vaultName,
2582
+ subscriptionId,
2583
+ operationKind
2584
+ ],
2585
+ headerParameters: [contentType, accept],
2586
+ mediaType: "json",
2587
+ serializer: serializer$4
2588
+ };
2589
+ const listByResourceGroupOperationSpec = {
2590
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults",
2591
+ httpMethod: "GET",
2592
+ responses: {
2593
+ 200: {
2594
+ bodyMapper: VaultListResult
2595
+ },
2596
+ default: {
2597
+ bodyMapper: CloudError
2598
+ }
2599
+ },
2600
+ queryParameters: [apiVersion, top],
2601
+ urlParameters: [
2602
+ $host,
2603
+ resourceGroupName,
2604
+ subscriptionId
2605
+ ],
2606
+ headerParameters: [accept],
2607
+ serializer: serializer$4
2608
+ };
2609
+ const listBySubscriptionOperationSpec = {
2610
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/vaults",
2611
+ httpMethod: "GET",
2612
+ responses: {
2613
+ 200: {
2614
+ bodyMapper: VaultListResult
2615
+ },
2616
+ default: {
2617
+ bodyMapper: CloudError
2618
+ }
2619
+ },
2620
+ queryParameters: [apiVersion, top],
2621
+ urlParameters: [$host, subscriptionId],
2622
+ headerParameters: [accept],
2623
+ serializer: serializer$4
2624
+ };
2625
+ const listDeletedOperationSpec = {
2626
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedVaults",
2627
+ httpMethod: "GET",
2628
+ responses: {
2629
+ 200: {
2630
+ bodyMapper: DeletedVaultListResult
2631
+ },
2632
+ default: {
2633
+ bodyMapper: CloudError
2634
+ }
2635
+ },
2636
+ queryParameters: [apiVersion],
2637
+ urlParameters: [$host, subscriptionId],
2638
+ headerParameters: [accept],
2639
+ serializer: serializer$4
2640
+ };
2641
+ const getDeletedOperationSpec = {
2642
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}",
2643
+ httpMethod: "GET",
2644
+ responses: {
2645
+ 200: {
2646
+ bodyMapper: DeletedVault
2647
+ },
2648
+ default: {
2649
+ bodyMapper: CloudError
2650
+ }
2651
+ },
2652
+ queryParameters: [apiVersion],
2653
+ urlParameters: [
2654
+ $host,
2655
+ subscriptionId,
2656
+ vaultName1,
2657
+ location
2658
+ ],
2659
+ headerParameters: [accept],
2660
+ serializer: serializer$4
2661
+ };
2662
+ const purgeDeletedOperationSpec = {
2663
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}/purge",
2664
+ httpMethod: "POST",
2665
+ responses: {
2666
+ 200: {},
2667
+ 201: {},
2668
+ 202: {},
2669
+ 204: {},
2670
+ 400: {
2671
+ bodyMapper: CloudError,
2672
+ isError: true
2673
+ },
2674
+ 404: {
2675
+ bodyMapper: CloudError,
2676
+ isError: true
2677
+ },
2678
+ default: {
2679
+ bodyMapper: CloudError
2680
+ }
2681
+ },
2682
+ queryParameters: [apiVersion],
2683
+ urlParameters: [
2684
+ $host,
2685
+ subscriptionId,
2686
+ vaultName1,
2687
+ location
2688
+ ],
2689
+ headerParameters: [accept],
2690
+ serializer: serializer$4
2691
+ };
2692
+ const listOperationSpec$2 = {
2693
+ path: "/subscriptions/{subscriptionId}/resources",
2694
+ httpMethod: "GET",
2695
+ responses: {
2696
+ 200: {
2697
+ bodyMapper: ResourceListResult
2698
+ },
2699
+ default: {
2700
+ bodyMapper: CloudError
2701
+ }
2702
+ },
2703
+ queryParameters: [top, filter, apiVersion1],
2704
+ urlParameters: [$host, subscriptionId],
2705
+ headerParameters: [accept],
2706
+ serializer: serializer$4
2707
+ };
2708
+ const checkNameAvailabilityOperationSpec = {
2709
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/checkNameAvailability",
2710
+ httpMethod: "POST",
2711
+ responses: {
2712
+ 200: {
2713
+ bodyMapper: CheckNameAvailabilityResult
2714
+ },
2715
+ default: {
2716
+ bodyMapper: CloudError
2717
+ }
2718
+ },
2719
+ requestBody: vaultName2,
2720
+ queryParameters: [apiVersion],
2721
+ urlParameters: [$host, subscriptionId],
2722
+ headerParameters: [contentType, accept],
2723
+ mediaType: "json",
2724
+ serializer: serializer$4
2725
+ };
2726
+ const listByResourceGroupNextOperationSpec = {
2727
+ path: "{nextLink}",
2728
+ httpMethod: "GET",
2729
+ responses: {
2730
+ 200: {
2731
+ bodyMapper: VaultListResult
2732
+ },
2733
+ default: {
2734
+ bodyMapper: CloudError
2735
+ }
2736
+ },
2737
+ queryParameters: [apiVersion, top],
2738
+ urlParameters: [
2739
+ $host,
2740
+ resourceGroupName,
2741
+ subscriptionId,
2742
+ nextLink
2743
+ ],
2744
+ headerParameters: [accept],
2745
+ serializer: serializer$4
2746
+ };
2747
+ const listBySubscriptionNextOperationSpec = {
2748
+ path: "{nextLink}",
2749
+ httpMethod: "GET",
2750
+ responses: {
2751
+ 200: {
2752
+ bodyMapper: VaultListResult
2753
+ },
2754
+ default: {
2755
+ bodyMapper: CloudError
2756
+ }
2757
+ },
2758
+ queryParameters: [apiVersion, top],
2759
+ urlParameters: [
2760
+ $host,
2761
+ subscriptionId,
2762
+ nextLink
2763
+ ],
2764
+ headerParameters: [accept],
2765
+ serializer: serializer$4
2766
+ };
2767
+ const listDeletedNextOperationSpec = {
2768
+ path: "{nextLink}",
2769
+ httpMethod: "GET",
2770
+ responses: {
2771
+ 200: {
2772
+ bodyMapper: DeletedVaultListResult
2773
+ },
2774
+ default: {
2775
+ bodyMapper: CloudError
2776
+ }
2777
+ },
2778
+ queryParameters: [apiVersion],
2779
+ urlParameters: [
2780
+ $host,
2781
+ subscriptionId,
2782
+ nextLink
2783
+ ],
2784
+ headerParameters: [accept],
2785
+ serializer: serializer$4
2786
+ };
2787
+ const listNextOperationSpec$2 = {
2788
+ path: "{nextLink}",
2789
+ httpMethod: "GET",
2790
+ responses: {
2791
+ 200: {
2792
+ bodyMapper: ResourceListResult
2793
+ },
2794
+ default: {
2795
+ bodyMapper: CloudError
2796
+ }
2797
+ },
2798
+ queryParameters: [top, filter, apiVersion1],
2799
+ urlParameters: [
2800
+ $host,
2801
+ subscriptionId,
2802
+ nextLink
2803
+ ],
2804
+ headerParameters: [accept],
2805
+ serializer: serializer$4
2806
+ };
2807
+
2808
+ /*
2809
+ * Copyright (c) Microsoft Corporation.
2810
+ * Licensed under the MIT License.
2811
+ *
2812
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2813
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2814
+ */
2815
+ /** Class containing PrivateEndpointConnections operations. */
2816
+ class PrivateEndpointConnectionsImpl {
2817
+ /**
2818
+ * Initialize a new instance of the class PrivateEndpointConnections class.
2819
+ * @param client Reference to the service client
2820
+ */
2821
+ constructor(client) {
2822
+ this.client = client;
2823
+ }
2824
+ /**
2825
+ * Gets the specified private endpoint connection associated with the key vault.
2826
+ * @param resourceGroupName Name of the resource group that contains the key vault.
2827
+ * @param vaultName The name of the key vault.
2828
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
2829
+ * vault.
2830
+ * @param options The options parameters.
2831
+ */
2832
+ get(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
2833
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, privateEndpointConnectionName, options }, getOperationSpec$1);
2834
+ }
2835
+ /**
2836
+ * Updates the specified private endpoint connection associated with the key vault.
2837
+ * @param resourceGroupName Name of the resource group that contains the key vault.
2838
+ * @param vaultName The name of the key vault.
2839
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
2840
+ * vault.
2841
+ * @param properties The intended state of private endpoint connection.
2842
+ * @param options The options parameters.
2843
+ */
2844
+ put(resourceGroupName, vaultName, privateEndpointConnectionName, properties, options) {
2845
+ return this.client.sendOperationRequest({
2846
+ resourceGroupName,
2847
+ vaultName,
2848
+ privateEndpointConnectionName,
2849
+ properties,
2850
+ options
2851
+ }, putOperationSpec);
2852
+ }
2853
+ /**
2854
+ * Deletes the specified private endpoint connection associated with the key vault.
2855
+ * @param resourceGroupName Name of the resource group that contains the key vault.
2856
+ * @param vaultName The name of the key vault.
2857
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
2858
+ * vault.
2859
+ * @param options The options parameters.
2860
+ */
2861
+ beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
2862
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2863
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2864
+ return this.client.sendOperationRequest(args, spec);
2865
+ });
2866
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2867
+ var _a;
2868
+ let currentRawResponse = undefined;
2869
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2870
+ const callback = (rawResponse, flatResponse) => {
2871
+ currentRawResponse = rawResponse;
2872
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2873
+ };
2874
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2875
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
2876
+ return {
2877
+ flatResponse,
2878
+ rawResponse: {
2879
+ statusCode: currentRawResponse.status,
2880
+ body: currentRawResponse.parsedBody,
2881
+ headers: currentRawResponse.headers.toJSON()
2882
+ }
2883
+ };
2884
+ });
2885
+ const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, privateEndpointConnectionName, options }, deleteOperationSpec);
2886
+ return new coreLro.LroEngine(lro, {
2887
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2888
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2889
+ });
2890
+ });
2891
+ }
2892
+ /**
2893
+ * Deletes the specified private endpoint connection associated with the key vault.
2894
+ * @param resourceGroupName Name of the resource group that contains the key vault.
2895
+ * @param vaultName The name of the key vault.
2896
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
2897
+ * vault.
2898
+ * @param options The options parameters.
2899
+ */
2900
+ beginDeleteAndWait(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
2901
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2902
+ const poller = yield this.beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options);
2903
+ return poller.pollUntilDone();
2904
+ });
2905
+ }
2906
+ }
2907
+ // Operation Specifications
2908
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2909
+ const getOperationSpec$1 = {
2910
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2911
+ httpMethod: "GET",
2912
+ responses: {
2913
+ 200: {
2914
+ bodyMapper: PrivateEndpointConnection
2915
+ },
2916
+ 204: {},
2917
+ default: {
2918
+ bodyMapper: CloudError
2919
+ }
2920
+ },
2921
+ queryParameters: [apiVersion],
2922
+ urlParameters: [
2923
+ $host,
2924
+ resourceGroupName,
2925
+ vaultName,
2926
+ subscriptionId,
2927
+ privateEndpointConnectionName
2928
+ ],
2929
+ headerParameters: [accept],
2930
+ serializer: serializer$3
2931
+ };
2932
+ const putOperationSpec = {
2933
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2934
+ httpMethod: "PUT",
2935
+ responses: {
2936
+ 200: {
2937
+ bodyMapper: PrivateEndpointConnection,
2938
+ headersMapper: PrivateEndpointConnectionsPutHeaders
2939
+ },
2940
+ default: {
2941
+ bodyMapper: CloudError
2942
+ }
2943
+ },
2944
+ requestBody: properties,
2945
+ queryParameters: [apiVersion],
2946
+ urlParameters: [
2947
+ $host,
2948
+ resourceGroupName,
2949
+ vaultName,
2950
+ subscriptionId,
2951
+ privateEndpointConnectionName
2952
+ ],
2953
+ headerParameters: [contentType, accept],
2954
+ mediaType: "json",
2955
+ serializer: serializer$3
2956
+ };
2957
+ const deleteOperationSpec = {
2958
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
2959
+ httpMethod: "DELETE",
2960
+ responses: {
2961
+ 200: {
2962
+ bodyMapper: PrivateEndpointConnection
2963
+ },
2964
+ 201: {
2965
+ bodyMapper: PrivateEndpointConnection
2966
+ },
2967
+ 202: {
2968
+ bodyMapper: PrivateEndpointConnection
2969
+ },
2970
+ 204: {
2971
+ bodyMapper: PrivateEndpointConnection
2972
+ },
2973
+ default: {
2974
+ bodyMapper: CloudError
2975
+ }
2976
+ },
2977
+ queryParameters: [apiVersion],
2978
+ urlParameters: [
2979
+ $host,
2980
+ resourceGroupName,
2981
+ vaultName,
2982
+ subscriptionId,
2983
+ privateEndpointConnectionName
2984
+ ],
2985
+ headerParameters: [accept],
2986
+ serializer: serializer$3
2987
+ };
2988
+
2989
+ /*
2990
+ * Copyright (c) Microsoft Corporation.
2991
+ * Licensed under the MIT License.
2992
+ *
2993
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2994
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2995
+ */
2996
+ /** Class containing PrivateLinkResources operations. */
2997
+ class PrivateLinkResourcesImpl {
2998
+ /**
2999
+ * Initialize a new instance of the class PrivateLinkResources class.
3000
+ * @param client Reference to the service client
3001
+ */
3002
+ constructor(client) {
3003
+ this.client = client;
3004
+ }
3005
+ /**
3006
+ * Gets the private link resources supported for the key vault.
3007
+ * @param resourceGroupName Name of the resource group that contains the key vault.
3008
+ * @param vaultName The name of the key vault.
3009
+ * @param options The options parameters.
3010
+ */
3011
+ listByVault(resourceGroupName, vaultName, options) {
3012
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listByVaultOperationSpec);
3013
+ }
3014
+ }
3015
+ // Operation Specifications
3016
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3017
+ const listByVaultOperationSpec = {
3018
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources",
3019
+ httpMethod: "GET",
3020
+ responses: {
3021
+ 200: {
3022
+ bodyMapper: PrivateLinkResourceListResult
3023
+ },
3024
+ default: {
3025
+ bodyMapper: CloudError
3026
+ }
3027
+ },
3028
+ queryParameters: [apiVersion],
3029
+ urlParameters: [
3030
+ $host,
3031
+ resourceGroupName,
3032
+ vaultName,
3033
+ subscriptionId
3034
+ ],
3035
+ headerParameters: [accept],
3036
+ serializer: serializer$2
3037
+ };
3038
+
3039
+ /*
3040
+ * Copyright (c) Microsoft Corporation.
3041
+ * Licensed under the MIT License.
3042
+ *
3043
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3044
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3045
+ */
3046
+ /// <reference lib="esnext.asynciterable" />
3047
+ /** Class containing Operations operations. */
3048
+ class OperationsImpl {
3049
+ /**
3050
+ * Initialize a new instance of the class Operations class.
3051
+ * @param client Reference to the service client
3052
+ */
3053
+ constructor(client) {
3054
+ this.client = client;
3055
+ }
3056
+ /**
3057
+ * Lists all of the available Key Vault Rest API operations.
3058
+ * @param options The options parameters.
3059
+ */
3060
+ list(options) {
3061
+ const iter = this.listPagingAll(options);
3062
+ return {
3063
+ next() {
3064
+ return iter.next();
3065
+ },
3066
+ [Symbol.asyncIterator]() {
3067
+ return this;
3068
+ },
3069
+ byPage: () => {
3070
+ return this.listPagingPage(options);
3071
+ }
3072
+ };
3073
+ }
3074
+ listPagingPage(options) {
3075
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3076
+ let result = yield tslib.__await(this._list(options));
3077
+ yield yield tslib.__await(result.value || []);
3078
+ let continuationToken = result.nextLink;
3079
+ while (continuationToken) {
3080
+ result = yield tslib.__await(this._listNext(continuationToken, options));
3081
+ continuationToken = result.nextLink;
3082
+ yield yield tslib.__await(result.value || []);
3083
+ }
3084
+ });
3085
+ }
3086
+ listPagingAll(options) {
3087
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3088
+ var e_1, _a;
3089
+ try {
3090
+ for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3091
+ const page = _c.value;
3092
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3093
+ }
3094
+ }
3095
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3096
+ finally {
3097
+ try {
3098
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3099
+ }
3100
+ finally { if (e_1) throw e_1.error; }
3101
+ }
3102
+ });
3103
+ }
3104
+ /**
3105
+ * Lists all of the available Key Vault Rest API operations.
3106
+ * @param options The options parameters.
3107
+ */
3108
+ _list(options) {
3109
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
3110
+ }
3111
+ /**
3112
+ * ListNext
3113
+ * @param nextLink The nextLink from the previous successful call to the List method.
3114
+ * @param options The options parameters.
3115
+ */
3116
+ _listNext(nextLink, options) {
3117
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
3118
+ }
3119
+ }
3120
+ // Operation Specifications
3121
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3122
+ const listOperationSpec$1 = {
3123
+ path: "/providers/Microsoft.KeyVault/operations",
3124
+ httpMethod: "GET",
3125
+ responses: {
3126
+ 200: {
3127
+ bodyMapper: OperationListResult
3128
+ },
3129
+ default: {
3130
+ bodyMapper: CloudError
3131
+ }
3132
+ },
3133
+ queryParameters: [apiVersion],
3134
+ urlParameters: [$host],
3135
+ headerParameters: [accept],
3136
+ serializer: serializer$1
3137
+ };
3138
+ const listNextOperationSpec$1 = {
3139
+ path: "{nextLink}",
3140
+ httpMethod: "GET",
3141
+ responses: {
3142
+ 200: {
3143
+ bodyMapper: OperationListResult
3144
+ },
3145
+ default: {
3146
+ bodyMapper: CloudError
3147
+ }
3148
+ },
3149
+ queryParameters: [apiVersion],
3150
+ urlParameters: [$host, nextLink],
3151
+ headerParameters: [accept],
3152
+ serializer: serializer$1
3153
+ };
3154
+
3155
+ /*
3156
+ * Copyright (c) Microsoft Corporation.
3157
+ * Licensed under the MIT License.
3158
+ *
3159
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3160
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3161
+ */
3162
+ /// <reference lib="esnext.asynciterable" />
3163
+ /** Class containing Secrets operations. */
3164
+ class SecretsImpl {
3165
+ /**
3166
+ * Initialize a new instance of the class Secrets class.
3167
+ * @param client Reference to the service client
3168
+ */
3169
+ constructor(client) {
3170
+ this.client = client;
3171
+ }
3172
+ /**
3173
+ * The List operation gets information about the secrets in a vault. NOTE: This API is intended for
3174
+ * internal use in ARM deployments. Users should use the data-plane REST service for interaction with
3175
+ * vault secrets.
3176
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3177
+ * @param vaultName The name of the vault.
3178
+ * @param options The options parameters.
3179
+ */
3180
+ list(resourceGroupName, vaultName, options) {
3181
+ const iter = this.listPagingAll(resourceGroupName, vaultName, options);
3182
+ return {
3183
+ next() {
3184
+ return iter.next();
3185
+ },
3186
+ [Symbol.asyncIterator]() {
3187
+ return this;
3188
+ },
3189
+ byPage: () => {
3190
+ return this.listPagingPage(resourceGroupName, vaultName, options);
3191
+ }
3192
+ };
3193
+ }
3194
+ listPagingPage(resourceGroupName, vaultName, options) {
3195
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3196
+ let result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
3197
+ yield yield tslib.__await(result.value || []);
3198
+ let continuationToken = result.nextLink;
3199
+ while (continuationToken) {
3200
+ result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
3201
+ continuationToken = result.nextLink;
3202
+ yield yield tslib.__await(result.value || []);
3203
+ }
3204
+ });
3205
+ }
3206
+ listPagingAll(resourceGroupName, vaultName, options) {
3207
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3208
+ var e_1, _a;
3209
+ try {
3210
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3211
+ const page = _c.value;
3212
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3213
+ }
3214
+ }
3215
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3216
+ finally {
3217
+ try {
3218
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3219
+ }
3220
+ finally { if (e_1) throw e_1.error; }
3221
+ }
3222
+ });
3223
+ }
3224
+ /**
3225
+ * Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended
3226
+ * for internal use in ARM deployments. Users should use the data-plane REST service for interaction
3227
+ * with vault secrets.
3228
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3229
+ * @param vaultName Name of the vault
3230
+ * @param secretName Name of the secret
3231
+ * @param parameters Parameters to create or update the secret
3232
+ * @param options The options parameters.
3233
+ */
3234
+ createOrUpdate(resourceGroupName, vaultName, secretName, parameters, options) {
3235
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, parameters, options }, createOrUpdateOperationSpec);
3236
+ }
3237
+ /**
3238
+ * Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM
3239
+ * deployments. Users should use the data-plane REST service for interaction with vault secrets.
3240
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3241
+ * @param vaultName Name of the vault
3242
+ * @param secretName Name of the secret
3243
+ * @param parameters Parameters to patch the secret
3244
+ * @param options The options parameters.
3245
+ */
3246
+ update(resourceGroupName, vaultName, secretName, parameters, options) {
3247
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, parameters, options }, updateOperationSpec);
3248
+ }
3249
+ /**
3250
+ * Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users
3251
+ * should use the data-plane REST service for interaction with vault secrets.
3252
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3253
+ * @param vaultName The name of the vault.
3254
+ * @param secretName The name of the secret.
3255
+ * @param options The options parameters.
3256
+ */
3257
+ get(resourceGroupName, vaultName, secretName, options) {
3258
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, options }, getOperationSpec);
3259
+ }
3260
+ /**
3261
+ * The List operation gets information about the secrets in a vault. NOTE: This API is intended for
3262
+ * internal use in ARM deployments. Users should use the data-plane REST service for interaction with
3263
+ * vault secrets.
3264
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3265
+ * @param vaultName The name of the vault.
3266
+ * @param options The options parameters.
3267
+ */
3268
+ _list(resourceGroupName, vaultName, options) {
3269
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
3270
+ }
3271
+ /**
3272
+ * ListNext
3273
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
3274
+ * @param vaultName The name of the vault.
3275
+ * @param nextLink The nextLink from the previous successful call to the List method.
3276
+ * @param options The options parameters.
3277
+ */
3278
+ _listNext(resourceGroupName, vaultName, nextLink, options) {
3279
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
3280
+ }
3281
+ }
3282
+ // Operation Specifications
3283
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3284
+ const createOrUpdateOperationSpec = {
3285
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
3286
+ httpMethod: "PUT",
3287
+ responses: {
3288
+ 200: {
3289
+ bodyMapper: Secret
3290
+ },
3291
+ 201: {
3292
+ bodyMapper: Secret
3293
+ },
3294
+ default: {
3295
+ bodyMapper: CloudError
3296
+ }
3297
+ },
3298
+ requestBody: parameters3,
3299
+ queryParameters: [apiVersion],
3300
+ urlParameters: [
3301
+ $host,
3302
+ resourceGroupName,
3303
+ vaultName,
3304
+ subscriptionId,
3305
+ secretName
3306
+ ],
3307
+ headerParameters: [contentType, accept],
3308
+ mediaType: "json",
3309
+ serializer
3310
+ };
3311
+ const updateOperationSpec = {
3312
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
3313
+ httpMethod: "PATCH",
3314
+ responses: {
3315
+ 200: {
3316
+ bodyMapper: Secret
3317
+ },
3318
+ 201: {
3319
+ bodyMapper: Secret
3320
+ },
3321
+ default: {
3322
+ bodyMapper: CloudError
3323
+ }
3324
+ },
3325
+ requestBody: parameters4,
3326
+ queryParameters: [apiVersion],
3327
+ urlParameters: [
3328
+ $host,
3329
+ resourceGroupName,
3330
+ vaultName,
3331
+ subscriptionId,
3332
+ secretName
3333
+ ],
3334
+ headerParameters: [contentType, accept],
3335
+ mediaType: "json",
3336
+ serializer
3337
+ };
3338
+ const getOperationSpec = {
3339
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
3340
+ httpMethod: "GET",
3341
+ responses: {
3342
+ 200: {
3343
+ bodyMapper: Secret
3344
+ },
3345
+ default: {
3346
+ bodyMapper: CloudError
3347
+ }
3348
+ },
3349
+ queryParameters: [apiVersion],
3350
+ urlParameters: [
3351
+ $host,
3352
+ resourceGroupName,
3353
+ subscriptionId,
3354
+ vaultName1,
3355
+ secretName1
3356
+ ],
3357
+ headerParameters: [accept],
3358
+ serializer
3359
+ };
3360
+ const listOperationSpec = {
3361
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets",
3362
+ httpMethod: "GET",
3363
+ responses: {
3364
+ 200: {
3365
+ bodyMapper: SecretListResult
3366
+ }
3367
+ },
3368
+ queryParameters: [apiVersion, top],
3369
+ urlParameters: [
3370
+ $host,
3371
+ resourceGroupName,
3372
+ subscriptionId,
3373
+ vaultName1
3374
+ ],
3375
+ headerParameters: [accept],
3376
+ serializer
3377
+ };
3378
+ const listNextOperationSpec = {
3379
+ path: "{nextLink}",
3380
+ httpMethod: "GET",
3381
+ responses: {
3382
+ 200: {
3383
+ bodyMapper: SecretListResult
3384
+ }
3385
+ },
3386
+ queryParameters: [apiVersion, top],
3387
+ urlParameters: [
3388
+ $host,
3389
+ resourceGroupName,
3390
+ subscriptionId,
3391
+ vaultName1,
3392
+ nextLink
3393
+ ],
3394
+ headerParameters: [accept],
3395
+ serializer
3396
+ };
3397
+
3398
+ /*
3399
+ * Copyright (c) Microsoft Corporation.
3400
+ * Licensed under the MIT License.
3401
+ *
3402
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3403
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3404
+ */
3405
+ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
3406
+ /**
3407
+ * Initializes a new instance of the KeyVaultManagementClient class.
3408
+ * @param credentials Subscription credentials which uniquely identify client subscription.
3409
+ * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
3410
+ * The subscription ID forms part of the URI for every service call.
3411
+ * @param options The parameter options
3412
+ */
3413
+ constructor(credentials, subscriptionId, options) {
3414
+ if (credentials === undefined) {
3415
+ throw new Error("'credentials' cannot be null");
3416
+ }
3417
+ if (subscriptionId === undefined) {
3418
+ throw new Error("'subscriptionId' cannot be null");
3419
+ }
3420
+ // Initializing default values for options
3421
+ if (!options) {
3422
+ options = {};
3423
+ }
3424
+ const defaults = {
3425
+ requestContentType: "application/json; charset=utf-8",
3426
+ credential: credentials
3427
+ };
3428
+ const packageDetails = `azsdk-js-arm-keyvault-profile-2020-09-01-hybrid/2.0.0`;
3429
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3430
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3431
+ : `${packageDetails}`;
3432
+ if (!options.credentialScopes) {
3433
+ options.credentialScopes = ["https://management.azure.com/.default"];
3434
+ }
3435
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3436
+ userAgentPrefix
3437
+ }, baseUri: options.endpoint || "https://management.azure.com" });
3438
+ super(optionsWithDefaults);
3439
+ // Parameter assignments
3440
+ this.subscriptionId = subscriptionId;
3441
+ // Assigning values to Constant parameters
3442
+ this.$host = options.$host || "https://management.azure.com";
3443
+ this.apiVersion = options.apiVersion || "2019-09-01";
3444
+ this.vaults = new VaultsImpl(this);
3445
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3446
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
3447
+ this.operations = new OperationsImpl(this);
3448
+ this.secrets = new SecretsImpl(this);
3449
+ }
3450
+ }
3451
+
3452
+ exports.KeyVaultManagementClient = KeyVaultManagementClient;
3453
+ //# sourceMappingURL=index.js.map