@azure/arm-storage-profile-2020-09-01-hybrid 2.0.1-alpha.20221128.1 → 2.1.1-alpha.20221223.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 (211) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/index.js +266 -53
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +60 -0
  9. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -0
  10. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +39 -0
  13. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -0
  14. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +39 -0
  17. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -0
  18. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +52 -0
  21. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -0
  22. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/encryptionScopesGetSample.js +39 -0
  25. package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/encryptionScopesListSample.js +52 -0
  29. package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -0
  30. package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +45 -0
  33. package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -0
  34. package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/encryptionScopesPutSample.js +40 -0
  37. package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -0
  38. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +225 -0
  41. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -0
  42. package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +39 -0
  45. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -0
  46. package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/managementPoliciesGetSample.js +39 -0
  49. package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -0
  50. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts +2 -0
  51. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  52. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +152 -0
  53. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -0
  54. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +39 -0
  57. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -0
  58. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +39 -0
  61. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -0
  62. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +52 -0
  65. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -0
  66. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/operationsListSample.js +51 -0
  69. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  71. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  72. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +39 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +39 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +52 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +45 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
  86. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts +2 -0
  87. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts.map +1 -0
  88. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +38 -0
  89. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -0
  90. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  91. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  92. package/dist-esm/samples-dev/skusListSample.js +50 -0
  93. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  94. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts +2 -0
  95. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts.map +1 -0
  96. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +40 -0
  97. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -0
  98. package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/storageAccountsCreateSample.js +61 -0
  101. package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -0
  102. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts +2 -0
  103. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts.map +1 -0
  104. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +38 -0
  105. package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -0
  106. package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts +2 -0
  107. package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +38 -0
  109. package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -0
  110. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts +2 -0
  111. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +56 -0
  113. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -0
  114. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts +2 -0
  115. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts.map +1 -0
  116. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +47 -0
  117. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -0
  118. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts +2 -0
  119. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts.map +1 -0
  120. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +51 -0
  121. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -0
  122. package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts +2 -0
  123. package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts.map +1 -0
  124. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +38 -0
  125. package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -0
  126. package/dist-esm/samples-dev/storageAccountsListSample.d.ts +2 -0
  127. package/dist-esm/samples-dev/storageAccountsListSample.d.ts.map +1 -0
  128. package/dist-esm/samples-dev/storageAccountsListSample.js +50 -0
  129. package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -0
  130. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts +2 -0
  131. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts.map +1 -0
  132. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +44 -0
  133. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -0
  134. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts +2 -0
  135. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts.map +1 -0
  136. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +62 -0
  137. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -0
  138. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts +2 -0
  139. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts.map +1 -0
  140. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +45 -0
  141. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -0
  142. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts +2 -0
  143. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts.map +1 -0
  144. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +38 -0
  145. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -0
  146. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts +2 -0
  147. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts.map +1 -0
  148. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +119 -0
  149. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -0
  150. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts +2 -0
  151. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts.map +1 -0
  152. package/dist-esm/samples-dev/usagesListByLocationSample.js +51 -0
  153. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -0
  154. package/dist-esm/src/index.d.ts +1 -0
  155. package/dist-esm/src/index.d.ts.map +1 -1
  156. package/dist-esm/src/index.js +1 -0
  157. package/dist-esm/src/index.js.map +1 -1
  158. package/dist-esm/src/models/index.d.ts +93 -16
  159. package/dist-esm/src/models/index.d.ts.map +1 -1
  160. package/dist-esm/src/models/index.js +77 -0
  161. package/dist-esm/src/models/index.js.map +1 -1
  162. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -1
  163. package/dist-esm/src/operations/blobInventoryPolicies.js +8 -4
  164. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
  165. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -1
  166. package/dist-esm/src/operations/encryptionScopes.js +19 -8
  167. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  168. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  169. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +8 -4
  170. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
  171. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  172. package/dist-esm/src/operations/operations.js +8 -4
  173. package/dist-esm/src/operations/operations.js.map +1 -1
  174. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  175. package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
  176. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  177. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  178. package/dist-esm/src/operations/skus.js +8 -4
  179. package/dist-esm/src/operations/skus.js.map +1 -1
  180. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  181. package/dist-esm/src/operations/storageAccounts.js +36 -15
  182. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  183. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  184. package/dist-esm/src/operations/usages.js +8 -4
  185. package/dist-esm/src/operations/usages.js.map +1 -1
  186. package/dist-esm/src/pagingHelper.d.ts +13 -0
  187. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  188. package/dist-esm/src/pagingHelper.js +32 -0
  189. package/dist-esm/src/pagingHelper.js.map +1 -0
  190. package/dist-esm/src/storageManagementClient.d.ts +2 -0
  191. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  192. package/dist-esm/src/storageManagementClient.js +54 -5
  193. package/dist-esm/src/storageManagementClient.js.map +1 -1
  194. package/dist-esm/test/sampleTest.js +11 -13
  195. package/dist-esm/test/sampleTest.js.map +1 -1
  196. package/package.json +24 -11
  197. package/review/arm-storage-profile-2020-09-01-hybrid.api.md +48 -103
  198. package/src/index.ts +1 -0
  199. package/src/models/index.ts +93 -16
  200. package/src/operations/blobInventoryPolicies.ts +17 -7
  201. package/src/operations/encryptionScopes.ts +27 -10
  202. package/src/operations/objectReplicationPoliciesOperations.ts +15 -5
  203. package/src/operations/operations.ts +10 -5
  204. package/src/operations/privateEndpointConnections.ts +15 -5
  205. package/src/operations/skus.ts +10 -5
  206. package/src/operations/storageAccounts.ts +45 -18
  207. package/src/operations/usages.ts +10 -5
  208. package/src/pagingHelper.ts +39 -0
  209. package/src/storageManagementClient.ts +70 -5
  210. package/tsconfig.json +8 -2
  211. package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +104 -16
@@ -0,0 +1,38 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the private link resources that need to be created for a storage account.
17
+ *
18
+ * @summary Gets the private link resources that need to be created for a storage account.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountListPrivateLinkResources.json
20
+ */
21
+ function storageAccountListPrivateLinkResources() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6977";
25
+ const accountName = "sto2527";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const result = yield client.privateLinkResources.listByStorageAccount(resourceGroupName, accountName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ storageAccountListPrivateLinkResources();
35
+ });
36
+ }
37
+ main().catch(console.error);
38
+ //# sourceMappingURL=privateLinkResourcesListByStorageAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByStorageAccountSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByStorageAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,oBAAoB,CACnE,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sCAAsC,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skusListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Lists the available SKUs supported by Microsoft.Storage for given subscription.
17
+ *
18
+ * @summary Lists the available SKUs supported by Microsoft.Storage for given subscription.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/SKUList.json
20
+ */
21
+ function skuList() {
22
+ var e_1, _a;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new StorageManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.skus.list()), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ function main() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ skuList();
47
+ });
48
+ }
49
+ main().catch(console.error);
50
+ //# sourceMappingURL=skusListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,OAAO;;;QACpB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA9B,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsCheckNameAvailabilitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsCheckNameAvailabilitySample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsCheckNameAvailabilitySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Checks that the storage account name is valid and is not already in use.
17
+ *
18
+ * @summary Checks that the storage account name is valid and is not already in use.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCheckNameAvailability.json
20
+ */
21
+ function storageAccountCheckNameAvailability() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const accountName = {
25
+ name: "sto3363",
26
+ type: "Microsoft.Storage/storageAccounts"
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new StorageManagementClient(credential, subscriptionId);
30
+ const result = yield client.storageAccounts.checkNameAvailability(accountName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ storageAccountCheckNameAvailability();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=storageAccountsCheckNameAvailabilitySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,WAAW,GAAkD;YACjE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,mCAAmC;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,qBAAqB,CAC/D,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mCAAmC,EAAE,CAAC;IACxC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
17
+ *
18
+ * @summary Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountCreate.json
20
+ */
21
+ function storageAccountCreate() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9101";
25
+ const accountName = "sto4445";
26
+ const parameters = {
27
+ allowBlobPublicAccess: false,
28
+ allowSharedKeyAccess: true,
29
+ encryption: {
30
+ keySource: "Microsoft.Storage",
31
+ requireInfrastructureEncryption: false,
32
+ services: {
33
+ blob: { enabled: true, keyType: "Account" },
34
+ file: { enabled: true, keyType: "Account" }
35
+ }
36
+ },
37
+ isHnsEnabled: true,
38
+ kind: "Storage",
39
+ location: "eastus",
40
+ minimumTlsVersion: "TLS1_2",
41
+ routingPreference: {
42
+ publishInternetEndpoints: true,
43
+ publishMicrosoftEndpoints: true,
44
+ routingChoice: "MicrosoftRouting"
45
+ },
46
+ sku: { name: "Standard_GRS" },
47
+ tags: { key1: "value1", key2: "value2" }
48
+ };
49
+ const credential = new DefaultAzureCredential();
50
+ const client = new StorageManagementClient(credential, subscriptionId);
51
+ const result = yield client.storageAccounts.beginCreateAndWait(resourceGroupName, accountName, parameters);
52
+ console.log(result);
53
+ });
54
+ }
55
+ function main() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ storageAccountCreate();
58
+ });
59
+ }
60
+ main().catch(console.error);
61
+ //# sourceMappingURL=storageAccountsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAmC;YACjD,qBAAqB,EAAE,KAAK;YAC5B,oBAAoB,EAAE,IAAI;YAC1B,UAAU,EAAE;gBACV,SAAS,EAAE,mBAAmB;gBAC9B,+BAA+B,EAAE,KAAK;gBACtC,QAAQ,EAAE;oBACR,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE;oBAC3C,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE;iBAC5C;aACF;YACD,YAAY,EAAE,IAAI;YAClB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,iBAAiB,EAAE,QAAQ;YAC3B,iBAAiB,EAAE;gBACjB,wBAAwB,EAAE,IAAI;gBAC9B,yBAAyB,EAAE,IAAI;gBAC/B,aAAa,EAAE,kBAAkB;aAClC;YACD,GAAG,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;YAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes a storage account in Microsoft Azure.
17
+ *
18
+ * @summary Deletes a storage account in Microsoft Azure.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountDelete.json
20
+ */
21
+ function storageAccountDelete() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
25
+ const accountName = "sto2434";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const result = yield client.storageAccounts.delete(resourceGroupName, accountName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ storageAccountDelete();
35
+ });
36
+ }
37
+ main().catch(console.error);
38
+ //# sourceMappingURL=storageAccountsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsFailoverSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsFailoverSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsFailoverSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover.
17
+ *
18
+ * @summary Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountFailover.json
20
+ */
21
+ function storageAccountFailover() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
25
+ const accountName = "sto2434";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const result = yield client.storageAccounts.beginFailoverAndWait(resourceGroupName, accountName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ storageAccountFailover();
35
+ });
36
+ }
37
+ main().catch(console.error);
38
+ //# sourceMappingURL=storageAccountsFailoverSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsFailoverSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsFailoverSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,oBAAoB,CAC9D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsGetPropertiesSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsGetPropertiesSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsGetPropertiesSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
17
+ *
18
+ * @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountGetProperties.json
20
+ */
21
+ function storageAccountGetProperties() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
25
+ const accountName = "sto8596";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const result = yield client.storageAccounts.getProperties(resourceGroupName, accountName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ /**
33
+ * This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
34
+ *
35
+ * @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
36
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountGetPropertiesCMKEnabled.json
37
+ */
38
+ function storageAccountGetPropertiesCmkEnabled() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
41
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
42
+ const accountName = "sto8596";
43
+ const credential = new DefaultAzureCredential();
44
+ const client = new StorageManagementClient(credential, subscriptionId);
45
+ const result = yield client.storageAccounts.getProperties(resourceGroupName, accountName);
46
+ console.log(result);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ storageAccountGetProperties();
52
+ storageAccountGetPropertiesCmkEnabled();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=storageAccountsGetPropertiesSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsGetPropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsGetPropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CACvD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,qCAAqC;;QAClD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CACvD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;QAC9B,qCAAqC,EAAE,CAAC;IAC1C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsListAccountSasSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListAccountSasSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsListAccountSasSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List SAS credentials of a storage account.
17
+ *
18
+ * @summary List SAS credentials of a storage account.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountListAccountSAS.json
20
+ */
21
+ function storageAccountListAccountSas() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res7985";
25
+ const accountName = "sto8588";
26
+ const parameters = {
27
+ keyToSign: "key1",
28
+ sharedAccessExpiryTime: new Date("2017-05-24T11:42:03.1567373Z"),
29
+ permissions: "r",
30
+ protocols: "https,http",
31
+ resourceTypes: "s",
32
+ services: "b",
33
+ sharedAccessStartTime: new Date("2017-05-24T10:42:03.1567373Z")
34
+ };
35
+ const credential = new DefaultAzureCredential();
36
+ const client = new StorageManagementClient(credential, subscriptionId);
37
+ const result = yield client.storageAccounts.listAccountSAS(resourceGroupName, accountName, parameters);
38
+ console.log(result);
39
+ });
40
+ }
41
+ function main() {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ storageAccountListAccountSas();
44
+ });
45
+ }
46
+ main().catch(console.error);
47
+ //# sourceMappingURL=storageAccountsListAccountSasSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListAccountSasSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListAccountSasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAyB;YACvC,SAAS,EAAE,MAAM;YACjB,sBAAsB,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;YAChE,WAAW,EAAE,GAAG;YAChB,SAAS,EAAE,YAAY;YACvB,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,GAAG;YACb,qBAAqB,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;SAChE,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,cAAc,CACxD,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
17
+ *
18
+ * @summary Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountListByResourceGroup.json
20
+ */
21
+ function storageAccountListByResourceGroup() {
22
+ var e_1, _a;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
25
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6117";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.storageAccounts.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ function main() {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ storageAccountListByResourceGroup();
48
+ });
49
+ }
50
+ main().catch(console.error);
51
+ //# sourceMappingURL=storageAccountsListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iCAAiC;;;QAC9C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iCAAiC,EAAE,CAAC;IACtC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsListKeysSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsListKeysSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage-profile-2020-09-01-hybrid";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
17
+ *
18
+ * @summary Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/examples/StorageAccountListKeys.json
20
+ */
21
+ function storageAccountListKeys() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res418";
25
+ const accountName = "sto2220";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new StorageManagementClient(credential, subscriptionId);
28
+ const result = yield client.storageAccounts.listKeys(resourceGroupName, accountName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ storageAccountListKeys();
35
+ });
36
+ }
37
+ main().catch(console.error);
38
+ //# sourceMappingURL=storageAccountsListKeysSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,QAAQ,CAAC;QAC5E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,QAAQ,CAClD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageAccountsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageAccountsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageAccountsListSample.ts"],"names":[],"mappings":""}