@azure/arm-storage 18.1.1-alpha.20230724.1 → 18.2.0-alpha.20230821.2

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 (262) hide show
  1. package/CHANGELOG.md +90 -57
  2. package/LICENSE +1 -1
  3. package/dist/index.js +519 -102
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js +11 -4
  8. package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js.map +1 -1
  9. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +15 -8
  10. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
  11. package/dist-esm/samples-dev/blobContainersCreateSample.js +19 -12
  12. package/dist-esm/samples-dev/blobContainersCreateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +12 -5
  14. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js.map +1 -1
  15. package/dist-esm/samples-dev/blobContainersDeleteSample.js +11 -4
  16. package/dist-esm/samples-dev/blobContainersDeleteSample.js.map +1 -1
  17. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +12 -5
  18. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
  19. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +11 -4
  20. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js.map +1 -1
  21. package/dist-esm/samples-dev/blobContainersGetSample.js +15 -8
  22. package/dist-esm/samples-dev/blobContainersGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/blobContainersLeaseSample.js +15 -8
  24. package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
  25. package/dist-esm/samples-dev/blobContainersListSample.js +15 -8
  26. package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
  27. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +12 -5
  28. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js.map +1 -1
  29. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +11 -4
  30. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js.map +1 -1
  31. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +15 -8
  32. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js.map +1 -1
  33. package/dist-esm/samples-dev/blobContainersUpdateSample.js +11 -4
  34. package/dist-esm/samples-dev/blobContainersUpdateSample.js.map +1 -1
  35. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +20 -13
  36. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +11 -4
  38. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +11 -4
  40. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +11 -4
  42. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +11 -4
  44. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js.map +1 -1
  45. package/dist-esm/samples-dev/blobServicesListSample.js +11 -4
  46. package/dist-esm/samples-dev/blobServicesListSample.js.map +1 -1
  47. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +19 -12
  48. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
  49. package/dist-esm/samples-dev/deletedAccountsGetSample.js +10 -3
  50. package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
  51. package/dist-esm/samples-dev/deletedAccountsListSample.js +10 -3
  52. package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
  53. package/dist-esm/samples-dev/encryptionScopesGetSample.js +12 -5
  54. package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/encryptionScopesListSample.js +12 -5
  56. package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -1
  57. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +12 -5
  58. package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -1
  59. package/dist-esm/samples-dev/encryptionScopesPutSample.js +17 -10
  60. package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -1
  61. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +11 -4
  62. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js.map +1 -1
  63. package/dist-esm/samples-dev/fileServicesListSample.js +11 -4
  64. package/dist-esm/samples-dev/fileServicesListSample.js.map +1 -1
  65. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +19 -12
  66. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
  67. package/dist-esm/samples-dev/fileSharesCreateSample.js +19 -12
  68. package/dist-esm/samples-dev/fileSharesCreateSample.js.map +1 -1
  69. package/dist-esm/samples-dev/fileSharesDeleteSample.js +11 -4
  70. package/dist-esm/samples-dev/fileSharesDeleteSample.js.map +1 -1
  71. package/dist-esm/samples-dev/fileSharesGetSample.js +15 -8
  72. package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
  73. package/dist-esm/samples-dev/fileSharesLeaseSample.js +15 -8
  74. package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
  75. package/dist-esm/samples-dev/fileSharesListSample.js +19 -12
  76. package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
  77. package/dist-esm/samples-dev/fileSharesRestoreSample.js +11 -4
  78. package/dist-esm/samples-dev/fileSharesRestoreSample.js.map +1 -1
  79. package/dist-esm/samples-dev/fileSharesUpdateSample.js +15 -8
  80. package/dist-esm/samples-dev/fileSharesUpdateSample.js.map +1 -1
  81. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +15 -8
  82. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
  83. package/dist-esm/samples-dev/localUsersDeleteSample.js +11 -4
  84. package/dist-esm/samples-dev/localUsersDeleteSample.js.map +1 -1
  85. package/dist-esm/samples-dev/localUsersGetSample.js +11 -4
  86. package/dist-esm/samples-dev/localUsersGetSample.js.map +1 -1
  87. package/dist-esm/samples-dev/localUsersListKeysSample.js +11 -4
  88. package/dist-esm/samples-dev/localUsersListKeysSample.js.map +1 -1
  89. package/dist-esm/samples-dev/localUsersListSample.js +11 -4
  90. package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
  91. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +11 -4
  92. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js.map +1 -1
  93. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +39 -32
  94. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
  95. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +11 -4
  96. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -1
  97. package/dist-esm/samples-dev/managementPoliciesGetSample.js +11 -4
  98. package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -1
  99. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +23 -16
  100. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
  101. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +11 -4
  102. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -1
  103. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +11 -4
  104. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -1
  105. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +11 -4
  106. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -1
  107. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  108. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  109. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  110. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  111. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  112. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  113. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
  114. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  115. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
  116. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  117. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +11 -4
  118. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -1
  119. package/dist-esm/samples-dev/queueCreateSample.js +15 -8
  120. package/dist-esm/samples-dev/queueCreateSample.js.map +1 -1
  121. package/dist-esm/samples-dev/queueDeleteSample.js +11 -4
  122. package/dist-esm/samples-dev/queueDeleteSample.js.map +1 -1
  123. package/dist-esm/samples-dev/queueGetSample.js +11 -4
  124. package/dist-esm/samples-dev/queueGetSample.js.map +1 -1
  125. package/dist-esm/samples-dev/queueListSample.js +11 -4
  126. package/dist-esm/samples-dev/queueListSample.js.map +1 -1
  127. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +11 -4
  128. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js.map +1 -1
  129. package/dist-esm/samples-dev/queueServicesListSample.js +11 -4
  130. package/dist-esm/samples-dev/queueServicesListSample.js.map +1 -1
  131. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -4
  132. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
  133. package/dist-esm/samples-dev/queueUpdateSample.js +11 -4
  134. package/dist-esm/samples-dev/queueUpdateSample.js.map +1 -1
  135. package/dist-esm/samples-dev/skusListSample.js +10 -3
  136. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  137. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +11 -4
  138. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
  139. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +10 -3
  140. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
  141. package/dist-esm/samples-dev/storageAccountsCreateSample.js +55 -48
  142. package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
  143. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +39 -0
  146. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -0
  147. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +11 -4
  148. package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -1
  149. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +15 -8
  150. package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
  151. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +58 -0
  154. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js.map +1 -0
  155. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +63 -16
  156. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
  157. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +11 -4
  158. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
  159. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +11 -4
  160. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
  161. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +11 -4
  162. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -1
  163. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +11 -4
  164. package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -1
  165. package/dist-esm/samples-dev/storageAccountsListSample.js +10 -3
  166. package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -1
  167. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +11 -4
  168. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
  169. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +15 -8
  170. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
  171. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +11 -4
  172. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
  173. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +11 -4
  174. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -1
  175. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +39 -32
  176. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
  177. package/dist-esm/samples-dev/tableCreateSample.js +15 -8
  178. package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
  179. package/dist-esm/samples-dev/tableDeleteSample.js +11 -4
  180. package/dist-esm/samples-dev/tableDeleteSample.js.map +1 -1
  181. package/dist-esm/samples-dev/tableGetSample.js +11 -4
  182. package/dist-esm/samples-dev/tableGetSample.js.map +1 -1
  183. package/dist-esm/samples-dev/tableListSample.js +11 -4
  184. package/dist-esm/samples-dev/tableListSample.js.map +1 -1
  185. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +11 -4
  186. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js.map +1 -1
  187. package/dist-esm/samples-dev/tableServicesListSample.js +11 -4
  188. package/dist-esm/samples-dev/tableServicesListSample.js.map +1 -1
  189. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -4
  190. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
  191. package/dist-esm/samples-dev/tableUpdateSample.js +15 -8
  192. package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
  193. package/dist-esm/samples-dev/usagesListByLocationSample.js +10 -3
  194. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
  195. package/dist-esm/src/lroImpl.d.ts +6 -11
  196. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  197. package/dist-esm/src/lroImpl.js +12 -20
  198. package/dist-esm/src/lroImpl.js.map +1 -1
  199. package/dist-esm/src/models/index.d.ts +213 -30
  200. package/dist-esm/src/models/index.d.ts.map +1 -1
  201. package/dist-esm/src/models/index.js +44 -0
  202. package/dist-esm/src/models/index.js.map +1 -1
  203. package/dist-esm/src/models/mappers.d.ts +6 -0
  204. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  205. package/dist-esm/src/models/mappers.js +220 -0
  206. package/dist-esm/src/models/mappers.js.map +1 -1
  207. package/dist-esm/src/models/parameters.d.ts +9 -6
  208. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  209. package/dist-esm/src/models/parameters.js +39 -10
  210. package/dist-esm/src/models/parameters.js.map +1 -1
  211. package/dist-esm/src/operations/blobContainers.d.ts +2 -2
  212. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
  213. package/dist-esm/src/operations/blobContainers.js +14 -16
  214. package/dist-esm/src/operations/blobContainers.js.map +1 -1
  215. package/dist-esm/src/operations/blobServices.js +1 -1
  216. package/dist-esm/src/operations/deletedAccounts.js +0 -1
  217. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  218. package/dist-esm/src/operations/encryptionScopes.js +0 -6
  219. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  220. package/dist-esm/src/operations/fileServices.js +1 -1
  221. package/dist-esm/src/operations/fileShares.js +1 -7
  222. package/dist-esm/src/operations/fileShares.js.map +1 -1
  223. package/dist-esm/src/operations/queue.js +0 -5
  224. package/dist-esm/src/operations/queue.js.map +1 -1
  225. package/dist-esm/src/operations/queueServices.js +1 -1
  226. package/dist-esm/src/operations/storageAccounts.d.ts +46 -7
  227. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  228. package/dist-esm/src/operations/storageAccounts.js +177 -30
  229. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  230. package/dist-esm/src/operations/tableOperations.js +2 -3
  231. package/dist-esm/src/operations/tableOperations.js.map +1 -1
  232. package/dist-esm/src/operations/tableServices.js +1 -1
  233. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +2 -2
  234. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -1
  235. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +47 -8
  236. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
  237. package/dist-esm/src/pagingHelper.d.ts +4 -4
  238. package/dist-esm/src/pagingHelper.js +4 -4
  239. package/dist-esm/src/storageManagementClient.js +2 -2
  240. package/package.json +6 -5
  241. package/review/arm-storage.api.md +115 -20
  242. package/src/lroImpl.ts +31 -23
  243. package/src/models/index.ts +235 -38
  244. package/src/models/mappers.ts +228 -0
  245. package/src/models/parameters.ts +42 -9
  246. package/src/operations/blobContainers.ts +19 -21
  247. package/src/operations/blobServices.ts +1 -1
  248. package/src/operations/deletedAccounts.ts +0 -1
  249. package/src/operations/encryptionScopes.ts +0 -6
  250. package/src/operations/fileServices.ts +1 -1
  251. package/src/operations/fileShares.ts +1 -7
  252. package/src/operations/queue.ts +0 -5
  253. package/src/operations/queueServices.ts +1 -1
  254. package/src/operations/storageAccounts.ts +240 -57
  255. package/src/operations/tableOperations.ts +2 -3
  256. package/src/operations/tableServices.ts +1 -1
  257. package/src/operationsInterfaces/blobContainers.ts +2 -2
  258. package/src/operationsInterfaces/storageAccounts.ts +68 -9
  259. package/src/pagingHelper.ts +4 -4
  260. package/src/storageManagementClient.ts +2 -2
  261. package/types/arm-storage.d.ts +282 -43
  262. package/types/tsdoc-metadata.json +1 -1
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the storage account.
15
17
  *
16
18
  * @summary Deletes the specified private endpoint connection associated with the storage account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountDeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountDeletePrivateEndpointConnection.json
18
20
  */
19
21
  function storageAccountDeletePrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res6977";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6977";
23
25
  const accountName = "sto2527";
24
26
  const privateEndpointConnectionName = "{privateEndpointConnectionName}";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function storageAccountDeletePrivateEndpointConnection() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- storageAccountDeletePrivateEndpointConnection().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ storageAccountDeletePrivateEndpointConnection();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,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,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,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,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,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,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the storage account.
15
17
  *
16
18
  * @summary Gets the specified private endpoint connection associated with the storage account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountGetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetPrivateEndpointConnection.json
18
20
  */
19
21
  function storageAccountGetPrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res6977";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6977";
23
25
  const accountName = "sto2527";
24
26
  const privateEndpointConnectionName = "{privateEndpointConnectionName}";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function storageAccountGetPrivateEndpointConnection() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- storageAccountGetPrivateEndpointConnection().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ storageAccountGetPrivateEndpointConnection();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,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,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to List all the private endpoint connections associated with the storage account.
15
17
  *
16
18
  * @summary List all the private endpoint connections associated with the storage account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountListPrivateEndpointConnections.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListPrivateEndpointConnections.json
18
20
  */
19
21
  function storageAccountListPrivateEndpointConnections() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "{subscription-id}";
23
- const resourceGroupName = "res6977";
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
25
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6977";
24
26
  const accountName = "sto2527";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -48,5 +50,10 @@ function storageAccountListPrivateEndpointConnections() {
48
50
  console.log(resArray);
49
51
  });
50
52
  }
51
- storageAccountListPrivateEndpointConnections().catch(console.error);
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ storageAccountListPrivateEndpointConnections();
56
+ });
57
+ }
58
+ main().catch(console.error);
52
59
  //# sourceMappingURL=privateEndpointConnectionsListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4CAA4C;;;QACzD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,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,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAC3D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,4CAA4C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4CAA4C;;;QACzD,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,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAC3D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Update the state of specified private endpoint connection associated with the storage account.
15
17
  *
16
18
  * @summary Update the state of specified private endpoint connection associated with the storage account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountPutPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountPutPrivateEndpointConnection.json
18
20
  */
19
21
  function storageAccountPutPrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res7687";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res7687";
23
25
  const accountName = "sto9699";
24
26
  const privateEndpointConnectionName = "{privateEndpointConnectionName}";
25
27
  const properties = {
@@ -34,5 +36,10 @@ function storageAccountPutPrivateEndpointConnection() {
34
36
  console.log(result);
35
37
  });
36
38
  }
37
- storageAccountPutPrivateEndpointConnection().catch(console.error);
39
+ function main() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ storageAccountPutPrivateEndpointConnection();
42
+ });
43
+ }
44
+ main().catch(console.error);
38
45
  //# sourceMappingURL=privateEndpointConnectionsPutSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsPutSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsPutSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsPutSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsPutSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,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,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the private link resources that need to be created for a storage account.
15
17
  *
16
18
  * @summary Gets the private link resources that need to be created for a storage account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountListPrivateLinkResources.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListPrivateLinkResources.json
18
20
  */
19
21
  function storageAccountListPrivateLinkResources() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res6977";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6977";
23
25
  const accountName = "sto2527";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function storageAccountListPrivateLinkResources() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- storageAccountListPrivateLinkResources().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ storageAccountListPrivateLinkResources();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=privateLinkResourcesListByStorageAccountSample.js.map
@@ -1 +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,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,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,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
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,oBAAoB,CAAC;AAC7D,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"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Creates a new queue with the specified queue name, under the specified account.
15
17
  *
16
18
  * @summary Creates a new queue with the specified queue name, under the specified account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationPut.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationPut.json
18
20
  */
19
21
  function queueOperationPut() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res3376";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
23
25
  const accountName = "sto328";
24
26
  const queueName = "queue6185";
25
27
  const queue = {};
@@ -29,17 +31,16 @@ function queueOperationPut() {
29
31
  console.log(result);
30
32
  });
31
33
  }
32
- queueOperationPut().catch(console.error);
33
34
  /**
34
35
  * This sample demonstrates how to Creates a new queue with the specified queue name, under the specified account.
35
36
  *
36
37
  * @summary Creates a new queue with the specified queue name, under the specified account.
37
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationPutWithMetadata.json
38
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationPutWithMetadata.json
38
39
  */
39
40
  function queueOperationPutWithMetadata() {
40
41
  return __awaiter(this, void 0, void 0, function* () {
41
- const subscriptionId = "{subscription-id}";
42
- const resourceGroupName = "res3376";
42
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
43
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
43
44
  const accountName = "sto328";
44
45
  const queueName = "queue6185";
45
46
  const queue = {
@@ -51,5 +52,11 @@ function queueOperationPutWithMetadata() {
51
52
  console.log(result);
52
53
  });
53
54
  }
54
- queueOperationPutWithMetadata().catch(console.error);
55
+ function main() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ queueOperationPut();
58
+ queueOperationPutWithMetadata();
59
+ });
60
+ }
61
+ main().catch(console.error);
55
62
  //# sourceMappingURL=queueCreateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueCreateSample.js","sourceRoot":"","sources":["../../samples-dev/queueCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEzC;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB;YAC1B,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;SACjD,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueCreateSample.js","sourceRoot":"","sources":["../../samples-dev/queueCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,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,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,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,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB;YAC1B,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE;SACjD,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;QACpB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Deletes the queue with the specified queue name, under the specified account if it exists.
15
17
  *
16
18
  * @summary Deletes the queue with the specified queue name, under the specified account if it exists.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationDelete.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationDelete.json
18
20
  */
19
21
  function queueOperationDelete() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res3376";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
23
25
  const accountName = "sto328";
24
26
  const queueName = "queue6185";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function queueOperationDelete() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- queueOperationDelete().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ queueOperationDelete();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=queueDeleteSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/queueDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/queueDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,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,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV,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"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the queue with the specified queue name, under the specified account if it exists.
15
17
  *
16
18
  * @summary Gets the queue with the specified queue name, under the specified account if it exists.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationGet.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationGet.json
18
20
  */
19
21
  function queueOperationGet() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res3376";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
23
25
  const accountName = "sto328";
24
26
  const queueName = "queue6185";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function queueOperationGet() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- queueOperationGet().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ queueOperationGet();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=queueGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueGetSample.js","sourceRoot":"","sources":["../../samples-dev/queueGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,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,KAAK,CAAC,GAAG,CACnC,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueGetSample.js","sourceRoot":"","sources":["../../samples-dev/queueGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,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,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,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,KAAK,CAAC,GAAG,CACnC,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets a list of all the queues under the specified storage account
15
17
  *
16
18
  * @summary Gets a list of all the queues under the specified storage account
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationList.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationList.json
18
20
  */
19
21
  function queueOperationList() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "{subscription-id}";
23
- const resourceGroupName = "res9290";
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
25
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9290";
24
26
  const accountName = "sto328";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -48,5 +50,10 @@ function queueOperationList() {
48
50
  console.log(resArray);
49
51
  });
50
52
  }
51
- queueOperationList().catch(console.error);
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ queueOperationList();
56
+ });
57
+ }
58
+ main().catch(console.error);
52
59
  //# sourceMappingURL=queueListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueListSample.js","sourceRoot":"","sources":["../../samples-dev/queueListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,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,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAA,IAAA;gBAAjD,cAAiD;gBAAjD,WAAiD;;oBAA7D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueListSample.js","sourceRoot":"","sources":["../../samples-dev/queueListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,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,QAAQ,CAAC;QAC7B,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,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAA,IAAA;gBAAjD,cAAiD;gBAAjD,WAAiD;;oBAA7D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
15
17
  *
16
18
  * @summary Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueServicesGet.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueServicesGet.json
18
20
  */
19
21
  function queueServicesGet() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res4410";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4410";
23
25
  const accountName = "sto8607";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function queueServicesGet() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- queueServicesGet().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ queueServicesGet();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=queueServicesGetServicePropertiesSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueServicesGetServicePropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesGetServicePropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,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,aAAa,CAAC,oBAAoB,CAC5D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueServicesGetServicePropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesGetServicePropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,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,aAAa,CAAC,oBAAoB,CAC5D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to List all queue services for the storage account
15
17
  *
16
18
  * @summary List all queue services for the storage account
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueServicesList.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueServicesList.json
18
20
  */
19
21
  function queueServicesList() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res9290";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9290";
23
25
  const accountName = "sto1590";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function queueServicesList() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- queueServicesList().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ queueServicesList();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=queueServicesListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueServicesListSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,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,aAAa,CAAC,IAAI,CAC5C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueServicesListSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,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,aAAa,CAAC,IAAI,CAC5C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
15
17
  *
16
18
  * @summary Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueServicesPut.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueServicesPut.json
18
20
  */
19
21
  function queueServicesPut() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res4410";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4410";
23
25
  const accountName = "sto8607";
24
26
  const parameters = {
25
27
  cors: {
@@ -65,5 +67,10 @@ function queueServicesPut() {
65
67
  console.log(result);
66
68
  });
67
69
  }
68
- queueServicesPut().catch(console.error);
70
+ function main() {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ queueServicesPut();
73
+ });
74
+ }
75
+ main().catch(console.error);
69
76
  //# sourceMappingURL=queueServicesSetServicePropertiesSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueServicesSetServicePropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesSetServicePropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAA2B;YACzC,IAAI,EAAE;gBACJ,SAAS,EAAE;oBACT;wBACE,cAAc,EAAE;4BACd,eAAe;4BACf,iBAAiB;4BACjB,mBAAmB;yBACpB;wBACD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC;wBAClE,cAAc,EAAE,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;wBACrE,cAAc,EAAE,CAAC,aAAa,CAAC;wBAC/B,eAAe,EAAE,GAAG;qBACrB;oBACD;wBACE,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,cAAc,EAAE,CAAC,KAAK,CAAC;wBACvB,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,eAAe,EAAE,CAAC;qBACnB;oBACD;wBACE,cAAc,EAAE,CAAC,2BAA2B,CAAC;wBAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;wBAC9B,cAAc,EAAE;4BACd,sBAAsB;4BACtB,4BAA4B;yBAC7B;wBACD,cAAc,EAAE;4BACd,eAAe;4BACf,iBAAiB;4BACjB,mBAAmB;yBACpB;wBACD,eAAe,EAAE,IAAI;qBACtB;iBACF;aACF;SACF,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,aAAa,CAAC,oBAAoB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueServicesSetServicePropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/queueServicesSetServicePropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,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,GAA2B;YACzC,IAAI,EAAE;gBACJ,SAAS,EAAE;oBACT;wBACE,cAAc,EAAE;4BACd,eAAe;4BACf,iBAAiB;4BACjB,mBAAmB;yBACpB;wBACD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC;wBAClE,cAAc,EAAE,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;wBACrE,cAAc,EAAE,CAAC,aAAa,CAAC;wBAC/B,eAAe,EAAE,GAAG;qBACrB;oBACD;wBACE,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,cAAc,EAAE,CAAC,KAAK,CAAC;wBACvB,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,cAAc,EAAE,CAAC,GAAG,CAAC;wBACrB,eAAe,EAAE,CAAC;qBACnB;oBACD;wBACE,cAAc,EAAE,CAAC,2BAA2B,CAAC;wBAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;wBAC9B,cAAc,EAAE;4BACd,sBAAsB;4BACtB,4BAA4B;yBAC7B;wBACD,cAAc,EAAE;4BACd,eAAe;4BACf,iBAAiB;4BACjB,mBAAmB;yBACpB;wBACD,eAAe,EAAE,IAAI;qBACtB;iBACF;aACF;SACF,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,aAAa,CAAC,oBAAoB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Creates a new queue with the specified queue name, under the specified account.
15
17
  *
16
18
  * @summary Creates a new queue with the specified queue name, under the specified account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/QueueOperationPatch.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/QueueOperationPatch.json
18
20
  */
19
21
  function queueOperationPatch() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "{subscription-id}";
22
- const resourceGroupName = "res3376";
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
24
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
23
25
  const accountName = "sto328";
24
26
  const queueName = "queue6185";
25
27
  const queue = {};
@@ -29,5 +31,10 @@ function queueOperationPatch() {
29
31
  console.log(result);
30
32
  });
31
33
  }
32
- queueOperationPatch().catch(console.error);
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ queueOperationPatch();
37
+ });
38
+ }
39
+ main().catch(console.error);
33
40
  //# sourceMappingURL=queueUpdateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queueUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/queueUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"queueUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/queueUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAgB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,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,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,KAAK,GAAiB,EAAE,CAAC;QAC/B,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,KAAK,CAAC,MAAM,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,CACN,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { StorageManagementClient } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists the available SKUs supported by Microsoft.Storage for given subscription.
15
17
  *
16
18
  * @summary Lists the available SKUs supported by Microsoft.Storage for given subscription.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/SKUList.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/SKUList.json
18
20
  */
19
21
  function skuList() {
20
22
  var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "{subscription-id}";
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
23
25
  const credential = new DefaultAzureCredential();
24
26
  const client = new StorageManagementClient(credential, subscriptionId);
25
27
  const resArray = new Array();
@@ -46,5 +48,10 @@ function skuList() {
46
48
  console.log(resArray);
47
49
  });
48
50
  }
49
- skuList().catch(console.error);
51
+ function main() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ skuList();
54
+ });
55
+ }
56
+ main().catch(console.error);
50
57
  //# sourceMappingURL=skusListSample.js.map