@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 Creates a new table with the specified table name, under the specified account.
15
17
  *
16
18
  * @summary Creates a new table with the specified table name, under the specified account.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/TableOperationPatch.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/TableOperationPatch.json
18
20
  */
19
21
  function tableOperationPatch() {
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 tableName = "table6185";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,17 +30,16 @@ function tableOperationPatch() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- tableOperationPatch().catch(console.error);
32
33
  /**
33
34
  * This sample demonstrates how to Creates a new table with the specified table name, under the specified account.
34
35
  *
35
36
  * @summary Creates a new table with the specified table name, under the specified account.
36
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/TableOperationPutOrPatchAcls.json
37
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/TableOperationPutOrPatchAcls.json
37
38
  */
38
39
  function tableOperationPutOrPatchAcls() {
39
40
  return __awaiter(this, void 0, void 0, function* () {
40
- const subscriptionId = "{subscription-id}";
41
- const resourceGroupName = "res3376";
41
+ const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
42
+ const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res3376";
42
43
  const accountName = "sto328";
43
44
  const tableName = "table6185";
44
45
  const parameters = {
@@ -68,5 +69,11 @@ function tableOperationPutOrPatchAcls() {
68
69
  console.log(result);
69
70
  });
70
71
  }
71
- tableOperationPutOrPatchAcls().catch(console.error);
72
+ function main() {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ tableOperationPatch();
75
+ tableOperationPutOrPatchAcls();
76
+ });
77
+ }
78
+ main().catch(console.error);
72
79
  //# sourceMappingURL=tableUpdateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tableUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/tableUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,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,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IA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7E,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,UAAU,GAAU;YACxB,iBAAiB,EAAE;gBACjB;oBACE,YAAY,EAAE;wBACZ,UAAU,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;wBACpD,UAAU,EAAE,MAAM;wBAClB,SAAS,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;qBACpD;oBACD,EAAE,EAAE,6CAA6C;iBAClD;gBACD;oBACE,YAAY,EAAE;wBACZ,UAAU,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;wBACpD,UAAU,EAAE,KAAK;wBACjB,SAAS,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;qBACpD;oBACD,EAAE,EAAE,6CAA6C;iBAClD;aACF;SACF,CAAC;QACF,MAAM,OAAO,GAA8B,EAAE,UAAU,EAAE,CAAC;QAC1D,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,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;QACtB,4BAA4B,EAAE,CAAC;IACjC,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 Gets the current usage count and the limit for the resources of the location under the subscription.
15
17
  *
16
18
  * @summary Gets the current usage count and the limit for the resources of the location under the subscription.
17
- * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/examples/StorageAccountListLocationUsage.json
19
+ * x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListLocationUsage.json
18
20
  */
19
21
  function usageList() {
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 location = "eastus2(stage)";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new StorageManagementClient(credential, subscriptionId);
@@ -47,5 +49,10 @@ function usageList() {
47
49
  console.log(resArray);
48
50
  });
49
51
  }
50
- usageList().catch(console.error);
52
+ function main() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ usageList();
55
+ });
56
+ }
57
+ main().catch(console.error);
51
58
  //# sourceMappingURL=usagesListByLocationSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usagesListByLocationSample.js","sourceRoot":"","sources":["../../samples-dev/usagesListByLocationSample.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,SAAS;;;QACtB,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,QAAQ,GAAG,gBAAgB,CAAC;QAClC,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,EAA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;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,SAAS,EAAE,CAAC;IACd,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,16 +1,11 @@
1
1
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
- export declare class LroImpl<T> implements LongRunningOperation<T> {
3
- private sendOperationFn;
4
- private args;
5
- private spec;
6
- requestPath: string;
7
- requestMethod: string;
8
- constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
9
6
  readonly requestBody?: unknown;
10
7
  readonly path?: string;
11
8
  readonly httpMethod: string;
12
- } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
- sendInitialRequest(): Promise<LroResponse<T>>;
14
- sendPollRequest(path: string): Promise<LroResponse<T>>;
15
- }
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
16
11
  //# sourceMappingURL=lroImpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -5,25 +5,17 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter, __rest } from "tslib";
9
- export class LroImpl {
10
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
- this.sendOperationFn = sendOperationFn;
12
- this.args = args;
13
- this.spec = spec;
14
- this.requestPath = requestPath;
15
- this.requestMethod = requestMethod;
16
- }
17
- sendInitialRequest() {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- return this.sendOperationFn(this.args, this.spec);
20
- });
21
- }
22
- sendPollRequest(path) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
25
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
26
- });
27
- }
8
+ import { __rest } from "tslib";
9
+ export function createLroSpec(inputs) {
10
+ const { args, spec, sendOperationFn } = inputs;
11
+ return {
12
+ requestMethod: spec.httpMethod,
13
+ requestPath: spec.path,
14
+ sendInitialRequest: () => sendOperationFn(args, spec),
15
+ sendPollRequest: (path, options) => {
16
+ const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
18
+ }
19
+ };
28
20
  }
29
21
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -198,7 +198,7 @@ export interface StorageAccountCreateParameters {
198
198
  largeFileSharesState?: LargeFileSharesState;
199
199
  /** Maintains information about the network routing choice opted by the user for data transfer */
200
200
  routingPreference?: RoutingPreference;
201
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
201
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
202
202
  allowBlobPublicAccess?: boolean;
203
203
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
204
204
  minimumTlsVersion?: MinimumTlsVersion;
@@ -206,7 +206,7 @@ export interface StorageAccountCreateParameters {
206
206
  allowSharedKeyAccess?: boolean;
207
207
  /** NFS 3.0 protocol support enabled if set to true. */
208
208
  enableNfsV3?: boolean;
209
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
209
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
210
210
  allowCrossTenantReplication?: boolean;
211
211
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
212
212
  defaultToOAuthAuthentication?: boolean;
@@ -554,6 +554,21 @@ export interface GeoReplicationStats {
554
554
  * NOTE: This property will not be serialized. It can only be populated by the server.
555
555
  */
556
556
  readonly canFailover?: boolean;
557
+ /**
558
+ * A boolean flag which indicates whether or not planned account failover is supported for the account.
559
+ * NOTE: This property will not be serialized. It can only be populated by the server.
560
+ */
561
+ readonly canPlannedFailover?: boolean;
562
+ /**
563
+ * The redundancy type of the account after an account failover is performed.
564
+ * NOTE: This property will not be serialized. It can only be populated by the server.
565
+ */
566
+ readonly postFailoverRedundancy?: PostFailoverRedundancy;
567
+ /**
568
+ * The redundancy type of the account after a planned account failover is performed.
569
+ * NOTE: This property will not be serialized. It can only be populated by the server.
570
+ */
571
+ readonly postPlannedFailoverRedundancy?: PostPlannedFailoverRedundancy;
557
572
  }
558
573
  /** The Private Endpoint resource. */
559
574
  export interface PrivateEndpoint {
@@ -683,13 +698,13 @@ export interface StorageAccountUpdateParameters {
683
698
  largeFileSharesState?: LargeFileSharesState;
684
699
  /** Maintains information about the network routing choice opted by the user for data transfer */
685
700
  routingPreference?: RoutingPreference;
686
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
701
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
687
702
  allowBlobPublicAccess?: boolean;
688
703
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
689
704
  minimumTlsVersion?: MinimumTlsVersion;
690
705
  /** Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. */
691
706
  allowSharedKeyAccess?: boolean;
692
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
707
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
693
708
  allowCrossTenantReplication?: boolean;
694
709
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
695
710
  defaultToOAuthAuthentication?: boolean;
@@ -891,6 +906,81 @@ export interface ListServiceSasResponse {
891
906
  */
892
907
  readonly serviceSasToken?: string;
893
908
  }
909
+ /** The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. */
910
+ export interface StorageAccountMigration {
911
+ /**
912
+ * Migration Resource Id
913
+ * NOTE: This property will not be serialized. It can only be populated by the server.
914
+ */
915
+ readonly id?: string;
916
+ /** current value is 'default' for customer initiated migration */
917
+ name?: string;
918
+ /** SrpAccountMigrationType in ARM contract which is 'accountMigrations' */
919
+ type?: string;
920
+ /** Target sku name for the account */
921
+ targetSkuName: SkuName;
922
+ /**
923
+ * Current status of migration
924
+ * NOTE: This property will not be serialized. It can only be populated by the server.
925
+ */
926
+ readonly migrationStatus?: MigrationStatus;
927
+ /**
928
+ * Error code for migration failure
929
+ * NOTE: This property will not be serialized. It can only be populated by the server.
930
+ */
931
+ readonly migrationFailedReason?: string;
932
+ /**
933
+ * Reason for migration failure
934
+ * NOTE: This property will not be serialized. It can only be populated by the server.
935
+ */
936
+ readonly migrationFailedDetailedReason?: string;
937
+ }
938
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
939
+ export interface ErrorResponseAutoGenerated {
940
+ /** The error object. */
941
+ error?: ErrorDetail;
942
+ }
943
+ /** The error detail. */
944
+ export interface ErrorDetail {
945
+ /**
946
+ * The error code.
947
+ * NOTE: This property will not be serialized. It can only be populated by the server.
948
+ */
949
+ readonly code?: string;
950
+ /**
951
+ * The error message.
952
+ * NOTE: This property will not be serialized. It can only be populated by the server.
953
+ */
954
+ readonly message?: string;
955
+ /**
956
+ * The error target.
957
+ * NOTE: This property will not be serialized. It can only be populated by the server.
958
+ */
959
+ readonly target?: string;
960
+ /**
961
+ * The error details.
962
+ * NOTE: This property will not be serialized. It can only be populated by the server.
963
+ */
964
+ readonly details?: ErrorDetail[];
965
+ /**
966
+ * The error additional info.
967
+ * NOTE: This property will not be serialized. It can only be populated by the server.
968
+ */
969
+ readonly additionalInfo?: ErrorAdditionalInfo[];
970
+ }
971
+ /** The resource management error additional info. */
972
+ export interface ErrorAdditionalInfo {
973
+ /**
974
+ * The additional info type.
975
+ * NOTE: This property will not be serialized. It can only be populated by the server.
976
+ */
977
+ readonly type?: string;
978
+ /**
979
+ * The additional info.
980
+ * NOTE: This property will not be serialized. It can only be populated by the server.
981
+ */
982
+ readonly info?: Record<string, unknown>;
983
+ }
894
984
  /** The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. */
895
985
  export interface ManagementPolicySchema {
896
986
  /** The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. */
@@ -1052,6 +1142,13 @@ export interface BlobInventoryPolicyFilter {
1052
1142
  includeSnapshots?: boolean;
1053
1143
  /** For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded. */
1054
1144
  includeDeleted?: boolean;
1145
+ /** This property is used to filter objects based on the object creation time */
1146
+ creationTime?: BlobInventoryCreationTime;
1147
+ }
1148
+ /** This property defines the creation time based filtering condition. Blob Inventory schema parameter 'Creation-Time' is mandatory with this filter. */
1149
+ export interface BlobInventoryCreationTime {
1150
+ /** When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500. */
1151
+ lastNDays?: number;
1055
1152
  }
1056
1153
  /** Metadata pertaining to creation and last modification of the resource. */
1057
1154
  export interface SystemData {
@@ -1914,7 +2011,7 @@ export interface StorageAccount extends TrackedResource {
1914
2011
  * NOTE: This property will not be serialized. It can only be populated by the server.
1915
2012
  */
1916
2013
  readonly blobRestoreStatus?: BlobRestoreStatus;
1917
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
2014
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
1918
2015
  allowBlobPublicAccess?: boolean;
1919
2016
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
1920
2017
  minimumTlsVersion?: MinimumTlsVersion;
@@ -1922,7 +2019,7 @@ export interface StorageAccount extends TrackedResource {
1922
2019
  allowSharedKeyAccess?: boolean;
1923
2020
  /** NFS 3.0 protocol support enabled if set to true. */
1924
2021
  enableNfsV3?: boolean;
1925
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
2022
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
1926
2023
  allowCrossTenantReplication?: boolean;
1927
2024
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
1928
2025
  defaultToOAuthAuthentication?: boolean;
@@ -1936,6 +2033,16 @@ export interface StorageAccount extends TrackedResource {
1936
2033
  storageAccountSkuConversionStatus?: StorageAccountSkuConversionStatus;
1937
2034
  /** Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. */
1938
2035
  dnsEndpointType?: DnsEndpointType;
2036
+ /**
2037
+ * This property will be set to true or false on an event of ongoing migration. Default value is null.
2038
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2039
+ */
2040
+ readonly isSkuConversionBlocked?: boolean;
2041
+ /**
2042
+ * If customer initiated account migration is in progress, the value will be true else it will be null.
2043
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2044
+ */
2045
+ readonly accountMigrationInProgress?: boolean;
1939
2046
  }
1940
2047
  /** Deleted storage account */
1941
2048
  export interface DeletedAccount extends ProxyResource {
@@ -2291,6 +2398,10 @@ export interface FileShare extends AzureEntityResource {
2291
2398
  */
2292
2399
  readonly snapshotTime?: Date;
2293
2400
  }
2401
+ /** Defines headers for StorageAccounts_customerInitiatedMigration operation. */
2402
+ export interface StorageAccountsCustomerInitiatedMigrationHeaders {
2403
+ location?: string;
2404
+ }
2294
2405
  /** Defines headers for BlobContainers_createOrUpdateImmutabilityPolicy operation. */
2295
2406
  export interface BlobContainersCreateOrUpdateImmutabilityPolicyHeaders {
2296
2407
  /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. */
@@ -2720,6 +2831,44 @@ export declare enum KnownGeoReplicationStatus {
2720
2831
  * **Unavailable**
2721
2832
  */
2722
2833
  export type GeoReplicationStatus = string;
2834
+ /** Known values of {@link PostFailoverRedundancy} that the service accepts. */
2835
+ export declare enum KnownPostFailoverRedundancy {
2836
+ /** StandardLRS */
2837
+ StandardLRS = "Standard_LRS",
2838
+ /** StandardZRS */
2839
+ StandardZRS = "Standard_ZRS"
2840
+ }
2841
+ /**
2842
+ * Defines values for PostFailoverRedundancy. \
2843
+ * {@link KnownPostFailoverRedundancy} can be used interchangeably with PostFailoverRedundancy,
2844
+ * this enum contains the known values that the service supports.
2845
+ * ### Known values supported by the service
2846
+ * **Standard_LRS** \
2847
+ * **Standard_ZRS**
2848
+ */
2849
+ export type PostFailoverRedundancy = string;
2850
+ /** Known values of {@link PostPlannedFailoverRedundancy} that the service accepts. */
2851
+ export declare enum KnownPostPlannedFailoverRedundancy {
2852
+ /** StandardGRS */
2853
+ StandardGRS = "Standard_GRS",
2854
+ /** StandardGzrs */
2855
+ StandardGzrs = "Standard_GZRS",
2856
+ /** StandardRagrs */
2857
+ StandardRagrs = "Standard_RAGRS",
2858
+ /** StandardRagzrs */
2859
+ StandardRagzrs = "Standard_RAGZRS"
2860
+ }
2861
+ /**
2862
+ * Defines values for PostPlannedFailoverRedundancy. \
2863
+ * {@link KnownPostPlannedFailoverRedundancy} can be used interchangeably with PostPlannedFailoverRedundancy,
2864
+ * this enum contains the known values that the service supports.
2865
+ * ### Known values supported by the service
2866
+ * **Standard_GRS** \
2867
+ * **Standard_GZRS** \
2868
+ * **Standard_RAGRS** \
2869
+ * **Standard_RAGZRS**
2870
+ */
2871
+ export type PostPlannedFailoverRedundancy = string;
2723
2872
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
2724
2873
  export declare enum KnownPrivateEndpointServiceConnectionStatus {
2725
2874
  /** Pending */
@@ -2896,6 +3045,44 @@ export declare enum KnownSignedResource {
2896
3045
  * **s**
2897
3046
  */
2898
3047
  export type SignedResource = string;
3048
+ /** Known values of {@link MigrationStatus} that the service accepts. */
3049
+ export declare enum KnownMigrationStatus {
3050
+ /** Invalid */
3051
+ Invalid = "Invalid",
3052
+ /** SubmittedForConversion */
3053
+ SubmittedForConversion = "SubmittedForConversion",
3054
+ /** InProgress */
3055
+ InProgress = "InProgress",
3056
+ /** Complete */
3057
+ Complete = "Complete",
3058
+ /** Failed */
3059
+ Failed = "Failed"
3060
+ }
3061
+ /**
3062
+ * Defines values for MigrationStatus. \
3063
+ * {@link KnownMigrationStatus} can be used interchangeably with MigrationStatus,
3064
+ * this enum contains the known values that the service supports.
3065
+ * ### Known values supported by the service
3066
+ * **Invalid** \
3067
+ * **SubmittedForConversion** \
3068
+ * **InProgress** \
3069
+ * **Complete** \
3070
+ * **Failed**
3071
+ */
3072
+ export type MigrationStatus = string;
3073
+ /** Known values of {@link MigrationName} that the service accepts. */
3074
+ export declare enum KnownMigrationName {
3075
+ /** Default */
3076
+ Default = "default"
3077
+ }
3078
+ /**
3079
+ * Defines values for MigrationName. \
3080
+ * {@link KnownMigrationName} can be used interchangeably with MigrationName,
3081
+ * this enum contains the known values that the service supports.
3082
+ * ### Known values supported by the service
3083
+ * **default**
3084
+ */
3085
+ export type MigrationName = string;
2899
3086
  /** Known values of {@link ManagementPolicyName} that the service accepts. */
2900
3087
  export declare enum KnownManagementPolicyName {
2901
3088
  /** Default */
@@ -3086,7 +3273,11 @@ export declare enum KnownAllowedMethods {
3086
3273
  /** PUT */
3087
3274
  PUT = "PUT",
3088
3275
  /** Patch */
3089
- Patch = "PATCH"
3276
+ Patch = "PATCH",
3277
+ /** Connect */
3278
+ Connect = "CONNECT",
3279
+ /** Trace */
3280
+ Trace = "TRACE"
3090
3281
  }
3091
3282
  /**
3092
3283
  * Defines values for AllowedMethods. \
@@ -3100,7 +3291,9 @@ export declare enum KnownAllowedMethods {
3100
3291
  * **POST** \
3101
3292
  * **OPTIONS** \
3102
3293
  * **PUT** \
3103
- * **PATCH**
3294
+ * **PATCH** \
3295
+ * **CONNECT** \
3296
+ * **TRACE**
3104
3297
  */
3105
3298
  export type AllowedMethods = string;
3106
3299
  /** Known values of {@link Name} that the service accepts. */
@@ -3457,6 +3650,18 @@ export interface StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParam
3457
3650
  resumeFrom?: string;
3458
3651
  }
3459
3652
  /** Optional parameters. */
3653
+ export interface StorageAccountsCustomerInitiatedMigrationOptionalParams extends coreClient.OperationOptions {
3654
+ /** Delay to wait until next poll, in milliseconds. */
3655
+ updateIntervalInMs?: number;
3656
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3657
+ resumeFrom?: string;
3658
+ }
3659
+ /** Optional parameters. */
3660
+ export interface StorageAccountsGetCustomerInitiatedMigrationOptionalParams extends coreClient.OperationOptions {
3661
+ }
3662
+ /** Contains response data for the getCustomerInitiatedMigration operation. */
3663
+ export type StorageAccountsGetCustomerInitiatedMigrationResponse = StorageAccountMigration;
3664
+ /** Optional parameters. */
3460
3665
  export interface StorageAccountsRestoreBlobRangesOptionalParams extends coreClient.OperationOptions {
3461
3666
  /** Delay to wait until next poll, in milliseconds. */
3462
3667
  updateIntervalInMs?: number;
@@ -3626,12 +3831,6 @@ export interface EncryptionScopesListOptionalParams extends coreClient.Operation
3626
3831
  export type EncryptionScopesListResponse = EncryptionScopeListResult;
3627
3832
  /** Optional parameters. */
3628
3833
  export interface EncryptionScopesListNextOptionalParams extends coreClient.OperationOptions {
3629
- /** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3630
- maxpagesize?: number;
3631
- /** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3632
- filter?: string;
3633
- /** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3634
- include?: ListEncryptionScopesInclude;
3635
3834
  }
3636
3835
  /** Contains response data for the listNext operation. */
3637
3836
  export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
@@ -3738,12 +3937,6 @@ export interface BlobContainersObjectLevelWormOptionalParams extends coreClient.
3738
3937
  }
3739
3938
  /** Optional parameters. */
3740
3939
  export interface BlobContainersListNextOptionalParams extends coreClient.OperationOptions {
3741
- /** Optional. When specified, only container names starting with the filter will be listed. */
3742
- filter?: string;
3743
- /** Optional. Specified maximum number of containers that can be included in the list. */
3744
- maxpagesize?: string;
3745
- /** Optional, used to include the properties for soft deleted blob containers. */
3746
- include?: ListContainersInclude;
3747
3940
  }
3748
3941
  /** Contains response data for the listNext operation. */
3749
3942
  export type BlobContainersListNextResponse = ListContainerItems;
@@ -3815,12 +4008,6 @@ export interface FileSharesLeaseOptionalParams extends coreClient.OperationOptio
3815
4008
  export type FileSharesLeaseResponse = FileSharesLeaseHeaders & LeaseShareResponse;
3816
4009
  /** Optional parameters. */
3817
4010
  export interface FileSharesListNextOptionalParams extends coreClient.OperationOptions {
3818
- /** Optional. When specified, only share names starting with the filter will be listed. */
3819
- filter?: string;
3820
- /** Optional. Specified maximum number of shares that can be included in the list. */
3821
- maxpagesize?: string;
3822
- /** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
3823
- expand?: string;
3824
4011
  }
3825
4012
  /** Contains response data for the listNext operation. */
3826
4013
  export type FileSharesListNextResponse = FileShareItems;
@@ -3868,10 +4055,6 @@ export interface QueueListOptionalParams extends coreClient.OperationOptions {
3868
4055
  export type QueueListResponse = ListQueueResource;
3869
4056
  /** Optional parameters. */
3870
4057
  export interface QueueListNextOptionalParams extends coreClient.OperationOptions {
3871
- /** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
3872
- filter?: string;
3873
- /** Optional, a maximum number of queues that should be included in a list queue response */
3874
- maxpagesize?: string;
3875
4058
  }
3876
4059
  /** Contains response data for the listNext operation. */
3877
4060
  export type QueueListNextResponse = ListQueueResource;