@azure/arm-storage-profile-2020-09-01-hybrid 1.0.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 (264) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +83 -73
  4. package/dist/index.js +5576 -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/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1772 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +185 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +84 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +1591 -1449
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +30 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +242 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
  29. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
  30. package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
  31. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
  32. package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
  33. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  34. package/dist-esm/src/operations/encryptionScopes.js +278 -0
  35. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
  41. package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
  42. package/dist-esm/src/operations/managementPolicies.js +126 -0
  43. package/dist-esm/src/operations/managementPolicies.js.map +1 -0
  44. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +74 -0
  45. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +222 -0
  47. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
  48. package/dist-esm/src/operations/operations.d.ts +26 -0
  49. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/operations.js +87 -0
  51. package/dist-esm/src/operations/operations.js.map +1 -0
  52. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  53. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
  55. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  56. package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
  57. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  59. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  60. package/dist-esm/src/operations/skus.d.ts +26 -0
  61. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  62. package/dist-esm/src/operations/skus.js +87 -0
  63. package/dist-esm/src/operations/skus.js.map +1 -0
  64. package/dist-esm/src/operations/storageAccounts.d.ts +228 -0
  65. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  66. package/dist-esm/src/operations/storageAccounts.js +722 -0
  67. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  68. package/dist-esm/src/operations/usages.d.ts +28 -0
  69. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  70. package/dist-esm/src/operations/usages.js +93 -0
  71. package/dist-esm/src/operations/usages.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
  73. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
  77. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
  81. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js +18 -0
  83. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
  85. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +54 -0
  89. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
  97. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  101. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +196 -0
  109. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  113. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  116. package/dist-esm/src/storageManagementClient.d.ts +27 -0
  117. package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
  118. package/dist-esm/src/storageManagementClient.js +60 -0
  119. package/dist-esm/src/storageManagementClient.js.map +1 -0
  120. package/dist-esm/test/sampleTest.d.ts +2 -0
  121. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  122. package/dist-esm/test/sampleTest.js +40 -0
  123. package/dist-esm/test/sampleTest.js.map +1 -0
  124. package/package.json +74 -22
  125. package/review/arm-storage-profile-2020-09-01-hybrid.api.md +1396 -0
  126. package/rollup.config.js +115 -30
  127. package/src/index.ts +12 -0
  128. package/src/lroImpl.ts +34 -0
  129. package/src/models/index.ts +1411 -2087
  130. package/src/models/mappers.ts +1470 -1320
  131. package/src/models/parameters.ts +186 -76
  132. package/src/operations/blobInventoryPolicies.ts +282 -0
  133. package/src/operations/encryptionScopes.ts +238 -295
  134. package/src/operations/index.ts +4 -5
  135. package/src/operations/managementPolicies.ts +108 -182
  136. package/src/operations/objectReplicationPoliciesOperations.ts +186 -234
  137. package/src/operations/operations.ts +66 -45
  138. package/src/operations/privateEndpointConnections.ts +182 -221
  139. package/src/operations/privateLinkResources.ts +43 -67
  140. package/src/operations/skus.ts +64 -48
  141. package/src/operations/storageAccounts.ts +759 -838
  142. package/src/operations/usages.ts +78 -52
  143. package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
  144. package/src/operationsInterfaces/encryptionScopes.ts +102 -0
  145. package/src/operationsInterfaces/index.ts +18 -0
  146. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  147. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +91 -0
  148. package/src/operationsInterfaces/operations.ts +22 -0
  149. package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
  150. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  151. package/src/operationsInterfaces/skus.ts +22 -0
  152. package/src/operationsInterfaces/storageAccounts.ts +319 -0
  153. package/src/operationsInterfaces/usages.ts +24 -0
  154. package/src/storageManagementClient.ts +105 -46
  155. package/tsconfig.json +14 -6
  156. package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +2508 -0
  157. package/types/tsdoc-metadata.json +11 -0
  158. package/dist/arm-storage-profile-2020-09-01-hybrid.js +0 -5017
  159. package/dist/arm-storage-profile-2020-09-01-hybrid.js.map +0 -1
  160. package/dist/arm-storage-profile-2020-09-01-hybrid.min.js +0 -1
  161. package/dist/arm-storage-profile-2020-09-01-hybrid.min.js.map +0 -1
  162. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  163. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  164. package/esm/models/encryptionScopesMappers.js +0 -9
  165. package/esm/models/encryptionScopesMappers.js.map +0 -1
  166. package/esm/models/index.d.ts +0 -2493
  167. package/esm/models/index.d.ts.map +0 -1
  168. package/esm/models/index.js +0 -8
  169. package/esm/models/index.js.map +0 -1
  170. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  171. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  172. package/esm/models/managementPoliciesMappers.js +0 -9
  173. package/esm/models/managementPoliciesMappers.js.map +0 -1
  174. package/esm/models/mappers.d.ts +0 -79
  175. package/esm/models/mappers.d.ts.map +0 -1
  176. package/esm/models/mappers.js.map +0 -1
  177. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  178. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  179. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  180. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  181. package/esm/models/operationsMappers.d.ts +0 -2
  182. package/esm/models/operationsMappers.d.ts.map +0 -1
  183. package/esm/models/operationsMappers.js +0 -9
  184. package/esm/models/operationsMappers.js.map +0 -1
  185. package/esm/models/parameters.d.ts +0 -15
  186. package/esm/models/parameters.d.ts.map +0 -1
  187. package/esm/models/parameters.js +0 -176
  188. package/esm/models/parameters.js.map +0 -1
  189. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  190. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  191. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  192. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  193. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  194. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  195. package/esm/models/privateLinkResourcesMappers.js +0 -9
  196. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  197. package/esm/models/skusMappers.d.ts +0 -2
  198. package/esm/models/skusMappers.d.ts.map +0 -1
  199. package/esm/models/skusMappers.js +0 -9
  200. package/esm/models/skusMappers.js.map +0 -1
  201. package/esm/models/storageAccountsMappers.d.ts +0 -2
  202. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  203. package/esm/models/storageAccountsMappers.js +0 -9
  204. package/esm/models/storageAccountsMappers.js.map +0 -1
  205. package/esm/models/usagesMappers.d.ts +0 -2
  206. package/esm/models/usagesMappers.d.ts.map +0 -1
  207. package/esm/models/usagesMappers.js +0 -9
  208. package/esm/models/usagesMappers.js.map +0 -1
  209. package/esm/operations/encryptionScopes.d.ts +0 -196
  210. package/esm/operations/encryptionScopes.d.ts.map +0 -1
  211. package/esm/operations/encryptionScopes.js +0 -197
  212. package/esm/operations/encryptionScopes.js.map +0 -1
  213. package/esm/operations/index.d.ts.map +0 -1
  214. package/esm/operations/index.js.map +0 -1
  215. package/esm/operations/managementPolicies.d.ts +0 -109
  216. package/esm/operations/managementPolicies.d.ts.map +0 -1
  217. package/esm/operations/managementPolicies.js +0 -130
  218. package/esm/operations/managementPolicies.js.map +0 -1
  219. package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
  220. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
  221. package/esm/operations/objectReplicationPoliciesOperations.js +0 -162
  222. package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
  223. package/esm/operations/operations.d.ts +0 -28
  224. package/esm/operations/operations.d.ts.map +0 -1
  225. package/esm/operations/operations.js +0 -51
  226. package/esm/operations/operations.js.map +0 -1
  227. package/esm/operations/privateEndpointConnections.d.ts +0 -154
  228. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  229. package/esm/operations/privateEndpointConnections.js +0 -162
  230. package/esm/operations/privateEndpointConnections.js.map +0 -1
  231. package/esm/operations/privateLinkResources.d.ts +0 -43
  232. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  233. package/esm/operations/privateLinkResources.js +0 -58
  234. package/esm/operations/privateLinkResources.js.map +0 -1
  235. package/esm/operations/skus.d.ts +0 -28
  236. package/esm/operations/skus.d.ts.map +0 -1
  237. package/esm/operations/skus.js +0 -54
  238. package/esm/operations/skus.js.map +0 -1
  239. package/esm/operations/storageAccounts.d.ts +0 -436
  240. package/esm/operations/storageAccounts.d.ts.map +0 -1
  241. package/esm/operations/storageAccounts.js +0 -611
  242. package/esm/operations/storageAccounts.js.map +0 -1
  243. package/esm/operations/usages.d.ts +0 -32
  244. package/esm/operations/usages.d.ts.map +0 -1
  245. package/esm/operations/usages.js +0 -56
  246. package/esm/operations/usages.js.map +0 -1
  247. package/esm/storageManagementClient.d.ts +0 -26
  248. package/esm/storageManagementClient.d.ts.map +0 -1
  249. package/esm/storageManagementClient.js +0 -41
  250. package/esm/storageManagementClient.js.map +0 -1
  251. package/esm/storageManagementClientContext.d.ts +0 -16
  252. package/esm/storageManagementClientContext.d.ts.map +0 -1
  253. package/esm/storageManagementClientContext.js +0 -56
  254. package/esm/storageManagementClientContext.js.map +0 -1
  255. package/src/models/encryptionScopesMappers.ts +0 -59
  256. package/src/models/managementPoliciesMappers.ts +0 -57
  257. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -58
  258. package/src/models/operationsMappers.ts +0 -17
  259. package/src/models/privateEndpointConnectionsMappers.ts +0 -59
  260. package/src/models/privateLinkResourcesMappers.ts +0 -58
  261. package/src/models/skusMappers.ts +0 -15
  262. package/src/models/storageAccountsMappers.ts +0 -69
  263. package/src/models/usagesMappers.ts +0 -14
  264. package/src/storageManagementClientContext.ts +0 -62
@@ -0,0 +1,722 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing StorageAccounts operations. */
16
+ export class StorageAccountsImpl {
17
+ /**
18
+ * Initialize a new instance of the class StorageAccounts class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists all the storage accounts available under the subscription. Note that storage keys are not
26
+ * returned; use the ListKeys operation for this.
27
+ * @param options The options parameters.
28
+ */
29
+ list(options) {
30
+ const iter = this.listPagingAll(options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listPagingPage(options);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(options) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result = yield __await(this._list(options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listNext(continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listPagingAll(options) {
56
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Lists all the storage accounts available under the given resource group. Note that storage keys are
75
+ * not returned; use the ListKeys operation for this.
76
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
77
+ * case insensitive.
78
+ * @param options The options parameters.
79
+ */
80
+ listByResourceGroup(resourceGroupName, options) {
81
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
82
+ return {
83
+ next() {
84
+ return iter.next();
85
+ },
86
+ [Symbol.asyncIterator]() {
87
+ return this;
88
+ },
89
+ byPage: () => {
90
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
91
+ }
92
+ };
93
+ }
94
+ listByResourceGroupPagingPage(resourceGroupName, options) {
95
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
96
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
97
+ yield yield __await(result.value || []);
98
+ });
99
+ }
100
+ listByResourceGroupPagingAll(resourceGroupName, options) {
101
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
102
+ var e_2, _a;
103
+ try {
104
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
105
+ const page = _c.value;
106
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
107
+ }
108
+ }
109
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
110
+ finally {
111
+ try {
112
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
113
+ }
114
+ finally { if (e_2) throw e_2.error; }
115
+ }
116
+ });
117
+ }
118
+ /**
119
+ * Checks that the storage account name is valid and is not already in use.
120
+ * @param accountName The name of the storage account within the specified resource group. Storage
121
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
122
+ * only.
123
+ * @param options The options parameters.
124
+ */
125
+ checkNameAvailability(accountName, options) {
126
+ return this.client.sendOperationRequest({ accountName, options }, checkNameAvailabilityOperationSpec);
127
+ }
128
+ /**
129
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
130
+ * created and a subsequent create request is issued with different properties, the account properties
131
+ * will be updated. If an account is already created and a subsequent create or update request is
132
+ * issued with the exact same set of properties, the request will succeed.
133
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
134
+ * case insensitive.
135
+ * @param accountName The name of the storage account within the specified resource group. Storage
136
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
137
+ * only.
138
+ * @param parameters The parameters to provide for the created account.
139
+ * @param options The options parameters.
140
+ */
141
+ beginCreate(resourceGroupName, accountName, parameters, options) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
144
+ return this.client.sendOperationRequest(args, spec);
145
+ });
146
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
147
+ var _a;
148
+ let currentRawResponse = undefined;
149
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
150
+ const callback = (rawResponse, flatResponse) => {
151
+ currentRawResponse = rawResponse;
152
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
153
+ };
154
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
155
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
156
+ return {
157
+ flatResponse,
158
+ rawResponse: {
159
+ statusCode: currentRawResponse.status,
160
+ body: currentRawResponse.parsedBody,
161
+ headers: currentRawResponse.headers.toJSON()
162
+ }
163
+ };
164
+ });
165
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
166
+ return new LroEngine(lro, {
167
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
168
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
169
+ });
170
+ });
171
+ }
172
+ /**
173
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
174
+ * created and a subsequent create request is issued with different properties, the account properties
175
+ * will be updated. If an account is already created and a subsequent create or update request is
176
+ * issued with the exact same set of properties, the request will succeed.
177
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
178
+ * case insensitive.
179
+ * @param accountName The name of the storage account within the specified resource group. Storage
180
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
181
+ * only.
182
+ * @param parameters The parameters to provide for the created account.
183
+ * @param options The options parameters.
184
+ */
185
+ beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
188
+ return poller.pollUntilDone();
189
+ });
190
+ }
191
+ /**
192
+ * Deletes a storage account in Microsoft Azure.
193
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
194
+ * case insensitive.
195
+ * @param accountName The name of the storage account within the specified resource group. Storage
196
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
197
+ * only.
198
+ * @param options The options parameters.
199
+ */
200
+ delete(resourceGroupName, accountName, options) {
201
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
202
+ }
203
+ /**
204
+ * Returns the properties for the specified storage account including but not limited to name, SKU
205
+ * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
206
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
207
+ * case insensitive.
208
+ * @param accountName The name of the storage account within the specified resource group. Storage
209
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
210
+ * only.
211
+ * @param options The options parameters.
212
+ */
213
+ getProperties(resourceGroupName, accountName, options) {
214
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getPropertiesOperationSpec);
215
+ }
216
+ /**
217
+ * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage
218
+ * account. It can also be used to map the account to a custom domain. Only one custom domain is
219
+ * supported per storage account; the replacement/change of custom domain is not supported. In order to
220
+ * replace an old custom domain, the old value must be cleared/unregistered before a new value can be
221
+ * set. The update of multiple properties is supported. This call does not change the storage keys for
222
+ * the account. If you want to change the storage account keys, use the regenerate keys operation. The
223
+ * location and name of the storage account cannot be changed after creation.
224
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
225
+ * case insensitive.
226
+ * @param accountName The name of the storage account within the specified resource group. Storage
227
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
228
+ * only.
229
+ * @param parameters The parameters to provide for the updated account.
230
+ * @param options The options parameters.
231
+ */
232
+ update(resourceGroupName, accountName, parameters, options) {
233
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
234
+ }
235
+ /**
236
+ * Lists all the storage accounts available under the subscription. Note that storage keys are not
237
+ * returned; use the ListKeys operation for this.
238
+ * @param options The options parameters.
239
+ */
240
+ _list(options) {
241
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
242
+ }
243
+ /**
244
+ * Lists all the storage accounts available under the given resource group. Note that storage keys are
245
+ * not returned; use the ListKeys operation for this.
246
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
247
+ * case insensitive.
248
+ * @param options The options parameters.
249
+ */
250
+ _listByResourceGroup(resourceGroupName, options) {
251
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
252
+ }
253
+ /**
254
+ * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
255
+ * account.
256
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
257
+ * case insensitive.
258
+ * @param accountName The name of the storage account within the specified resource group. Storage
259
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
260
+ * only.
261
+ * @param options The options parameters.
262
+ */
263
+ listKeys(resourceGroupName, accountName, options) {
264
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
265
+ }
266
+ /**
267
+ * Regenerates one of the access keys or Kerberos keys for the specified storage account.
268
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
269
+ * case insensitive.
270
+ * @param accountName The name of the storage account within the specified resource group. Storage
271
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
272
+ * only.
273
+ * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,
274
+ * kerb2.
275
+ * @param options The options parameters.
276
+ */
277
+ regenerateKey(resourceGroupName, accountName, regenerateKey, options) {
278
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerateKey, options }, regenerateKeyOperationSpec);
279
+ }
280
+ /**
281
+ * List SAS credentials of a storage account.
282
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
283
+ * case insensitive.
284
+ * @param accountName The name of the storage account within the specified resource group. Storage
285
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
286
+ * only.
287
+ * @param parameters The parameters to provide to list SAS credentials for the storage account.
288
+ * @param options The options parameters.
289
+ */
290
+ listAccountSAS(resourceGroupName, accountName, parameters, options) {
291
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listAccountSASOperationSpec);
292
+ }
293
+ /**
294
+ * List service SAS credentials of a specific resource.
295
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
296
+ * case insensitive.
297
+ * @param accountName The name of the storage account within the specified resource group. Storage
298
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
299
+ * only.
300
+ * @param parameters The parameters to provide to list service SAS credentials.
301
+ * @param options The options parameters.
302
+ */
303
+ listServiceSAS(resourceGroupName, accountName, parameters, options) {
304
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listServiceSASOperationSpec);
305
+ }
306
+ /**
307
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
308
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
309
+ * secondary cluster will become primary after failover.
310
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
311
+ * case insensitive.
312
+ * @param accountName The name of the storage account within the specified resource group. Storage
313
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
314
+ * only.
315
+ * @param options The options parameters.
316
+ */
317
+ beginFailover(resourceGroupName, accountName, options) {
318
+ return __awaiter(this, void 0, void 0, function* () {
319
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
320
+ return this.client.sendOperationRequest(args, spec);
321
+ });
322
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
323
+ var _a;
324
+ let currentRawResponse = undefined;
325
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
326
+ const callback = (rawResponse, flatResponse) => {
327
+ currentRawResponse = rawResponse;
328
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
329
+ };
330
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
331
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
332
+ return {
333
+ flatResponse,
334
+ rawResponse: {
335
+ statusCode: currentRawResponse.status,
336
+ body: currentRawResponse.parsedBody,
337
+ headers: currentRawResponse.headers.toJSON()
338
+ }
339
+ };
340
+ });
341
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec);
342
+ return new LroEngine(lro, {
343
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
344
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
345
+ lroResourceLocationConfig: "location"
346
+ });
347
+ });
348
+ }
349
+ /**
350
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
351
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
352
+ * secondary cluster will become primary after failover.
353
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
354
+ * case insensitive.
355
+ * @param accountName The name of the storage account within the specified resource group. Storage
356
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
357
+ * only.
358
+ * @param options The options parameters.
359
+ */
360
+ beginFailoverAndWait(resourceGroupName, accountName, options) {
361
+ return __awaiter(this, void 0, void 0, function* () {
362
+ const poller = yield this.beginFailover(resourceGroupName, accountName, options);
363
+ return poller.pollUntilDone();
364
+ });
365
+ }
366
+ /**
367
+ * Restore blobs in the specified blob ranges
368
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
369
+ * case insensitive.
370
+ * @param accountName The name of the storage account within the specified resource group. Storage
371
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
372
+ * only.
373
+ * @param parameters The parameters to provide for restore blob ranges.
374
+ * @param options The options parameters.
375
+ */
376
+ beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
379
+ return this.client.sendOperationRequest(args, spec);
380
+ });
381
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
382
+ var _a;
383
+ let currentRawResponse = undefined;
384
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
385
+ const callback = (rawResponse, flatResponse) => {
386
+ currentRawResponse = rawResponse;
387
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
388
+ };
389
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
390
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
391
+ return {
392
+ flatResponse,
393
+ rawResponse: {
394
+ statusCode: currentRawResponse.status,
395
+ body: currentRawResponse.parsedBody,
396
+ headers: currentRawResponse.headers.toJSON()
397
+ }
398
+ };
399
+ });
400
+ const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec);
401
+ return new LroEngine(lro, {
402
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
403
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
404
+ lroResourceLocationConfig: "location"
405
+ });
406
+ });
407
+ }
408
+ /**
409
+ * Restore blobs in the specified blob ranges
410
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
411
+ * case insensitive.
412
+ * @param accountName The name of the storage account within the specified resource group. Storage
413
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
414
+ * only.
415
+ * @param parameters The parameters to provide for restore blob ranges.
416
+ * @param options The options parameters.
417
+ */
418
+ beginRestoreBlobRangesAndWait(resourceGroupName, accountName, parameters, options) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
421
+ return poller.pollUntilDone();
422
+ });
423
+ }
424
+ /**
425
+ * Revoke user delegation keys.
426
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
427
+ * case insensitive.
428
+ * @param accountName The name of the storage account within the specified resource group. Storage
429
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
430
+ * only.
431
+ * @param options The options parameters.
432
+ */
433
+ revokeUserDelegationKeys(resourceGroupName, accountName, options) {
434
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, revokeUserDelegationKeysOperationSpec);
435
+ }
436
+ /**
437
+ * ListNext
438
+ * @param nextLink The nextLink from the previous successful call to the List method.
439
+ * @param options The options parameters.
440
+ */
441
+ _listNext(nextLink, options) {
442
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
443
+ }
444
+ }
445
+ // Operation Specifications
446
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
447
+ const checkNameAvailabilityOperationSpec = {
448
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
449
+ httpMethod: "POST",
450
+ responses: {
451
+ 200: {
452
+ bodyMapper: Mappers.CheckNameAvailabilityResult
453
+ }
454
+ },
455
+ requestBody: Parameters.accountName,
456
+ queryParameters: [Parameters.apiVersion],
457
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
458
+ headerParameters: [Parameters.accept, Parameters.contentType],
459
+ mediaType: "json",
460
+ serializer
461
+ };
462
+ const createOperationSpec = {
463
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
464
+ httpMethod: "PUT",
465
+ responses: {
466
+ 200: {
467
+ bodyMapper: Mappers.StorageAccount
468
+ },
469
+ 201: {
470
+ bodyMapper: Mappers.StorageAccount
471
+ },
472
+ 202: {
473
+ bodyMapper: Mappers.StorageAccount
474
+ },
475
+ 204: {
476
+ bodyMapper: Mappers.StorageAccount
477
+ }
478
+ },
479
+ requestBody: Parameters.parameters,
480
+ queryParameters: [Parameters.apiVersion],
481
+ urlParameters: [
482
+ Parameters.$host,
483
+ Parameters.subscriptionId,
484
+ Parameters.resourceGroupName,
485
+ Parameters.accountName1
486
+ ],
487
+ headerParameters: [Parameters.accept, Parameters.contentType],
488
+ mediaType: "json",
489
+ serializer
490
+ };
491
+ const deleteOperationSpec = {
492
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
493
+ httpMethod: "DELETE",
494
+ responses: { 200: {}, 204: {} },
495
+ queryParameters: [Parameters.apiVersion],
496
+ urlParameters: [
497
+ Parameters.$host,
498
+ Parameters.subscriptionId,
499
+ Parameters.resourceGroupName,
500
+ Parameters.accountName1
501
+ ],
502
+ serializer
503
+ };
504
+ const getPropertiesOperationSpec = {
505
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
506
+ httpMethod: "GET",
507
+ responses: {
508
+ 200: {
509
+ bodyMapper: Mappers.StorageAccount
510
+ }
511
+ },
512
+ queryParameters: [Parameters.apiVersion, Parameters.expand],
513
+ urlParameters: [
514
+ Parameters.$host,
515
+ Parameters.subscriptionId,
516
+ Parameters.resourceGroupName,
517
+ Parameters.accountName1
518
+ ],
519
+ headerParameters: [Parameters.accept],
520
+ serializer
521
+ };
522
+ const updateOperationSpec = {
523
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
524
+ httpMethod: "PATCH",
525
+ responses: {
526
+ 200: {
527
+ bodyMapper: Mappers.StorageAccount
528
+ }
529
+ },
530
+ requestBody: Parameters.parameters1,
531
+ queryParameters: [Parameters.apiVersion],
532
+ urlParameters: [
533
+ Parameters.$host,
534
+ Parameters.subscriptionId,
535
+ Parameters.resourceGroupName,
536
+ Parameters.accountName1
537
+ ],
538
+ headerParameters: [Parameters.accept, Parameters.contentType],
539
+ mediaType: "json",
540
+ serializer
541
+ };
542
+ const listOperationSpec = {
543
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
544
+ httpMethod: "GET",
545
+ responses: {
546
+ 200: {
547
+ bodyMapper: Mappers.StorageAccountListResult
548
+ }
549
+ },
550
+ queryParameters: [Parameters.apiVersion],
551
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
552
+ headerParameters: [Parameters.accept],
553
+ serializer
554
+ };
555
+ const listByResourceGroupOperationSpec = {
556
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
557
+ httpMethod: "GET",
558
+ responses: {
559
+ 200: {
560
+ bodyMapper: Mappers.StorageAccountListResult
561
+ }
562
+ },
563
+ queryParameters: [Parameters.apiVersion],
564
+ urlParameters: [
565
+ Parameters.$host,
566
+ Parameters.subscriptionId,
567
+ Parameters.resourceGroupName
568
+ ],
569
+ headerParameters: [Parameters.accept],
570
+ serializer
571
+ };
572
+ const listKeysOperationSpec = {
573
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
574
+ httpMethod: "POST",
575
+ responses: {
576
+ 200: {
577
+ bodyMapper: Mappers.StorageAccountListKeysResult
578
+ }
579
+ },
580
+ queryParameters: [Parameters.apiVersion, Parameters.expand1],
581
+ urlParameters: [
582
+ Parameters.$host,
583
+ Parameters.subscriptionId,
584
+ Parameters.resourceGroupName,
585
+ Parameters.accountName1
586
+ ],
587
+ headerParameters: [Parameters.accept],
588
+ serializer
589
+ };
590
+ const regenerateKeyOperationSpec = {
591
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
592
+ httpMethod: "POST",
593
+ responses: {
594
+ 200: {
595
+ bodyMapper: Mappers.StorageAccountListKeysResult
596
+ }
597
+ },
598
+ requestBody: Parameters.regenerateKey,
599
+ queryParameters: [Parameters.apiVersion],
600
+ urlParameters: [
601
+ Parameters.$host,
602
+ Parameters.subscriptionId,
603
+ Parameters.resourceGroupName,
604
+ Parameters.accountName1
605
+ ],
606
+ headerParameters: [Parameters.accept, Parameters.contentType],
607
+ mediaType: "json",
608
+ serializer
609
+ };
610
+ const listAccountSASOperationSpec = {
611
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
612
+ httpMethod: "POST",
613
+ responses: {
614
+ 200: {
615
+ bodyMapper: Mappers.ListAccountSasResponse
616
+ }
617
+ },
618
+ requestBody: Parameters.parameters2,
619
+ queryParameters: [Parameters.apiVersion],
620
+ urlParameters: [
621
+ Parameters.$host,
622
+ Parameters.subscriptionId,
623
+ Parameters.resourceGroupName,
624
+ Parameters.accountName1
625
+ ],
626
+ headerParameters: [Parameters.accept, Parameters.contentType],
627
+ mediaType: "json",
628
+ serializer
629
+ };
630
+ const listServiceSASOperationSpec = {
631
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
632
+ httpMethod: "POST",
633
+ responses: {
634
+ 200: {
635
+ bodyMapper: Mappers.ListServiceSasResponse
636
+ }
637
+ },
638
+ requestBody: Parameters.parameters3,
639
+ queryParameters: [Parameters.apiVersion],
640
+ urlParameters: [
641
+ Parameters.$host,
642
+ Parameters.subscriptionId,
643
+ Parameters.resourceGroupName,
644
+ Parameters.accountName1
645
+ ],
646
+ headerParameters: [Parameters.accept, Parameters.contentType],
647
+ mediaType: "json",
648
+ serializer
649
+ };
650
+ const failoverOperationSpec = {
651
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
652
+ httpMethod: "POST",
653
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
654
+ queryParameters: [Parameters.apiVersion],
655
+ urlParameters: [
656
+ Parameters.$host,
657
+ Parameters.subscriptionId,
658
+ Parameters.resourceGroupName,
659
+ Parameters.accountName1
660
+ ],
661
+ serializer
662
+ };
663
+ const restoreBlobRangesOperationSpec = {
664
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
665
+ httpMethod: "POST",
666
+ responses: {
667
+ 200: {
668
+ bodyMapper: Mappers.BlobRestoreStatus
669
+ },
670
+ 201: {
671
+ bodyMapper: Mappers.BlobRestoreStatus
672
+ },
673
+ 202: {
674
+ bodyMapper: Mappers.BlobRestoreStatus
675
+ },
676
+ 204: {
677
+ bodyMapper: Mappers.BlobRestoreStatus
678
+ }
679
+ },
680
+ requestBody: Parameters.parameters4,
681
+ queryParameters: [Parameters.apiVersion],
682
+ urlParameters: [
683
+ Parameters.$host,
684
+ Parameters.subscriptionId,
685
+ Parameters.resourceGroupName,
686
+ Parameters.accountName1
687
+ ],
688
+ headerParameters: [Parameters.accept, Parameters.contentType],
689
+ mediaType: "json",
690
+ serializer
691
+ };
692
+ const revokeUserDelegationKeysOperationSpec = {
693
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
694
+ httpMethod: "POST",
695
+ responses: { 200: {} },
696
+ queryParameters: [Parameters.apiVersion],
697
+ urlParameters: [
698
+ Parameters.$host,
699
+ Parameters.subscriptionId,
700
+ Parameters.resourceGroupName,
701
+ Parameters.accountName1
702
+ ],
703
+ serializer
704
+ };
705
+ const listNextOperationSpec = {
706
+ path: "{nextLink}",
707
+ httpMethod: "GET",
708
+ responses: {
709
+ 200: {
710
+ bodyMapper: Mappers.StorageAccountListResult
711
+ }
712
+ },
713
+ queryParameters: [Parameters.apiVersion],
714
+ urlParameters: [
715
+ Parameters.$host,
716
+ Parameters.subscriptionId,
717
+ Parameters.nextLink
718
+ ],
719
+ headerParameters: [Parameters.accept],
720
+ serializer
721
+ };
722
+ //# sourceMappingURL=storageAccounts.js.map