@azure/arm-storage-profile-2020-09-01-hybrid 1.1.1 → 2.0.1-alpha.20220315.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +80 -80
  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 -23
  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 +104 -51
  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 -5027
  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 -32
  248. package/esm/storageManagementClient.d.ts.map +0 -1
  249. package/esm/storageManagementClient.js +0 -46
  250. package/esm/storageManagementClient.js.map +0 -1
  251. package/esm/storageManagementClientContext.d.ts +0 -22
  252. package/esm/storageManagementClientContext.d.ts.map +0 -1
  253. package/esm/storageManagementClientContext.js +0 -61
  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 -68
@@ -0,0 +1,30 @@
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
+
9
+ import {
10
+ PrivateLinkResourcesListByStorageAccountOptionalParams,
11
+ PrivateLinkResourcesListByStorageAccountResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a PrivateLinkResources. */
15
+ export interface PrivateLinkResources {
16
+ /**
17
+ * Gets the private link resources that need to be created for a storage account.
18
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
19
+ * case insensitive.
20
+ * @param accountName The name of the storage account within the specified resource group. Storage
21
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
22
+ * only.
23
+ * @param options The options parameters.
24
+ */
25
+ listByStorageAccount(
26
+ resourceGroupName: string,
27
+ accountName: string,
28
+ options?: PrivateLinkResourcesListByStorageAccountOptionalParams
29
+ ): Promise<PrivateLinkResourcesListByStorageAccountResponse>;
30
+ }
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SkuInformation, SkusListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Skus. */
14
+ export interface Skus {
15
+ /**
16
+ * Lists the available SKUs supported by Microsoft.Storage for given subscription.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: SkusListOptionalParams
21
+ ): PagedAsyncIterableIterator<SkuInformation>;
22
+ }
@@ -0,0 +1,319 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ StorageAccount,
13
+ StorageAccountsListOptionalParams,
14
+ StorageAccountsListByResourceGroupOptionalParams,
15
+ StorageAccountCheckNameAvailabilityParameters,
16
+ StorageAccountsCheckNameAvailabilityOptionalParams,
17
+ StorageAccountsCheckNameAvailabilityResponse,
18
+ StorageAccountCreateParameters,
19
+ StorageAccountsCreateOptionalParams,
20
+ StorageAccountsCreateResponse,
21
+ StorageAccountsDeleteOptionalParams,
22
+ StorageAccountsGetPropertiesOptionalParams,
23
+ StorageAccountsGetPropertiesResponse,
24
+ StorageAccountUpdateParameters,
25
+ StorageAccountsUpdateOptionalParams,
26
+ StorageAccountsUpdateResponse,
27
+ StorageAccountsListKeysOptionalParams,
28
+ StorageAccountsListKeysResponse,
29
+ StorageAccountRegenerateKeyParameters,
30
+ StorageAccountsRegenerateKeyOptionalParams,
31
+ StorageAccountsRegenerateKeyResponse,
32
+ AccountSasParameters,
33
+ StorageAccountsListAccountSASOptionalParams,
34
+ StorageAccountsListAccountSASResponse,
35
+ ServiceSasParameters,
36
+ StorageAccountsListServiceSASOptionalParams,
37
+ StorageAccountsListServiceSASResponse,
38
+ StorageAccountsFailoverOptionalParams,
39
+ BlobRestoreParameters,
40
+ StorageAccountsRestoreBlobRangesOptionalParams,
41
+ StorageAccountsRestoreBlobRangesResponse,
42
+ StorageAccountsRevokeUserDelegationKeysOptionalParams
43
+ } from "../models";
44
+
45
+ /// <reference lib="esnext.asynciterable" />
46
+ /** Interface representing a StorageAccounts. */
47
+ export interface StorageAccounts {
48
+ /**
49
+ * Lists all the storage accounts available under the subscription. Note that storage keys are not
50
+ * returned; use the ListKeys operation for this.
51
+ * @param options The options parameters.
52
+ */
53
+ list(
54
+ options?: StorageAccountsListOptionalParams
55
+ ): PagedAsyncIterableIterator<StorageAccount>;
56
+ /**
57
+ * Lists all the storage accounts available under the given resource group. Note that storage keys are
58
+ * not returned; use the ListKeys operation for this.
59
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
60
+ * case insensitive.
61
+ * @param options The options parameters.
62
+ */
63
+ listByResourceGroup(
64
+ resourceGroupName: string,
65
+ options?: StorageAccountsListByResourceGroupOptionalParams
66
+ ): PagedAsyncIterableIterator<StorageAccount>;
67
+ /**
68
+ * Checks that the storage account name is valid and is not already in use.
69
+ * @param accountName The name of the storage account within the specified resource group. Storage
70
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
71
+ * only.
72
+ * @param options The options parameters.
73
+ */
74
+ checkNameAvailability(
75
+ accountName: StorageAccountCheckNameAvailabilityParameters,
76
+ options?: StorageAccountsCheckNameAvailabilityOptionalParams
77
+ ): Promise<StorageAccountsCheckNameAvailabilityResponse>;
78
+ /**
79
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
80
+ * created and a subsequent create request is issued with different properties, the account properties
81
+ * will be updated. If an account is already created and a subsequent create or update request is
82
+ * issued with the exact same set of properties, the request will succeed.
83
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
84
+ * case insensitive.
85
+ * @param accountName The name of the storage account within the specified resource group. Storage
86
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
87
+ * only.
88
+ * @param parameters The parameters to provide for the created account.
89
+ * @param options The options parameters.
90
+ */
91
+ beginCreate(
92
+ resourceGroupName: string,
93
+ accountName: string,
94
+ parameters: StorageAccountCreateParameters,
95
+ options?: StorageAccountsCreateOptionalParams
96
+ ): Promise<
97
+ PollerLike<
98
+ PollOperationState<StorageAccountsCreateResponse>,
99
+ StorageAccountsCreateResponse
100
+ >
101
+ >;
102
+ /**
103
+ * Asynchronously creates a new storage account with the specified parameters. If an account is already
104
+ * created and a subsequent create request is issued with different properties, the account properties
105
+ * will be updated. If an account is already created and a subsequent create or update request is
106
+ * issued with the exact same set of properties, the request will succeed.
107
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
108
+ * case insensitive.
109
+ * @param accountName The name of the storage account within the specified resource group. Storage
110
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
111
+ * only.
112
+ * @param parameters The parameters to provide for the created account.
113
+ * @param options The options parameters.
114
+ */
115
+ beginCreateAndWait(
116
+ resourceGroupName: string,
117
+ accountName: string,
118
+ parameters: StorageAccountCreateParameters,
119
+ options?: StorageAccountsCreateOptionalParams
120
+ ): Promise<StorageAccountsCreateResponse>;
121
+ /**
122
+ * Deletes a storage account in Microsoft Azure.
123
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
124
+ * case insensitive.
125
+ * @param accountName The name of the storage account within the specified resource group. Storage
126
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
127
+ * only.
128
+ * @param options The options parameters.
129
+ */
130
+ delete(
131
+ resourceGroupName: string,
132
+ accountName: string,
133
+ options?: StorageAccountsDeleteOptionalParams
134
+ ): Promise<void>;
135
+ /**
136
+ * Returns the properties for the specified storage account including but not limited to name, SKU
137
+ * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
138
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
139
+ * case insensitive.
140
+ * @param accountName The name of the storage account within the specified resource group. Storage
141
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
142
+ * only.
143
+ * @param options The options parameters.
144
+ */
145
+ getProperties(
146
+ resourceGroupName: string,
147
+ accountName: string,
148
+ options?: StorageAccountsGetPropertiesOptionalParams
149
+ ): Promise<StorageAccountsGetPropertiesResponse>;
150
+ /**
151
+ * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage
152
+ * account. It can also be used to map the account to a custom domain. Only one custom domain is
153
+ * supported per storage account; the replacement/change of custom domain is not supported. In order to
154
+ * replace an old custom domain, the old value must be cleared/unregistered before a new value can be
155
+ * set. The update of multiple properties is supported. This call does not change the storage keys for
156
+ * the account. If you want to change the storage account keys, use the regenerate keys operation. The
157
+ * location and name of the storage account cannot be changed after creation.
158
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
159
+ * case insensitive.
160
+ * @param accountName The name of the storage account within the specified resource group. Storage
161
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
162
+ * only.
163
+ * @param parameters The parameters to provide for the updated account.
164
+ * @param options The options parameters.
165
+ */
166
+ update(
167
+ resourceGroupName: string,
168
+ accountName: string,
169
+ parameters: StorageAccountUpdateParameters,
170
+ options?: StorageAccountsUpdateOptionalParams
171
+ ): Promise<StorageAccountsUpdateResponse>;
172
+ /**
173
+ * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
174
+ * account.
175
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
176
+ * case insensitive.
177
+ * @param accountName The name of the storage account within the specified resource group. Storage
178
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
179
+ * only.
180
+ * @param options The options parameters.
181
+ */
182
+ listKeys(
183
+ resourceGroupName: string,
184
+ accountName: string,
185
+ options?: StorageAccountsListKeysOptionalParams
186
+ ): Promise<StorageAccountsListKeysResponse>;
187
+ /**
188
+ * Regenerates one of the access keys or Kerberos keys for the specified storage account.
189
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
190
+ * case insensitive.
191
+ * @param accountName The name of the storage account within the specified resource group. Storage
192
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
193
+ * only.
194
+ * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,
195
+ * kerb2.
196
+ * @param options The options parameters.
197
+ */
198
+ regenerateKey(
199
+ resourceGroupName: string,
200
+ accountName: string,
201
+ regenerateKey: StorageAccountRegenerateKeyParameters,
202
+ options?: StorageAccountsRegenerateKeyOptionalParams
203
+ ): Promise<StorageAccountsRegenerateKeyResponse>;
204
+ /**
205
+ * List SAS credentials of a storage account.
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 parameters The parameters to provide to list SAS credentials for the storage account.
212
+ * @param options The options parameters.
213
+ */
214
+ listAccountSAS(
215
+ resourceGroupName: string,
216
+ accountName: string,
217
+ parameters: AccountSasParameters,
218
+ options?: StorageAccountsListAccountSASOptionalParams
219
+ ): Promise<StorageAccountsListAccountSASResponse>;
220
+ /**
221
+ * List service SAS credentials of a specific resource.
222
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
223
+ * case insensitive.
224
+ * @param accountName The name of the storage account within the specified resource group. Storage
225
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
226
+ * only.
227
+ * @param parameters The parameters to provide to list service SAS credentials.
228
+ * @param options The options parameters.
229
+ */
230
+ listServiceSAS(
231
+ resourceGroupName: string,
232
+ accountName: string,
233
+ parameters: ServiceSasParameters,
234
+ options?: StorageAccountsListServiceSASOptionalParams
235
+ ): Promise<StorageAccountsListServiceSASResponse>;
236
+ /**
237
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
238
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
239
+ * secondary cluster will become primary after failover.
240
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
241
+ * case insensitive.
242
+ * @param accountName The name of the storage account within the specified resource group. Storage
243
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
244
+ * only.
245
+ * @param options The options parameters.
246
+ */
247
+ beginFailover(
248
+ resourceGroupName: string,
249
+ accountName: string,
250
+ options?: StorageAccountsFailoverOptionalParams
251
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
252
+ /**
253
+ * Failover request can be triggered for a storage account in case of availability issues. The failover
254
+ * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
255
+ * secondary cluster will become primary after failover.
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
+ beginFailoverAndWait(
264
+ resourceGroupName: string,
265
+ accountName: string,
266
+ options?: StorageAccountsFailoverOptionalParams
267
+ ): Promise<void>;
268
+ /**
269
+ * Restore blobs in the specified blob ranges
270
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
271
+ * case insensitive.
272
+ * @param accountName The name of the storage account within the specified resource group. Storage
273
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
274
+ * only.
275
+ * @param parameters The parameters to provide for restore blob ranges.
276
+ * @param options The options parameters.
277
+ */
278
+ beginRestoreBlobRanges(
279
+ resourceGroupName: string,
280
+ accountName: string,
281
+ parameters: BlobRestoreParameters,
282
+ options?: StorageAccountsRestoreBlobRangesOptionalParams
283
+ ): Promise<
284
+ PollerLike<
285
+ PollOperationState<StorageAccountsRestoreBlobRangesResponse>,
286
+ StorageAccountsRestoreBlobRangesResponse
287
+ >
288
+ >;
289
+ /**
290
+ * Restore blobs in the specified blob ranges
291
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
292
+ * case insensitive.
293
+ * @param accountName The name of the storage account within the specified resource group. Storage
294
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
295
+ * only.
296
+ * @param parameters The parameters to provide for restore blob ranges.
297
+ * @param options The options parameters.
298
+ */
299
+ beginRestoreBlobRangesAndWait(
300
+ resourceGroupName: string,
301
+ accountName: string,
302
+ parameters: BlobRestoreParameters,
303
+ options?: StorageAccountsRestoreBlobRangesOptionalParams
304
+ ): Promise<StorageAccountsRestoreBlobRangesResponse>;
305
+ /**
306
+ * Revoke user delegation keys.
307
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
308
+ * case insensitive.
309
+ * @param accountName The name of the storage account within the specified resource group. Storage
310
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
311
+ * only.
312
+ * @param options The options parameters.
313
+ */
314
+ revokeUserDelegationKeys(
315
+ resourceGroupName: string,
316
+ accountName: string,
317
+ options?: StorageAccountsRevokeUserDelegationKeysOptionalParams
318
+ ): Promise<void>;
319
+ }
@@ -0,0 +1,24 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Usage, UsagesListByLocationOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Usages. */
14
+ export interface Usages {
15
+ /**
16
+ * Gets the current usage count and the limit for the resources of the location under the subscription.
17
+ * @param location The location of the Azure Storage resource.
18
+ * @param options The options parameters.
19
+ */
20
+ listByLocation(
21
+ location: string,
22
+ options?: UsagesListByLocationOptionalParams
23
+ ): PagedAsyncIterableIterator<Usage>;
24
+ }
@@ -1,64 +1,117 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import { TokenCredential } from "@azure/core-auth";
13
- import * as Models from "./models";
14
- import * as Mappers from "./models/mappers";
15
- import * as operations from "./operations";
16
- import { StorageManagementClientContext } from "./storageManagementClientContext";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ OperationsImpl,
13
+ SkusImpl,
14
+ StorageAccountsImpl,
15
+ UsagesImpl,
16
+ ManagementPoliciesImpl,
17
+ BlobInventoryPoliciesImpl,
18
+ PrivateEndpointConnectionsImpl,
19
+ PrivateLinkResourcesImpl,
20
+ ObjectReplicationPoliciesOperationsImpl,
21
+ EncryptionScopesImpl
22
+ } from "./operations";
23
+ import {
24
+ Operations,
25
+ Skus,
26
+ StorageAccounts,
27
+ Usages,
28
+ ManagementPolicies,
29
+ BlobInventoryPolicies,
30
+ PrivateEndpointConnections,
31
+ PrivateLinkResources,
32
+ ObjectReplicationPoliciesOperations,
33
+ EncryptionScopes
34
+ } from "./operationsInterfaces";
35
+ import { StorageManagementClientOptionalParams } from "./models";
17
36
 
18
-
19
- class StorageManagementClient extends StorageManagementClientContext {
20
- // Operation groups
21
- operations: operations.Operations;
22
- skus: operations.Skus;
23
- storageAccounts: operations.StorageAccounts;
24
- usages: operations.Usages;
25
- managementPolicies: operations.ManagementPolicies;
26
- privateEndpointConnections: operations.PrivateEndpointConnections;
27
- privateLinkResources: operations.PrivateLinkResources;
28
- objectReplicationPolicies: operations.ObjectReplicationPoliciesOperations;
29
- encryptionScopes: operations.EncryptionScopes;
37
+ export class StorageManagementClient extends coreClient.ServiceClient {
38
+ $host: string;
39
+ apiVersion: string;
40
+ subscriptionId: string;
30
41
 
31
42
  /**
32
43
  * Initializes a new instance of the StorageManagementClient class.
33
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
34
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
35
- * more information about these credentials, see
36
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
37
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
38
- * @azure/ms-rest-browserauth are also supported.
44
+ * @param credentials Subscription credentials which uniquely identify client subscription.
39
45
  * @param subscriptionId The ID of the target subscription.
40
- * @param [options] The parameter options
46
+ * @param options The parameter options
41
47
  */
42
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) {
43
- super(credentials, subscriptionId, options);
44
- this.operations = new operations.Operations(this);
45
- this.skus = new operations.Skus(this);
46
- this.storageAccounts = new operations.StorageAccounts(this);
47
- this.usages = new operations.Usages(this);
48
- this.managementPolicies = new operations.ManagementPolicies(this);
49
- this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
50
- this.privateLinkResources = new operations.PrivateLinkResources(this);
51
- this.objectReplicationPolicies = new operations.ObjectReplicationPoliciesOperations(this);
52
- this.encryptionScopes = new operations.EncryptionScopes(this);
53
- }
54
- }
48
+ constructor(
49
+ credentials: coreAuth.TokenCredential,
50
+ subscriptionId: string,
51
+ options?: StorageManagementClientOptionalParams
52
+ ) {
53
+ if (credentials === undefined) {
54
+ throw new Error("'credentials' cannot be null");
55
+ }
56
+ if (subscriptionId === undefined) {
57
+ throw new Error("'subscriptionId' cannot be null");
58
+ }
59
+
60
+ // Initializing default values for options
61
+ if (!options) {
62
+ options = {};
63
+ }
64
+ const defaults: StorageManagementClientOptionalParams = {
65
+ requestContentType: "application/json; charset=utf-8",
66
+ credential: credentials
67
+ };
55
68
 
56
- // Operation Specifications
69
+ const packageDetails = `azsdk-js-arm-storage-profile-2020-09-01-hybrid/2.0.1`;
70
+ const userAgentPrefix =
71
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
72
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
73
+ : `${packageDetails}`;
57
74
 
58
- export {
59
- StorageManagementClient,
60
- StorageManagementClientContext,
61
- Models as StorageManagementModels,
62
- Mappers as StorageManagementMappers
63
- };
64
- export * from "./operations";
75
+ if (!options.credentialScopes) {
76
+ options.credentialScopes = ["https://management.azure.com/.default"];
77
+ }
78
+ const optionsWithDefaults = {
79
+ ...defaults,
80
+ ...options,
81
+ userAgentOptions: {
82
+ userAgentPrefix
83
+ },
84
+ baseUri: options.endpoint || "https://management.azure.com"
85
+ };
86
+ super(optionsWithDefaults);
87
+ // Parameter assignments
88
+ this.subscriptionId = subscriptionId;
89
+
90
+ // Assigning values to Constant parameters
91
+ this.$host = options.$host || "https://management.azure.com";
92
+ this.apiVersion = options.apiVersion || "2019-06-01";
93
+ this.operations = new OperationsImpl(this);
94
+ this.skus = new SkusImpl(this);
95
+ this.storageAccounts = new StorageAccountsImpl(this);
96
+ this.usages = new UsagesImpl(this);
97
+ this.managementPolicies = new ManagementPoliciesImpl(this);
98
+ this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);
99
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
100
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
101
+ this.objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsImpl(
102
+ this
103
+ );
104
+ this.encryptionScopes = new EncryptionScopesImpl(this);
105
+ }
106
+
107
+ operations: Operations;
108
+ skus: Skus;
109
+ storageAccounts: StorageAccounts;
110
+ usages: Usages;
111
+ managementPolicies: ManagementPolicies;
112
+ blobInventoryPolicies: BlobInventoryPolicies;
113
+ privateEndpointConnections: PrivateEndpointConnections;
114
+ privateLinkResources: PrivateLinkResources;
115
+ objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;
116
+ encryptionScopes: EncryptionScopes;
117
+ }
package/tsconfig.json CHANGED
@@ -3,17 +3,25 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6", "dom"],
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
13
16
  "declaration": true,
14
- "outDir": "./esm",
17
+ "outDir": "./dist-esm",
15
18
  "importHelpers": true
16
19
  },
17
- "include": ["./src/**/*.ts"],
18
- "exclude": ["node_modules"]
19
- }
20
+ "include": [
21
+ "./src/**/*.ts",
22
+ "./test/**/*.ts"
23
+ ],
24
+ "exclude": [
25
+ "node_modules"
26
+ ]
27
+ }