@azure/arm-storage 18.2.1-alpha.20240422.1 → 18.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/CHANGELOG.md +107 -17
  2. package/LICENSE +1 -1
  3. package/dist/index.js +9905 -7599
  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 +1 -1
  8. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +7 -11
  9. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
  10. package/dist-esm/samples-dev/blobContainersCreateSample.js +5 -5
  11. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +1 -1
  12. package/dist-esm/samples-dev/blobContainersDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +4 -4
  14. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
  15. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +1 -1
  16. package/dist-esm/samples-dev/blobContainersGetSample.js +2 -2
  17. package/dist-esm/samples-dev/blobContainersLeaseSample.js +5 -5
  18. package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
  19. package/dist-esm/samples-dev/blobContainersListSample.js +3 -3
  20. package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +1 -1
  22. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +1 -1
  23. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +3 -3
  24. package/dist-esm/samples-dev/blobContainersUpdateSample.js +2 -2
  25. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +34 -34
  26. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +1 -1
  29. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +1 -1
  30. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +1 -1
  31. package/dist-esm/samples-dev/blobServicesListSample.js +1 -1
  32. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +17 -17
  33. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
  34. package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
  35. package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
  36. package/dist-esm/samples-dev/encryptionScopesGetSample.js +1 -1
  37. package/dist-esm/samples-dev/encryptionScopesListSample.js +1 -1
  38. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +3 -3
  39. package/dist-esm/samples-dev/encryptionScopesPutSample.js +3 -3
  40. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +1 -1
  41. package/dist-esm/samples-dev/fileServicesListSample.js +1 -1
  42. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +17 -17
  43. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
  44. package/dist-esm/samples-dev/fileSharesCreateSample.js +3 -3
  45. package/dist-esm/samples-dev/fileSharesDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/fileSharesGetSample.js +3 -3
  47. package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
  48. package/dist-esm/samples-dev/fileSharesLeaseSample.js +5 -5
  49. package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
  50. package/dist-esm/samples-dev/fileSharesListSample.js +4 -4
  51. package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
  52. package/dist-esm/samples-dev/fileSharesRestoreSample.js +2 -2
  53. package/dist-esm/samples-dev/fileSharesUpdateSample.js +6 -6
  54. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +39 -10
  55. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
  56. package/dist-esm/samples-dev/localUsersDeleteSample.js +1 -1
  57. package/dist-esm/samples-dev/localUsersGetSample.js +1 -1
  58. package/dist-esm/samples-dev/localUsersListKeysSample.js +1 -1
  59. package/dist-esm/samples-dev/localUsersListSample.js +38 -2
  60. package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
  61. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +1 -1
  62. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +85 -85
  63. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +1 -1
  64. package/dist-esm/samples-dev/managementPoliciesGetSample.js +1 -1
  65. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
  66. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +40 -0
  68. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
  69. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts +2 -0
  70. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js +55 -0
  72. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js.map +1 -0
  73. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
  74. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +40 -0
  76. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
  77. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +19 -19
  78. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
  79. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +1 -1
  80. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +1 -1
  81. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +1 -1
  82. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  83. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  84. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  85. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  86. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
  87. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  88. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +1 -1
  89. package/dist-esm/samples-dev/queueCreateSample.js +3 -3
  90. package/dist-esm/samples-dev/queueDeleteSample.js +1 -1
  91. package/dist-esm/samples-dev/queueGetSample.js +1 -1
  92. package/dist-esm/samples-dev/queueListSample.js +1 -1
  93. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +1 -1
  94. package/dist-esm/samples-dev/queueServicesListSample.js +1 -1
  95. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -11
  96. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
  97. package/dist-esm/samples-dev/queueUpdateSample.js +1 -1
  98. package/dist-esm/samples-dev/skusListSample.js +1 -1
  99. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +1 -1
  100. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
  101. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +3 -3
  102. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
  103. package/dist-esm/samples-dev/storageAccountsCreateSample.js +66 -65
  104. package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
  105. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +2 -2
  106. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -1
  107. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +1 -1
  108. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +2 -2
  109. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +2 -2
  110. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +7 -7
  111. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
  112. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +1 -1
  113. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
  114. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +3 -3
  115. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
  116. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +1 -1
  117. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +1 -1
  118. package/dist-esm/samples-dev/storageAccountsListSample.js +1 -1
  119. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +3 -3
  120. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
  121. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +5 -5
  122. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
  123. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +4 -4
  124. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
  125. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +1 -1
  126. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +55 -54
  127. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
  128. package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.js +56 -0
  131. package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.js.map +1 -0
  132. package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.js +89 -0
  135. package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.js.map +1 -0
  136. package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.js +40 -0
  139. package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.js.map +1 -0
  140. package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.js +40 -0
  143. package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.js.map +1 -0
  144. package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.js +55 -0
  147. package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.js.map +1 -0
  148. package/dist-esm/samples-dev/storageTaskAssignmentsListSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/storageTaskAssignmentsListSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/storageTaskAssignmentsListSample.js +55 -0
  151. package/dist-esm/samples-dev/storageTaskAssignmentsListSample.js.map +1 -0
  152. package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.js +54 -0
  155. package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.js.map +1 -0
  156. package/dist-esm/samples-dev/tableCreateSample.js +9 -9
  157. package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
  158. package/dist-esm/samples-dev/tableDeleteSample.js +1 -1
  159. package/dist-esm/samples-dev/tableGetSample.js +1 -1
  160. package/dist-esm/samples-dev/tableListSample.js +1 -1
  161. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +1 -1
  162. package/dist-esm/samples-dev/tableServicesListSample.js +1 -1
  163. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -11
  164. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
  165. package/dist-esm/samples-dev/tableUpdateSample.js +9 -9
  166. package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
  167. package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
  168. package/dist-esm/src/lroImpl.js +1 -1
  169. package/dist-esm/src/models/index.d.ts +2634 -1975
  170. package/dist-esm/src/models/index.d.ts.map +1 -1
  171. package/dist-esm/src/models/index.js +225 -149
  172. package/dist-esm/src/models/index.js.map +1 -1
  173. package/dist-esm/src/models/mappers.d.ts +75 -42
  174. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  175. package/dist-esm/src/models/mappers.js +5262 -4221
  176. package/dist-esm/src/models/mappers.js.map +1 -1
  177. package/dist-esm/src/models/parameters.d.ts +43 -37
  178. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  179. package/dist-esm/src/models/parameters.js +389 -335
  180. package/dist-esm/src/models/parameters.js.map +1 -1
  181. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
  182. package/dist-esm/src/operations/blobContainers.js +101 -101
  183. package/dist-esm/src/operations/blobContainers.js.map +1 -1
  184. package/dist-esm/src/operations/blobInventoryPolicies.js +28 -28
  185. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
  186. package/dist-esm/src/operations/blobServices.js +19 -19
  187. package/dist-esm/src/operations/blobServices.js.map +1 -1
  188. package/dist-esm/src/operations/deletedAccounts.js +15 -15
  189. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  190. package/dist-esm/src/operations/encryptionScopes.js +38 -38
  191. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  192. package/dist-esm/src/operations/fileServices.js +21 -21
  193. package/dist-esm/src/operations/fileServices.js.map +1 -1
  194. package/dist-esm/src/operations/fileShares.js +62 -62
  195. package/dist-esm/src/operations/fileShares.js.map +1 -1
  196. package/dist-esm/src/operations/index.d.ts +10 -6
  197. package/dist-esm/src/operations/index.d.ts.map +1 -1
  198. package/dist-esm/src/operations/index.js +10 -6
  199. package/dist-esm/src/operations/index.js.map +1 -1
  200. package/dist-esm/src/operations/localUsersOperations.d.ts +2 -1
  201. package/dist-esm/src/operations/localUsersOperations.d.ts.map +1 -1
  202. package/dist-esm/src/operations/localUsersOperations.js +49 -43
  203. package/dist-esm/src/operations/localUsersOperations.js.map +1 -1
  204. package/dist-esm/src/operations/managementPolicies.js +17 -17
  205. package/dist-esm/src/operations/managementPolicies.js.map +1 -1
  206. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +73 -0
  207. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  208. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +256 -0
  209. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  210. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  211. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +28 -28
  212. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
  213. package/dist-esm/src/operations/operations.js +4 -4
  214. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  215. package/dist-esm/src/operations/privateEndpointConnections.js +29 -29
  216. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  217. package/dist-esm/src/operations/privateLinkResources.js +5 -5
  218. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  219. package/dist-esm/src/operations/queue.js +42 -42
  220. package/dist-esm/src/operations/queue.js.map +1 -1
  221. package/dist-esm/src/operations/queueServices.js +21 -21
  222. package/dist-esm/src/operations/queueServices.js.map +1 -1
  223. package/dist-esm/src/operations/skus.js +4 -4
  224. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  225. package/dist-esm/src/operations/storageAccounts.js +132 -132
  226. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  227. package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.d.ts +53 -0
  228. package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.d.ts.map +1 -0
  229. package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.js +177 -0
  230. package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.js.map +1 -0
  231. package/dist-esm/src/operations/storageTaskAssignments.d.ts +141 -0
  232. package/dist-esm/src/operations/storageTaskAssignments.d.ts.map +1 -0
  233. package/dist-esm/src/operations/storageTaskAssignments.js +518 -0
  234. package/dist-esm/src/operations/storageTaskAssignments.js.map +1 -0
  235. package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.d.ts +44 -0
  236. package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.d.ts.map +1 -0
  237. package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.js +160 -0
  238. package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.js.map +1 -0
  239. package/dist-esm/src/operations/tableOperations.js +41 -41
  240. package/dist-esm/src/operations/tableOperations.js.map +1 -1
  241. package/dist-esm/src/operations/tableServices.js +20 -20
  242. package/dist-esm/src/operations/tableServices.js.map +1 -1
  243. package/dist-esm/src/operations/usages.js +5 -5
  244. package/dist-esm/src/operations/usages.js.map +1 -1
  245. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -6
  246. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  247. package/dist-esm/src/operationsInterfaces/index.js +10 -6
  248. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  249. package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts +2 -1
  250. package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts.map +1 -1
  251. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +53 -0
  252. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  253. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  254. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  255. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.d.ts +18 -0
  256. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.d.ts.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.js +9 -0
  258. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.js.map +1 -0
  259. package/dist-esm/src/operationsInterfaces/storageTaskAssignments.d.ts +112 -0
  260. package/dist-esm/src/operationsInterfaces/storageTaskAssignments.d.ts.map +1 -0
  261. package/dist-esm/src/operationsInterfaces/storageTaskAssignments.js +9 -0
  262. package/dist-esm/src/operationsInterfaces/storageTaskAssignments.js.map +1 -0
  263. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.d.ts +15 -0
  264. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.d.ts.map +1 -0
  265. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.js +9 -0
  266. package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.js.map +1 -0
  267. package/dist-esm/src/storageManagementClient.d.ts +11 -7
  268. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  269. package/dist-esm/src/storageManagementClient.js +24 -16
  270. package/dist-esm/src/storageManagementClient.js.map +1 -1
  271. package/dist-esm/test/storage_examples.d.ts.map +1 -1
  272. package/dist-esm/test/storage_examples.js +6 -5
  273. package/dist-esm/test/storage_examples.js.map +1 -1
  274. package/package.json +11 -11
  275. package/review/arm-storage.api.md +470 -4
  276. package/src/lroImpl.ts +3 -3
  277. package/src/models/index.ts +3163 -2397
  278. package/src/models/mappers.ts +4188 -3072
  279. package/src/models/parameters.ts +437 -374
  280. package/src/operations/blobContainers.ts +179 -193
  281. package/src/operations/blobInventoryPolicies.ts +46 -50
  282. package/src/operations/blobServices.ts +34 -37
  283. package/src/operations/deletedAccounts.ts +26 -28
  284. package/src/operations/encryptionScopes.ts +59 -63
  285. package/src/operations/fileServices.ts +31 -34
  286. package/src/operations/fileShares.ts +92 -99
  287. package/src/operations/index.ts +10 -6
  288. package/src/operations/localUsersOperations.ts +73 -73
  289. package/src/operations/managementPolicies.ts +27 -30
  290. package/src/operations/networkSecurityPerimeterConfigurations.ts +343 -0
  291. package/src/operations/objectReplicationPoliciesOperations.ts +48 -51
  292. package/src/operations/operations.ts +9 -9
  293. package/src/operations/privateEndpointConnections.ts +49 -52
  294. package/src/operations/privateLinkResources.ts +9 -10
  295. package/src/operations/queue.ts +66 -71
  296. package/src/operations/queueServices.ts +31 -34
  297. package/src/operations/skus.ts +8 -8
  298. package/src/operations/storageAccounts.ts +249 -272
  299. package/src/operations/storageTaskAssignmentInstancesReport.ts +240 -0
  300. package/src/operations/storageTaskAssignments.ts +700 -0
  301. package/src/operations/storageTaskAssignmentsInstancesReport.ts +205 -0
  302. package/src/operations/tableOperations.ts +65 -70
  303. package/src/operations/tableServices.ts +30 -33
  304. package/src/operations/usages.ts +12 -13
  305. package/src/operationsInterfaces/blobContainers.ts +16 -16
  306. package/src/operationsInterfaces/blobInventoryPolicies.ts +5 -5
  307. package/src/operationsInterfaces/blobServices.ts +4 -4
  308. package/src/operationsInterfaces/deletedAccounts.ts +3 -3
  309. package/src/operationsInterfaces/encryptionScopes.ts +5 -5
  310. package/src/operationsInterfaces/fileServices.ts +4 -4
  311. package/src/operationsInterfaces/fileShares.ts +8 -8
  312. package/src/operationsInterfaces/index.ts +10 -6
  313. package/src/operationsInterfaces/localUsersOperations.ts +9 -8
  314. package/src/operationsInterfaces/managementPolicies.ts +4 -4
  315. package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +93 -0
  316. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +5 -5
  317. package/src/operationsInterfaces/operations.ts +1 -1
  318. package/src/operationsInterfaces/privateEndpointConnections.ts +5 -5
  319. package/src/operationsInterfaces/privateLinkResources.ts +2 -2
  320. package/src/operationsInterfaces/queue.ts +6 -6
  321. package/src/operationsInterfaces/queueServices.ts +4 -4
  322. package/src/operationsInterfaces/skus.ts +1 -1
  323. package/src/operationsInterfaces/storageAccounts.ts +25 -25
  324. package/src/operationsInterfaces/storageTaskAssignmentInstancesReport.ts +35 -0
  325. package/src/operationsInterfaces/storageTaskAssignments.ts +191 -0
  326. package/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.ts +31 -0
  327. package/src/operationsInterfaces/tableOperations.ts +6 -6
  328. package/src/operationsInterfaces/tableServices.ts +4 -4
  329. package/src/operationsInterfaces/usages.ts +1 -1
  330. package/src/pagingHelper.ts +1 -1
  331. package/src/storageManagementClient.ts +63 -44
  332. package/types/arm-storage.d.ts +958 -30
  333. package/types/tsdoc-metadata.json +1 -1
@@ -8,7 +8,7 @@
8
8
  import { __awaiter } from "tslib";
9
9
  // Copyright (c) Microsoft Corporation.
10
10
  // Licensed under the MIT License.
11
- import { StorageManagementClient } from "@azure/arm-storage";
11
+ import { StorageManagementClient, } from "@azure/arm-storage";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
13
  import * as dotenv from "dotenv";
14
14
  dotenv.config();
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
17
17
  *
18
18
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
19
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountEnableAD.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableAD.json
20
20
  */
21
21
  function storageAccountEnableAd() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -33,10 +33,10 @@ function storageAccountEnableAd() {
33
33
  domainSid: "S-1-5-21-2400535526-2334094090-2402026252",
34
34
  forestName: "adtest.com",
35
35
  netBiosDomainName: "adtest.com",
36
- samAccountName: "sam12498"
36
+ samAccountName: "sam12498",
37
37
  },
38
- directoryServiceOptions: "AD"
39
- }
38
+ directoryServiceOptions: "AD",
39
+ },
40
40
  };
41
41
  const credential = new DefaultAzureCredential();
42
42
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -48,7 +48,7 @@ function storageAccountEnableAd() {
48
48
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
49
49
  *
50
50
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
51
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountEnableCMK.json
51
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableCMK.json
52
52
  */
53
53
  function storageAccountEnableCmk() {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -61,13 +61,13 @@ function storageAccountEnableCmk() {
61
61
  keyVaultProperties: {
62
62
  keyName: "wrappingKey",
63
63
  keyVaultUri: "https://myvault8569.vault.azure.net",
64
- keyVersion: ""
64
+ keyVersion: "",
65
65
  },
66
66
  services: {
67
67
  blob: { enabled: true, keyType: "Account" },
68
- file: { enabled: true, keyType: "Account" }
69
- }
70
- }
68
+ file: { enabled: true, keyType: "Account" },
69
+ },
70
+ },
71
71
  };
72
72
  const credential = new DefaultAzureCredential();
73
73
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -79,7 +79,7 @@ function storageAccountEnableCmk() {
79
79
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
80
80
  *
81
81
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
82
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdate.json
82
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdate.json
83
83
  */
84
84
  function storageAccountUpdate() {
85
85
  return __awaiter(this, void 0, void 0, function* () {
@@ -90,12 +90,13 @@ function storageAccountUpdate() {
90
90
  allowBlobPublicAccess: false,
91
91
  allowSharedKeyAccess: true,
92
92
  defaultToOAuthAuthentication: false,
93
+ enableExtendedGroups: true,
93
94
  encryption: {
94
95
  keySource: "Microsoft.Storage",
95
96
  services: {
96
97
  blob: { enabled: true, keyType: "Account" },
97
- file: { enabled: true, keyType: "Account" }
98
- }
98
+ file: { enabled: true, keyType: "Account" },
99
+ },
99
100
  },
100
101
  isLocalUserEnabled: true,
101
102
  isSftpEnabled: true,
@@ -106,16 +107,16 @@ function storageAccountUpdate() {
106
107
  resourceAccessRules: [
107
108
  {
108
109
  resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
109
- tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
110
- }
111
- ]
110
+ tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
111
+ },
112
+ ],
112
113
  },
113
114
  routingPreference: {
114
115
  publishInternetEndpoints: true,
115
116
  publishMicrosoftEndpoints: true,
116
- routingChoice: "MicrosoftRouting"
117
+ routingChoice: "MicrosoftRouting",
117
118
  },
118
- sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
119
+ sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
119
120
  };
120
121
  const credential = new DefaultAzureCredential();
121
122
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -127,7 +128,7 @@ function storageAccountUpdate() {
127
128
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
128
129
  *
129
130
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
130
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json
131
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json
131
132
  */
132
133
  function storageAccountUpdateAllowedCopyScopeToAad() {
133
134
  return __awaiter(this, void 0, void 0, function* () {
@@ -142,8 +143,8 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
142
143
  keySource: "Microsoft.Storage",
143
144
  services: {
144
145
  blob: { enabled: true, keyType: "Account" },
145
- file: { enabled: true, keyType: "Account" }
146
- }
146
+ file: { enabled: true, keyType: "Account" },
147
+ },
147
148
  },
148
149
  keyPolicy: { keyExpirationPeriodInDays: 20 },
149
150
  minimumTlsVersion: "TLS1_2",
@@ -152,16 +153,16 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
152
153
  resourceAccessRules: [
153
154
  {
154
155
  resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
155
- tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
156
- }
157
- ]
156
+ tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
157
+ },
158
+ ],
158
159
  },
159
160
  routingPreference: {
160
161
  publishInternetEndpoints: true,
161
162
  publishMicrosoftEndpoints: true,
162
- routingChoice: "MicrosoftRouting"
163
+ routingChoice: "MicrosoftRouting",
163
164
  },
164
- sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
165
+ sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
165
166
  };
166
167
  const credential = new DefaultAzureCredential();
167
168
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -173,7 +174,7 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
173
174
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
174
175
  *
175
176
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
176
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json
177
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json
177
178
  */
178
179
  function storageAccountUpdateDisablePublicNetworkAccess() {
179
180
  return __awaiter(this, void 0, void 0, function* () {
@@ -187,8 +188,8 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
187
188
  keySource: "Microsoft.Storage",
188
189
  services: {
189
190
  blob: { enabled: true, keyType: "Account" },
190
- file: { enabled: true, keyType: "Account" }
191
- }
191
+ file: { enabled: true, keyType: "Account" },
192
+ },
192
193
  },
193
194
  keyPolicy: { keyExpirationPeriodInDays: 20 },
194
195
  minimumTlsVersion: "TLS1_2",
@@ -197,17 +198,17 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
197
198
  resourceAccessRules: [
198
199
  {
199
200
  resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
200
- tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
201
- }
202
- ]
201
+ tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
202
+ },
203
+ ],
203
204
  },
204
205
  publicNetworkAccess: "Disabled",
205
206
  routingPreference: {
206
207
  publishInternetEndpoints: true,
207
208
  publishMicrosoftEndpoints: true,
208
- routingChoice: "MicrosoftRouting"
209
+ routingChoice: "MicrosoftRouting",
209
210
  },
210
- sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
211
+ sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
211
212
  };
212
213
  const credential = new DefaultAzureCredential();
213
214
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -219,7 +220,7 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
219
220
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
220
221
  *
221
222
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
222
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json
223
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json
223
224
  */
224
225
  function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
225
226
  return __awaiter(this, void 0, void 0, function* () {
@@ -229,27 +230,27 @@ function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
229
230
  const parameters = {
230
231
  encryption: {
231
232
  encryptionIdentity: {
232
- encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}"
233
+ encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}",
233
234
  },
234
235
  keySource: "Microsoft.Keyvault",
235
236
  keyVaultProperties: {
236
237
  keyName: "wrappingKey",
237
238
  keyVaultUri: "https://myvault8569.vault.azure.net",
238
- keyVersion: ""
239
+ keyVersion: "",
239
240
  },
240
241
  services: {
241
242
  blob: { enabled: true, keyType: "Account" },
242
- file: { enabled: true, keyType: "Account" }
243
- }
243
+ file: { enabled: true, keyType: "Account" },
244
+ },
244
245
  },
245
246
  identity: {
246
247
  type: "UserAssigned",
247
248
  userAssignedIdentities: {
248
- "/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {}
249
- }
249
+ "/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {},
250
+ },
250
251
  },
251
252
  kind: "Storage",
252
- sku: { name: "Standard_LRS" }
253
+ sku: { name: "Standard_LRS" },
253
254
  };
254
255
  const credential = new DefaultAzureCredential();
255
256
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -261,7 +262,7 @@ function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
261
262
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
262
263
  *
263
264
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
264
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json
265
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json
265
266
  */
266
267
  function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId() {
267
268
  return __awaiter(this, void 0, void 0, function* () {
@@ -272,27 +273,27 @@ function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId()
272
273
  encryption: {
273
274
  encryptionIdentity: {
274
275
  encryptionFederatedIdentityClientId: "3109d1c4-a5de-4d84-8832-feabb916a4b6",
275
- encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}"
276
+ encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}",
276
277
  },
277
278
  keySource: "Microsoft.Keyvault",
278
279
  keyVaultProperties: {
279
280
  keyName: "wrappingKey",
280
281
  keyVaultUri: "https://myvault8569.vault.azure.net",
281
- keyVersion: ""
282
+ keyVersion: "",
282
283
  },
283
284
  services: {
284
285
  blob: { enabled: true, keyType: "Account" },
285
- file: { enabled: true, keyType: "Account" }
286
- }
286
+ file: { enabled: true, keyType: "Account" },
287
+ },
287
288
  },
288
289
  identity: {
289
290
  type: "UserAssigned",
290
291
  userAssignedIdentities: {
291
- "/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {}
292
- }
292
+ "/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {},
293
+ },
293
294
  },
294
295
  kind: "Storage",
295
- sku: { name: "Standard_LRS" }
296
+ sku: { name: "Standard_LRS" },
296
297
  };
297
298
  const credential = new DefaultAzureCredential();
298
299
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -304,7 +305,7 @@ function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId()
304
305
  * This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
305
306
  *
306
307
  * @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
307
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json
308
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json
308
309
  */
309
310
  function storageAccountUpdateWithImmutabilityPolicy() {
310
311
  return __awaiter(this, void 0, void 0, function* () {
@@ -317,9 +318,9 @@ function storageAccountUpdateWithImmutabilityPolicy() {
317
318
  immutabilityPolicy: {
318
319
  allowProtectedAppendWrites: true,
319
320
  immutabilityPeriodSinceCreationInDays: 15,
320
- state: "Locked"
321
- }
322
- }
321
+ state: "Locked",
322
+ },
323
+ },
323
324
  };
324
325
  const credential = new DefaultAzureCredential();
325
326
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -1 +1 @@
1
- {"version":3,"file":"storageAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsUpdateSample.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,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,GAAmC;YACjD,qCAAqC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AAC;QACjD,yDAAyD,EAAE,CAAC;QAC5D,qEAAqE,EAAE,CAAC;QACxE,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"storageAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,GACxB,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,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,GAAmC;YACjD,qCAAqC,EAAE;gBACrC,yBAAyB,EAAE;oBACzB,WAAW,EAAE,MAAM;oBACnB,eAAe,EAAE,gDAAgD;oBACjE,UAAU,EAAE,sCAAsC;oBAClD,UAAU,EAAE,YAAY;oBACxB,SAAS,EAAE,2CAA2C;oBACtD,UAAU,EAAE,YAAY;oBACxB,iBAAiB,EAAE,YAAY;oBAC/B,cAAc,EAAE,UAAU;iBAC3B;gBACD,uBAAuB,EAAE,IAAI;aAC9B;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,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,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,8BAA8B,EAAE;gBAC9B,OAAO,EAAE,IAAI;gBACb,kBAAkB,EAAE;oBAClB,0BAA0B,EAAE,IAAI;oBAChC,qCAAqC,EAAE,EAAE;oBACzC,KAAK,EAAE,QAAQ;iBAChB;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,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;QACzB,uBAAuB,EAAE,CAAC;QAC1B,oBAAoB,EAAE,CAAC;QACvB,yCAAyC,EAAE,CAAC;QAC5C,8CAA8C,EAAE,CAAC;QACjD,yDAAyD,EAAE,CAAC;QAC5D,qEAAqE,EAAE,CAAC;QACxE,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageTaskAssignmentInstancesReportListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentInstancesReportListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentInstancesReportListSample.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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { StorageManagementClient } from "@azure/arm-storage";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Fetch the report summary of a single storage task assignment's instances
17
+ *
18
+ * @summary Fetch the report summary of a single storage task assignment's instances
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json
20
+ */
21
+ function listStorageTaskAssignmentInstancesReportSummary() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ var _a, e_1, _b, _c;
24
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
25
+ "1f31ba14-ce16-4281-b9b4-3e78da6e1616";
26
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
27
+ const accountName = "sto4445";
28
+ const storageTaskAssignmentName = "myassignment1";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new StorageManagementClient(credential, subscriptionId);
31
+ const resArray = new Array();
32
+ try {
33
+ for (var _d = true, _e = __asyncValues(client.storageTaskAssignmentInstancesReport.list(resourceGroupName, accountName, storageTaskAssignmentName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
34
+ _c = _f.value;
35
+ _d = false;
36
+ let item = _c;
37
+ resArray.push(item);
38
+ }
39
+ }
40
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
41
+ finally {
42
+ try {
43
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
44
+ }
45
+ finally { if (e_1) throw e_1.error; }
46
+ }
47
+ console.log(resArray);
48
+ });
49
+ }
50
+ function main() {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ listStorageTaskAssignmentInstancesReportSummary();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=storageTaskAssignmentInstancesReportListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentInstancesReportListSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentInstancesReportListSample.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,+CAA+C;;;QAC5D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,yBAAyB,GAAG,eAAe,CAAC;QAClD,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,oCAAoC,CAAC,IAAI,CACrE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,CAC1B,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;IACpD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageTaskAssignmentsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,89 @@
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";
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 task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment 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 task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment 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/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json
20
+ */
21
+ function putStorageTaskAssignment() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
24
+ "1f31ba14-ce16-4281-b9b4-3e78da6e1616";
25
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
26
+ const accountName = "sto4445";
27
+ const storageTaskAssignmentName = "myassignment1";
28
+ const parameters = {
29
+ properties: {
30
+ description: "My Storage task assignment",
31
+ enabled: true,
32
+ executionContext: {
33
+ target: { excludePrefix: [], prefix: ["prefix1", "prefix2"] },
34
+ trigger: {
35
+ type: "RunOnce",
36
+ parameters: { startOn: new Date("2022-11-15T21:52:47.8145095Z") },
37
+ },
38
+ },
39
+ report: { prefix: "container1" },
40
+ taskId: "/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1",
41
+ },
42
+ };
43
+ const credential = new DefaultAzureCredential();
44
+ const client = new StorageManagementClient(credential, subscriptionId);
45
+ const result = yield client.storageTaskAssignments.beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters);
46
+ console.log(result);
47
+ });
48
+ }
49
+ /**
50
+ * This sample demonstrates how to Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
51
+ *
52
+ * @summary Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
53
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json
54
+ */
55
+ function putStorageTaskAssignmentRequiredProperties() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
58
+ "1f31ba14-ce16-4281-b9b4-3e78da6e1616";
59
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
60
+ const accountName = "sto4445";
61
+ const storageTaskAssignmentName = "myassignment1";
62
+ const parameters = {
63
+ properties: {
64
+ description: "My Storage task assignment",
65
+ enabled: true,
66
+ executionContext: {
67
+ trigger: {
68
+ type: "RunOnce",
69
+ parameters: { startOn: new Date("2022-11-15T21:52:47.8145095Z") },
70
+ },
71
+ },
72
+ report: { prefix: "container1" },
73
+ taskId: "/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1",
74
+ },
75
+ };
76
+ const credential = new DefaultAzureCredential();
77
+ const client = new StorageManagementClient(credential, subscriptionId);
78
+ const result = yield client.storageTaskAssignments.beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters);
79
+ console.log(result);
80
+ });
81
+ }
82
+ function main() {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ putStorageTaskAssignment();
85
+ putStorageTaskAssignmentRequiredProperties();
86
+ });
87
+ }
88
+ main().catch(console.error);
89
+ //# sourceMappingURL=storageTaskAssignmentsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,GACxB,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,wBAAwB;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QAC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E;gBACV,WAAW,EAAE,4BAA4B;gBACzC,OAAO,EAAE,IAAI;gBACb,gBAAgB,EAAE;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC,EAAE;qBAClE;iBACF;gBACD,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;gBAChC,MAAM,EACJ,oIAAoI;aACvI;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,sBAAsB,CAAC,kBAAkB,CACnE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,EACzB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;QAC3B,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageTaskAssignmentsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsDeleteSample.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";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Delete the storage task assignment sub-resource
17
+ *
18
+ * @summary Delete the storage task assignment sub-resource
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json
20
+ */
21
+ function deleteStorageTaskAssignment() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
24
+ "1f31ba14-ce16-4281-b9b4-3e78da6e1616";
25
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
26
+ const accountName = "sto4445";
27
+ const storageTaskAssignmentName = "myassignment1";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new StorageManagementClient(credential, subscriptionId);
30
+ const result = yield client.storageTaskAssignments.beginDeleteAndWait(resourceGroupName, accountName, storageTaskAssignmentName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ deleteStorageTaskAssignment();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=storageTaskAssignmentsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsDeleteSample.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,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,yBAAyB,GAAG,eAAe,CAAC;QAClD,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,sBAAsB,CAAC,kBAAkB,CACnE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=storageTaskAssignmentsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageTaskAssignmentsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsGetSample.ts"],"names":[],"mappings":""}