@azure/arm-storage 18.3.1-alpha.20250226.1 → 18.4.0-alpha.20250228.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/CHANGELOG.md +47 -9
  2. package/LICENSE +4 -4
  3. package/README.md +3 -1
  4. package/dist/browser/lroImpl.d.ts.map +1 -1
  5. package/dist/browser/lroImpl.js +7 -0
  6. package/dist/browser/lroImpl.js.map +1 -1
  7. package/dist/browser/models/index.d.ts +301 -6
  8. package/dist/browser/models/index.d.ts.map +1 -1
  9. package/dist/browser/models/index.js +12 -0
  10. package/dist/browser/models/index.js.map +1 -1
  11. package/dist/browser/models/mappers.d.ts +11 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +431 -8
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.d.ts +3 -2
  16. package/dist/browser/models/parameters.d.ts.map +1 -1
  17. package/dist/browser/models/parameters.js +22 -11
  18. package/dist/browser/models/parameters.js.map +1 -1
  19. package/dist/browser/operations/blobContainers.d.ts +9 -9
  20. package/dist/browser/operations/blobContainers.js +9 -9
  21. package/dist/browser/operations/blobContainers.js.map +1 -1
  22. package/dist/browser/operations/encryptionScopes.js +1 -1
  23. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  24. package/dist/browser/operations/fileServices.d.ts +46 -1
  25. package/dist/browser/operations/fileServices.d.ts.map +1 -1
  26. package/dist/browser/operations/fileServices.js +174 -0
  27. package/dist/browser/operations/fileServices.js.map +1 -1
  28. package/dist/browser/operations/localUsersOperations.js +1 -1
  29. package/dist/browser/operations/localUsersOperations.js.map +1 -1
  30. package/dist/browser/operations/storageAccounts.d.ts +2 -2
  31. package/dist/browser/operations/storageAccounts.js +2 -2
  32. package/dist/browser/operations/storageAccounts.js.map +1 -1
  33. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +1 -1
  34. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  35. package/dist/browser/operations/storageTaskAssignments.js +1 -1
  36. package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
  37. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  38. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  39. package/dist/browser/operationsInterfaces/blobContainers.d.ts +9 -9
  40. package/dist/browser/operationsInterfaces/blobContainers.js.map +1 -1
  41. package/dist/browser/operationsInterfaces/fileServices.d.ts +23 -1
  42. package/dist/browser/operationsInterfaces/fileServices.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/fileServices.js.map +1 -1
  44. package/dist/browser/operationsInterfaces/storageAccounts.d.ts +2 -2
  45. package/dist/browser/operationsInterfaces/storageAccounts.js.map +1 -1
  46. package/dist/browser/storageManagementClient.js +2 -2
  47. package/dist/browser/storageManagementClient.js.map +1 -1
  48. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  49. package/dist/commonjs/lroImpl.js +7 -0
  50. package/dist/commonjs/lroImpl.js.map +1 -1
  51. package/dist/commonjs/models/index.d.ts +301 -6
  52. package/dist/commonjs/models/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/index.js +12 -0
  54. package/dist/commonjs/models/index.js.map +1 -1
  55. package/dist/commonjs/models/mappers.d.ts +11 -0
  56. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  57. package/dist/commonjs/models/mappers.js +436 -12
  58. package/dist/commonjs/models/mappers.js.map +1 -1
  59. package/dist/commonjs/models/parameters.d.ts +3 -2
  60. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  61. package/dist/commonjs/models/parameters.js +24 -13
  62. package/dist/commonjs/models/parameters.js.map +1 -1
  63. package/dist/commonjs/operations/blobContainers.d.ts +9 -9
  64. package/dist/commonjs/operations/blobContainers.js +9 -9
  65. package/dist/commonjs/operations/blobContainers.js.map +1 -1
  66. package/dist/commonjs/operations/encryptionScopes.js +1 -1
  67. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  68. package/dist/commonjs/operations/fileServices.d.ts +46 -1
  69. package/dist/commonjs/operations/fileServices.d.ts.map +1 -1
  70. package/dist/commonjs/operations/fileServices.js +173 -0
  71. package/dist/commonjs/operations/fileServices.js.map +1 -1
  72. package/dist/commonjs/operations/localUsersOperations.js +1 -1
  73. package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
  74. package/dist/commonjs/operations/storageAccounts.d.ts +2 -2
  75. package/dist/commonjs/operations/storageAccounts.js +2 -2
  76. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  77. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +1 -1
  78. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  79. package/dist/commonjs/operations/storageTaskAssignments.js +1 -1
  80. package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
  81. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  82. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  83. package/dist/commonjs/operationsInterfaces/blobContainers.d.ts +9 -9
  84. package/dist/commonjs/operationsInterfaces/blobContainers.js.map +1 -1
  85. package/dist/commonjs/operationsInterfaces/fileServices.d.ts +23 -1
  86. package/dist/commonjs/operationsInterfaces/fileServices.d.ts.map +1 -1
  87. package/dist/commonjs/operationsInterfaces/fileServices.js.map +1 -1
  88. package/dist/commonjs/operationsInterfaces/storageAccounts.d.ts +2 -2
  89. package/dist/commonjs/operationsInterfaces/storageAccounts.js.map +1 -1
  90. package/dist/commonjs/storageManagementClient.js +2 -2
  91. package/dist/commonjs/storageManagementClient.js.map +1 -1
  92. package/dist/esm/lroImpl.d.ts.map +1 -1
  93. package/dist/esm/lroImpl.js +7 -0
  94. package/dist/esm/lroImpl.js.map +1 -1
  95. package/dist/esm/models/index.d.ts +301 -6
  96. package/dist/esm/models/index.d.ts.map +1 -1
  97. package/dist/esm/models/index.js +12 -0
  98. package/dist/esm/models/index.js.map +1 -1
  99. package/dist/esm/models/mappers.d.ts +11 -0
  100. package/dist/esm/models/mappers.d.ts.map +1 -1
  101. package/dist/esm/models/mappers.js +431 -8
  102. package/dist/esm/models/mappers.js.map +1 -1
  103. package/dist/esm/models/parameters.d.ts +3 -2
  104. package/dist/esm/models/parameters.d.ts.map +1 -1
  105. package/dist/esm/models/parameters.js +22 -11
  106. package/dist/esm/models/parameters.js.map +1 -1
  107. package/dist/esm/operations/blobContainers.d.ts +9 -9
  108. package/dist/esm/operations/blobContainers.js +9 -9
  109. package/dist/esm/operations/blobContainers.js.map +1 -1
  110. package/dist/esm/operations/encryptionScopes.js +1 -1
  111. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  112. package/dist/esm/operations/fileServices.d.ts +46 -1
  113. package/dist/esm/operations/fileServices.d.ts.map +1 -1
  114. package/dist/esm/operations/fileServices.js +174 -0
  115. package/dist/esm/operations/fileServices.js.map +1 -1
  116. package/dist/esm/operations/localUsersOperations.js +1 -1
  117. package/dist/esm/operations/localUsersOperations.js.map +1 -1
  118. package/dist/esm/operations/storageAccounts.d.ts +2 -2
  119. package/dist/esm/operations/storageAccounts.js +2 -2
  120. package/dist/esm/operations/storageAccounts.js.map +1 -1
  121. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +1 -1
  122. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  123. package/dist/esm/operations/storageTaskAssignments.js +1 -1
  124. package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
  125. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  126. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  127. package/dist/esm/operationsInterfaces/blobContainers.d.ts +9 -9
  128. package/dist/esm/operationsInterfaces/blobContainers.js.map +1 -1
  129. package/dist/esm/operationsInterfaces/fileServices.d.ts +23 -1
  130. package/dist/esm/operationsInterfaces/fileServices.d.ts.map +1 -1
  131. package/dist/esm/operationsInterfaces/fileServices.js.map +1 -1
  132. package/dist/esm/operationsInterfaces/storageAccounts.d.ts +2 -2
  133. package/dist/esm/operationsInterfaces/storageAccounts.js.map +1 -1
  134. package/dist/esm/storageManagementClient.js +2 -2
  135. package/dist/esm/storageManagementClient.js.map +1 -1
  136. package/dist/react-native/lroImpl.d.ts.map +1 -1
  137. package/dist/react-native/lroImpl.js +7 -0
  138. package/dist/react-native/lroImpl.js.map +1 -1
  139. package/dist/react-native/models/index.d.ts +301 -6
  140. package/dist/react-native/models/index.d.ts.map +1 -1
  141. package/dist/react-native/models/index.js +12 -0
  142. package/dist/react-native/models/index.js.map +1 -1
  143. package/dist/react-native/models/mappers.d.ts +11 -0
  144. package/dist/react-native/models/mappers.d.ts.map +1 -1
  145. package/dist/react-native/models/mappers.js +431 -8
  146. package/dist/react-native/models/mappers.js.map +1 -1
  147. package/dist/react-native/models/parameters.d.ts +3 -2
  148. package/dist/react-native/models/parameters.d.ts.map +1 -1
  149. package/dist/react-native/models/parameters.js +22 -11
  150. package/dist/react-native/models/parameters.js.map +1 -1
  151. package/dist/react-native/operations/blobContainers.d.ts +9 -9
  152. package/dist/react-native/operations/blobContainers.js +9 -9
  153. package/dist/react-native/operations/blobContainers.js.map +1 -1
  154. package/dist/react-native/operations/encryptionScopes.js +1 -1
  155. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  156. package/dist/react-native/operations/fileServices.d.ts +46 -1
  157. package/dist/react-native/operations/fileServices.d.ts.map +1 -1
  158. package/dist/react-native/operations/fileServices.js +174 -0
  159. package/dist/react-native/operations/fileServices.js.map +1 -1
  160. package/dist/react-native/operations/localUsersOperations.js +1 -1
  161. package/dist/react-native/operations/localUsersOperations.js.map +1 -1
  162. package/dist/react-native/operations/storageAccounts.d.ts +2 -2
  163. package/dist/react-native/operations/storageAccounts.js +2 -2
  164. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  165. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +1 -1
  166. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  167. package/dist/react-native/operations/storageTaskAssignments.js +1 -1
  168. package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
  169. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  170. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  171. package/dist/react-native/operationsInterfaces/blobContainers.d.ts +9 -9
  172. package/dist/react-native/operationsInterfaces/blobContainers.js.map +1 -1
  173. package/dist/react-native/operationsInterfaces/fileServices.d.ts +23 -1
  174. package/dist/react-native/operationsInterfaces/fileServices.d.ts.map +1 -1
  175. package/dist/react-native/operationsInterfaces/fileServices.js.map +1 -1
  176. package/dist/react-native/operationsInterfaces/storageAccounts.d.ts +2 -2
  177. package/dist/react-native/operationsInterfaces/storageAccounts.js.map +1 -1
  178. package/dist/react-native/storageManagementClient.js +2 -2
  179. package/dist/react-native/storageManagementClient.js.map +1 -1
  180. package/package.json +7 -7
  181. package/review/arm-storage.api.md +126 -0
@@ -1 +1 @@
1
- {"version":3,"file":"storageAccounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StorageAccount,\n StorageAccountsListOptionalParams,\n StorageAccountsListByResourceGroupOptionalParams,\n StorageAccountCheckNameAvailabilityParameters,\n StorageAccountsCheckNameAvailabilityOptionalParams,\n StorageAccountsCheckNameAvailabilityResponse,\n StorageAccountCreateParameters,\n StorageAccountsCreateOptionalParams,\n StorageAccountsCreateResponse,\n StorageAccountsDeleteOptionalParams,\n StorageAccountsGetPropertiesOptionalParams,\n StorageAccountsGetPropertiesResponse,\n StorageAccountUpdateParameters,\n StorageAccountsUpdateOptionalParams,\n StorageAccountsUpdateResponse,\n StorageAccountsListKeysOptionalParams,\n StorageAccountsListKeysResponse,\n StorageAccountRegenerateKeyParameters,\n StorageAccountsRegenerateKeyOptionalParams,\n StorageAccountsRegenerateKeyResponse,\n AccountSasParameters,\n StorageAccountsListAccountSASOptionalParams,\n StorageAccountsListAccountSASResponse,\n ServiceSasParameters,\n StorageAccountsListServiceSASOptionalParams,\n StorageAccountsListServiceSASResponse,\n StorageAccountsFailoverOptionalParams,\n StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountMigration,\n StorageAccountsCustomerInitiatedMigrationOptionalParams,\n MigrationName,\n StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n StorageAccountsGetCustomerInitiatedMigrationResponse,\n BlobRestoreParameters,\n StorageAccountsRestoreBlobRangesOptionalParams,\n StorageAccountsRestoreBlobRangesResponse,\n StorageAccountsRevokeUserDelegationKeysOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a StorageAccounts. */\nexport interface StorageAccounts {\n /**\n * Lists all the storage accounts available under the subscription. Note that storage keys are not\n * returned; use the ListKeys operation for this.\n * @param options The options parameters.\n */\n list(\n options?: StorageAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Lists all the storage accounts available under the given resource group. Note that storage keys are\n * not returned; use the ListKeys operation for this.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: StorageAccountsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Checks that the storage account name is valid and is not already in use.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n checkNameAvailability(\n accountName: StorageAccountCheckNameAvailabilityParameters,\n options?: StorageAccountsCheckNameAvailabilityOptionalParams,\n ): Promise<StorageAccountsCheckNameAvailabilityResponse>;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsCreateResponse>,\n StorageAccountsCreateResponse\n >\n >;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<StorageAccountsCreateResponse>;\n /**\n * Deletes a storage account in Microsoft Azure.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns the properties for the specified storage account including but not limited to name, SKU\n * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getProperties(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsGetPropertiesOptionalParams,\n ): Promise<StorageAccountsGetPropertiesResponse>;\n /**\n * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage\n * account. It can also be used to map the account to a custom domain. Only one custom domain is\n * supported per storage account; the replacement/change of custom domain is not supported. In order to\n * replace an old custom domain, the old value must be cleared/unregistered before a new value can be\n * set. The update of multiple properties is supported. This call does not change the storage keys for\n * the account. If you want to change the storage account keys, use the regenerate keys operation. The\n * location and name of the storage account cannot be changed after creation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the updated account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountUpdateParameters,\n options?: StorageAccountsUpdateOptionalParams,\n ): Promise<StorageAccountsUpdateResponse>;\n /**\n * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage\n * account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsListKeysOptionalParams,\n ): Promise<StorageAccountsListKeysResponse>;\n /**\n * Regenerates one of the access keys or Kerberos keys for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,\n * kerb2.\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n accountName: string,\n regenerateKey: StorageAccountRegenerateKeyParameters,\n options?: StorageAccountsRegenerateKeyOptionalParams,\n ): Promise<StorageAccountsRegenerateKeyResponse>;\n /**\n * List SAS credentials of a storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list SAS credentials for the storage account.\n * @param options The options parameters.\n */\n listAccountSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: AccountSasParameters,\n options?: StorageAccountsListAccountSASOptionalParams,\n ): Promise<StorageAccountsListAccountSASResponse>;\n /**\n * List service SAS credentials of a specific resource.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list service SAS credentials.\n * @param options The options parameters.\n */\n listServiceSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: ServiceSasParameters,\n options?: StorageAccountsListServiceSASOptionalParams,\n ): Promise<StorageAccountsListServiceSASResponse>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailover(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailoverAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<void>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Gets the status of the ongoing migration for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param migrationName The name of the Storage Account Migration. It should always be 'default'\n * @param options The options parameters.\n */\n getCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n migrationName: MigrationName,\n options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRanges(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsRestoreBlobRangesResponse>,\n StorageAccountsRestoreBlobRangesResponse\n >\n >;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRangesAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<StorageAccountsRestoreBlobRangesResponse>;\n /**\n * Revoke user delegation keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n revokeUserDelegationKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsRevokeUserDelegationKeysOptionalParams,\n ): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"storageAccounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StorageAccount,\n StorageAccountsListOptionalParams,\n StorageAccountsListByResourceGroupOptionalParams,\n StorageAccountCheckNameAvailabilityParameters,\n StorageAccountsCheckNameAvailabilityOptionalParams,\n StorageAccountsCheckNameAvailabilityResponse,\n StorageAccountCreateParameters,\n StorageAccountsCreateOptionalParams,\n StorageAccountsCreateResponse,\n StorageAccountsDeleteOptionalParams,\n StorageAccountsGetPropertiesOptionalParams,\n StorageAccountsGetPropertiesResponse,\n StorageAccountUpdateParameters,\n StorageAccountsUpdateOptionalParams,\n StorageAccountsUpdateResponse,\n StorageAccountsListKeysOptionalParams,\n StorageAccountsListKeysResponse,\n StorageAccountRegenerateKeyParameters,\n StorageAccountsRegenerateKeyOptionalParams,\n StorageAccountsRegenerateKeyResponse,\n AccountSasParameters,\n StorageAccountsListAccountSASOptionalParams,\n StorageAccountsListAccountSASResponse,\n ServiceSasParameters,\n StorageAccountsListServiceSASOptionalParams,\n StorageAccountsListServiceSASResponse,\n StorageAccountsFailoverOptionalParams,\n StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountMigration,\n StorageAccountsCustomerInitiatedMigrationOptionalParams,\n MigrationName,\n StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n StorageAccountsGetCustomerInitiatedMigrationResponse,\n BlobRestoreParameters,\n StorageAccountsRestoreBlobRangesOptionalParams,\n StorageAccountsRestoreBlobRangesResponse,\n StorageAccountsRevokeUserDelegationKeysOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a StorageAccounts. */\nexport interface StorageAccounts {\n /**\n * Lists all the storage accounts available under the subscription. Note that storage keys are not\n * returned; use the ListKeys operation for this.\n * @param options The options parameters.\n */\n list(\n options?: StorageAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Lists all the storage accounts available under the given resource group. Note that storage keys are\n * not returned; use the ListKeys operation for this.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: StorageAccountsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Checks that the storage account name is valid and is not already in use.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n checkNameAvailability(\n accountName: StorageAccountCheckNameAvailabilityParameters,\n options?: StorageAccountsCheckNameAvailabilityOptionalParams,\n ): Promise<StorageAccountsCheckNameAvailabilityResponse>;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsCreateResponse>,\n StorageAccountsCreateResponse\n >\n >;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<StorageAccountsCreateResponse>;\n /**\n * Deletes a storage account in Microsoft Azure.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns the properties for the specified storage account including but not limited to name, SKU\n * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getProperties(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsGetPropertiesOptionalParams,\n ): Promise<StorageAccountsGetPropertiesResponse>;\n /**\n * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage\n * account. It can also be used to map the account to a custom domain. Only one custom domain is\n * supported per storage account; the replacement/change of custom domain is not supported. In order to\n * replace an old custom domain, the old value must be cleared/unregistered before a new value can be\n * set. The update of multiple properties is supported. This call does not change the storage keys for\n * the account. If you want to change the storage account keys, use the regenerate keys operation. The\n * location and name of the storage account cannot be changed after creation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the updated account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountUpdateParameters,\n options?: StorageAccountsUpdateOptionalParams,\n ): Promise<StorageAccountsUpdateResponse>;\n /**\n * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage\n * account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsListKeysOptionalParams,\n ): Promise<StorageAccountsListKeysResponse>;\n /**\n * Regenerates one of the access keys or Kerberos keys for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,\n * kerb2.\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n accountName: string,\n regenerateKey: StorageAccountRegenerateKeyParameters,\n options?: StorageAccountsRegenerateKeyOptionalParams,\n ): Promise<StorageAccountsRegenerateKeyResponse>;\n /**\n * List SAS credentials of a storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list SAS credentials for the storage account.\n * @param options The options parameters.\n */\n listAccountSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: AccountSasParameters,\n options?: StorageAccountsListAccountSASOptionalParams,\n ): Promise<StorageAccountsListAccountSASResponse>;\n /**\n * List service SAS credentials of a specific resource.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list service SAS credentials.\n * @param options The options parameters.\n */\n listServiceSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: ServiceSasParameters,\n options?: StorageAccountsListServiceSASOptionalParams,\n ): Promise<StorageAccountsListServiceSASResponse>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailover(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailoverAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<void>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Gets the status of the ongoing migration for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param migrationName The name of the Storage Account Migration. It should always be 'default'\n * @param options The options parameters.\n */\n getCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n migrationName: MigrationName,\n options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRanges(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsRestoreBlobRangesResponse>,\n StorageAccountsRestoreBlobRangesResponse\n >\n >;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRangesAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<StorageAccountsRestoreBlobRangesResponse>;\n /**\n * Revoke user delegation keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n revokeUserDelegationKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsRevokeUserDelegationKeysOptionalParams,\n ): Promise<void>;\n}\n"]}
@@ -31,7 +31,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
31
31
  requestContentType: "application/json; charset=utf-8",
32
32
  credential: credentials,
33
33
  };
34
- const packageDetails = `azsdk-js-arm-storage/18.3.1`;
34
+ const packageDetails = `azsdk-js-arm-storage/18.4.0`;
35
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
37
  : `${packageDetails}`;
@@ -64,7 +64,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
64
64
  this.subscriptionId = subscriptionId;
65
65
  // Assigning values to Constant parameters
66
66
  this.$host = options.$host || "https://management.azure.com";
67
- this.apiVersion = options.apiVersion || "2023-05-01";
67
+ this.apiVersion = options.apiVersion || "2024-01-01";
68
68
  this.blobServices = new BlobServicesImpl(this);
69
69
  this.blobContainers = new BlobContainersImpl(this);
70
70
  this.fileServices = new FileServicesImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,uCAAuC,EACvC,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,wCAAwC,GACzC,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI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CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-05-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
1
+ {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,uCAAuC,EACvC,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,wCAAwC,GACzC,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC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AAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.4.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for StorageManagementClient.",
6
- "version": "18.3.1-alpha.20250226.1",
6
+ "version": "18.4.0-alpha.20250228.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
@@ -32,15 +32,15 @@
32
32
  "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
33
33
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
34
34
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
35
- "@azure/identity": "^4.6.0",
35
+ "@azure/identity": "^4.7.0",
36
36
  "@azure/logger": "^1.1.4",
37
37
  "@types/node": "^18.0.0",
38
- "@vitest/browser": "^3.0.5",
39
- "@vitest/coverage-istanbul": "^3.0.5",
38
+ "@vitest/browser": "^3.0.6",
39
+ "@vitest/coverage-istanbul": "^3.0.6",
40
40
  "dotenv": "^16.0.0",
41
41
  "playwright": "^1.50.1",
42
- "typescript": "~5.7.2",
43
- "vitest": "^3.0.5"
42
+ "typescript": "~5.6.2",
43
+ "vitest": "^3.0.6"
44
44
  },
45
45
  "repository": {
46
46
  "type": "git",
@@ -80,7 +80,7 @@
80
80
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
81
81
  "unit-test:browser": "echo skipped",
82
82
  "unit-test:node": "dev-tool run test:vitest",
83
- "update-snippets": "dev-tool run update-snippets"
83
+ "update-snippets": "echo skipped"
84
84
  },
85
85
  "sideEffects": false,
86
86
  "//metadata": {
@@ -30,6 +30,14 @@ export interface AccountImmutabilityPolicyProperties {
30
30
  // @public
31
31
  export type AccountImmutabilityPolicyState = string;
32
32
 
33
+ // @public
34
+ export interface AccountLimits {
35
+ readonly maxFileShares?: number;
36
+ readonly maxProvisionedBandwidthMiBPerSec?: number;
37
+ readonly maxProvisionedIops?: number;
38
+ readonly maxProvisionedStorageGiB?: number;
39
+ }
40
+
33
41
  // @public
34
42
  export interface AccountSasParameters {
35
43
  iPAddressOrRange?: string;
@@ -48,6 +56,20 @@ export type AccountStatus = "available" | "unavailable";
48
56
  // @public
49
57
  export type AccountType = string;
50
58
 
59
+ // @public
60
+ export interface AccountUsage {
61
+ readonly liveShares?: AccountUsageElements;
62
+ readonly softDeletedShares?: AccountUsageElements;
63
+ }
64
+
65
+ // @public
66
+ export interface AccountUsageElements {
67
+ readonly fileShareCount?: number;
68
+ readonly provisionedBandwidthMiBPerSec?: number;
69
+ readonly provisionedIops?: number;
70
+ readonly provisionedStorageGiB?: number;
71
+ }
72
+
51
73
  // @public
52
74
  export interface ActiveDirectoryProperties {
53
75
  accountType?: AccountType;
@@ -410,6 +432,13 @@ export interface BlobServicesSetServicePropertiesOptionalParams extends coreClie
410
432
  // @public
411
433
  export type BlobServicesSetServicePropertiesResponse = BlobServiceProperties;
412
434
 
435
+ // @public
436
+ export interface BurstingConstants {
437
+ readonly burstFloorIops?: number;
438
+ readonly burstIOScalar?: number;
439
+ readonly burstTimeframeSeconds?: number;
440
+ }
441
+
413
442
  // @public
414
443
  export type Bypass = string;
415
444
 
@@ -746,7 +775,9 @@ export interface FileServiceProperties extends Resource {
746
775
  // @public
747
776
  export interface FileServices {
748
777
  getServiceProperties(resourceGroupName: string, accountName: string, options?: FileServicesGetServicePropertiesOptionalParams): Promise<FileServicesGetServicePropertiesResponse>;
778
+ getServiceUsage(resourceGroupName: string, accountName: string, options?: FileServicesGetServiceUsageOptionalParams): Promise<FileServicesGetServiceUsageResponse>;
749
779
  list(resourceGroupName: string, accountName: string, options?: FileServicesListOptionalParams): Promise<FileServicesListResponse>;
780
+ listServiceUsages(resourceGroupName: string, accountName: string, options?: FileServicesListServiceUsagesOptionalParams): PagedAsyncIterableIterator<FileServiceUsage>;
750
781
  setServiceProperties(resourceGroupName: string, accountName: string, parameters: FileServiceProperties, options?: FileServicesSetServicePropertiesOptionalParams): Promise<FileServicesSetServicePropertiesResponse>;
751
782
  }
752
783
 
@@ -757,6 +788,13 @@ export interface FileServicesGetServicePropertiesOptionalParams extends coreClie
757
788
  // @public
758
789
  export type FileServicesGetServicePropertiesResponse = FileServiceProperties;
759
790
 
791
+ // @public
792
+ export interface FileServicesGetServiceUsageOptionalParams extends coreClient.OperationOptions {
793
+ }
794
+
795
+ // @public
796
+ export type FileServicesGetServiceUsageResponse = FileServiceUsage;
797
+
760
798
  // @public
761
799
  export interface FileServicesListOptionalParams extends coreClient.OperationOptions {
762
800
  }
@@ -764,6 +802,21 @@ export interface FileServicesListOptionalParams extends coreClient.OperationOpti
764
802
  // @public
765
803
  export type FileServicesListResponse = FileServiceItems;
766
804
 
805
+ // @public
806
+ export interface FileServicesListServiceUsagesNextOptionalParams extends coreClient.OperationOptions {
807
+ }
808
+
809
+ // @public
810
+ export type FileServicesListServiceUsagesNextResponse = FileServiceUsages;
811
+
812
+ // @public
813
+ export interface FileServicesListServiceUsagesOptionalParams extends coreClient.OperationOptions {
814
+ maxpagesize?: number;
815
+ }
816
+
817
+ // @public
818
+ export type FileServicesListServiceUsagesResponse = FileServiceUsages;
819
+
767
820
  // @public
768
821
  export interface FileServicesSetServicePropertiesOptionalParams extends coreClient.OperationOptions {
769
822
  }
@@ -771,6 +824,26 @@ export interface FileServicesSetServicePropertiesOptionalParams extends coreClie
771
824
  // @public
772
825
  export type FileServicesSetServicePropertiesResponse = FileServiceProperties;
773
826
 
827
+ // @public
828
+ export interface FileServiceUsage extends Resource {
829
+ readonly properties?: FileServiceUsageProperties;
830
+ }
831
+
832
+ // @public
833
+ export interface FileServiceUsageProperties {
834
+ readonly burstingConstants?: BurstingConstants;
835
+ readonly fileShareLimits?: FileShareLimits;
836
+ readonly fileShareRecommendations?: FileShareRecommendations;
837
+ readonly storageAccountLimits?: AccountLimits;
838
+ readonly storageAccountUsage?: AccountUsage;
839
+ }
840
+
841
+ // @public
842
+ export interface FileServiceUsages {
843
+ readonly nextLink?: string;
844
+ readonly value?: FileServiceUsage[];
845
+ }
846
+
774
847
  // @public
775
848
  export interface FileShare extends AzureEntityResource {
776
849
  accessTier?: ShareAccessTier;
@@ -779,13 +852,21 @@ export interface FileShare extends AzureEntityResource {
779
852
  readonly deleted?: boolean;
780
853
  readonly deletedTime?: Date;
781
854
  enabledProtocols?: EnabledProtocols;
855
+ fileSharePaidBursting?: FileSharePropertiesFileSharePaidBursting;
856
+ readonly includedBurstIops?: number;
782
857
  readonly lastModifiedTime?: Date;
783
858
  readonly leaseDuration?: LeaseDuration;
784
859
  readonly leaseState?: LeaseState;
785
860
  readonly leaseStatus?: LeaseStatus;
861
+ readonly maxBurstCreditsForIops?: number;
786
862
  metadata?: {
787
863
  [propertyName: string]: string;
788
864
  };
865
+ readonly nextAllowedProvisionedBandwidthDowngradeTime?: Date;
866
+ readonly nextAllowedProvisionedIopsDowngradeTime?: Date;
867
+ readonly nextAllowedQuotaDowngradeTime?: Date;
868
+ provisionedBandwidthMibps?: number;
869
+ provisionedIops?: number;
789
870
  readonly remainingRetentionDays?: number;
790
871
  rootSquash?: RootSquashType;
791
872
  shareQuota?: number;
@@ -803,13 +884,21 @@ export interface FileShareItem extends AzureEntityResource {
803
884
  readonly deleted?: boolean;
804
885
  readonly deletedTime?: Date;
805
886
  enabledProtocols?: EnabledProtocols;
887
+ fileSharePaidBursting?: FileSharePropertiesFileSharePaidBursting;
888
+ readonly includedBurstIops?: number;
806
889
  readonly lastModifiedTime?: Date;
807
890
  readonly leaseDuration?: LeaseDuration;
808
891
  readonly leaseState?: LeaseState;
809
892
  readonly leaseStatus?: LeaseStatus;
893
+ readonly maxBurstCreditsForIops?: number;
810
894
  metadata?: {
811
895
  [propertyName: string]: string;
812
896
  };
897
+ readonly nextAllowedProvisionedBandwidthDowngradeTime?: Date;
898
+ readonly nextAllowedProvisionedIopsDowngradeTime?: Date;
899
+ readonly nextAllowedQuotaDowngradeTime?: Date;
900
+ provisionedBandwidthMibps?: number;
901
+ provisionedIops?: number;
813
902
  readonly remainingRetentionDays?: number;
814
903
  rootSquash?: RootSquashType;
815
904
  shareQuota?: number;
@@ -825,6 +914,31 @@ export interface FileShareItems {
825
914
  readonly value?: FileShareItem[];
826
915
  }
827
916
 
917
+ // @public
918
+ export interface FileShareLimits {
919
+ readonly maxProvisionedBandwidthMiBPerSec?: number;
920
+ readonly maxProvisionedIops?: number;
921
+ readonly maxProvisionedStorageGiB?: number;
922
+ readonly minProvisionedBandwidthMiBPerSec?: number;
923
+ readonly minProvisionedIops?: number;
924
+ readonly minProvisionedStorageGiB?: number;
925
+ }
926
+
927
+ // @public
928
+ export interface FileSharePropertiesFileSharePaidBursting {
929
+ paidBurstingEnabled?: boolean;
930
+ paidBurstingMaxBandwidthMibps?: number;
931
+ paidBurstingMaxIops?: number;
932
+ }
933
+
934
+ // @public
935
+ export interface FileShareRecommendations {
936
+ readonly bandwidthScalar?: number;
937
+ readonly baseBandwidthMiBPerSec?: number;
938
+ readonly baseIops?: number;
939
+ readonly ioScalar?: number;
940
+ }
941
+
828
942
  // @public
829
943
  export interface FileShares {
830
944
  create(resourceGroupName: string, accountName: string, shareName: string, fileShare: FileShare, options?: FileSharesCreateOptionalParams): Promise<FileSharesCreateResponse>;
@@ -1483,12 +1597,18 @@ export enum KnownSkuConversionStatus {
1483
1597
  // @public
1484
1598
  export enum KnownSkuName {
1485
1599
  PremiumLRS = "Premium_LRS",
1600
+ PremiumV2LRS = "PremiumV2_LRS",
1601
+ PremiumV2ZRS = "PremiumV2_ZRS",
1486
1602
  PremiumZRS = "Premium_ZRS",
1487
1603
  StandardGRS = "Standard_GRS",
1488
1604
  StandardGzrs = "Standard_GZRS",
1489
1605
  StandardLRS = "Standard_LRS",
1490
1606
  StandardRagrs = "Standard_RAGRS",
1491
1607
  StandardRagzrs = "Standard_RAGZRS",
1608
+ StandardV2GRS = "StandardV2_GRS",
1609
+ StandardV2Gzrs = "StandardV2_GZRS",
1610
+ StandardV2LRS = "StandardV2_LRS",
1611
+ StandardV2ZRS = "StandardV2_ZRS",
1492
1612
  StandardZRS = "Standard_ZRS"
1493
1613
  }
1494
1614
 
@@ -2020,6 +2140,7 @@ export interface ObjectReplicationPoliciesOperations {
2020
2140
  export interface ObjectReplicationPolicy extends Resource {
2021
2141
  destinationAccount?: string;
2022
2142
  readonly enabledTime?: Date;
2143
+ metrics?: ObjectReplicationPolicyPropertiesMetrics;
2023
2144
  readonly policyId?: string;
2024
2145
  rules?: ObjectReplicationPolicyRule[];
2025
2146
  sourceAccount?: string;
@@ -2031,6 +2152,11 @@ export interface ObjectReplicationPolicyFilter {
2031
2152
  prefixMatch?: string[];
2032
2153
  }
2033
2154
 
2155
+ // @public
2156
+ export interface ObjectReplicationPolicyPropertiesMetrics {
2157
+ enabled?: boolean;
2158
+ }
2159
+
2034
2160
  // @public
2035
2161
  export interface ObjectReplicationPolicyRule {
2036
2162
  destinationContainer: string;