@azure/arm-storage 17.0.0-beta.1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -11
- package/README.md +15 -9
- package/dist/index.js +474 -591
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/{esm → dist-esm/src}/models/index.d.ts +157 -51
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +13 -1
- package/dist-esm/src/models/index.js.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.d.ts +5 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +214 -32
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +11 -1
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobContainers.d.ts +3 -4
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobContainers.js +9 -6
- package/dist-esm/src/operations/blobContainers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobInventoryPolicies.d.ts +3 -4
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobInventoryPolicies.js +1 -2
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobServices.d.ts +3 -4
- package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobServices.js +1 -2
- package/dist-esm/src/operations/blobServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/deletedAccounts.d.ts +3 -4
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/deletedAccounts.js +1 -2
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/encryptionScopes.d.ts +3 -4
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/encryptionScopes.js +1 -2
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
- package/{esm → dist-esm/src}/operations/fileServices.d.ts +3 -3
- package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/fileServices.js +1 -1
- package/dist-esm/src/operations/fileServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/fileShares.d.ts +3 -4
- package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/fileShares.js +1 -2
- package/dist-esm/src/operations/fileShares.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +0 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/{esm → dist-esm/src}/operations/managementPolicies.d.ts +3 -3
- package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/managementPolicies.js +1 -1
- package/dist-esm/src/operations/managementPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.d.ts +8 -9
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.js +1 -2
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.js +1 -2
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/privateEndpointConnections.d.ts +3 -4
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/privateEndpointConnections.js +1 -2
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operations/privateLinkResources.d.ts +3 -3
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/privateLinkResources.js +1 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operations/queue.d.ts +3 -4
- package/dist-esm/src/operations/queue.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/queue.js +1 -2
- package/dist-esm/src/operations/queue.js.map +1 -0
- package/{esm → dist-esm/src}/operations/queueServices.d.ts +3 -3
- package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/queueServices.js +1 -1
- package/dist-esm/src/operations/queueServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/skus.d.ts +3 -4
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/skus.js +1 -2
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/{esm/operationsInterfaces → dist-esm/src/operations}/storageAccounts.d.ts +91 -4
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/storageAccounts.js +184 -10
- package/dist-esm/src/operations/storageAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/tableOperations.d.ts +9 -10
- package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/tableOperations.js +1 -2
- package/dist-esm/src/operations/tableOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/tableServices.d.ts +3 -3
- package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/tableServices.js +1 -1
- package/dist-esm/src/operations/tableServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.js +1 -2
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobContainers.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobInventoryPolicies.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobServices.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/deletedAccounts.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/encryptionScopes.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileShares.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
- package/{esm/operations/index.js.map → dist-esm/src/operationsInterfaces/index.d.ts.map} +1 -1
- package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.js +0 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +5 -6
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateEndpointConnections.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.js +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queue.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queue.js +9 -0
- package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queueServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queueServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/skus.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/{esm/operations → dist-esm/src/operationsInterfaces}/storageAccounts.d.ts +51 -44
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableOperations.d.ts +6 -7
- package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/{esm → dist-esm/src}/storageManagementClient.d.ts +5 -2
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
- package/{esm → dist-esm/src}/storageManagementClient.js +32 -3
- package/dist-esm/src/storageManagementClient.js.map +1 -0
- package/dist-esm/test/storage_examples.d.ts +4 -0
- package/dist-esm/test/storage_examples.d.ts.map +1 -0
- package/dist-esm/test/storage_examples.js +196 -0
- package/dist-esm/test/storage_examples.js.map +1 -0
- package/package.json +27 -33
- package/review/arm-storage.api.md +122 -51
- package/src/index.ts +0 -1
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +167 -52
- package/src/models/mappers.ts +230 -37
- package/src/models/parameters.ts +12 -1
- package/src/operations/blobContainers.ts +13 -12
- package/src/operations/blobInventoryPolicies.ts +4 -5
- package/src/operations/blobServices.ts +4 -5
- package/src/operations/deletedAccounts.ts +4 -5
- package/src/operations/encryptionScopes.ts +4 -5
- package/src/operations/fileServices.ts +4 -4
- package/src/operations/fileShares.ts +4 -5
- package/src/operations/managementPolicies.ts +4 -4
- package/src/operations/objectReplicationPoliciesOperations.ts +21 -22
- package/src/operations/operations.ts +4 -5
- package/src/operations/privateEndpointConnections.ts +4 -5
- package/src/operations/privateLinkResources.ts +4 -4
- package/src/operations/queue.ts +4 -5
- package/src/operations/queueServices.ts +4 -4
- package/src/operations/skus.ts +4 -5
- package/src/operations/storageAccounts.ts +258 -18
- package/src/operations/tableOperations.ts +29 -30
- package/src/operations/tableServices.ts +4 -4
- package/src/operations/usages.ts +4 -5
- package/src/operationsInterfaces/blobContainers.ts +0 -1
- package/src/operationsInterfaces/blobInventoryPolicies.ts +0 -1
- package/src/operationsInterfaces/blobServices.ts +0 -1
- package/src/operationsInterfaces/deletedAccounts.ts +0 -1
- package/src/operationsInterfaces/encryptionScopes.ts +0 -1
- package/src/operationsInterfaces/fileShares.ts +0 -1
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +12 -13
- package/src/operationsInterfaces/operations.ts +0 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
- package/src/operationsInterfaces/queue.ts +0 -1
- package/src/operationsInterfaces/skus.ts +0 -1
- package/src/operationsInterfaces/storageAccounts.ts +68 -1
- package/src/operationsInterfaces/tableOperations.ts +16 -17
- package/src/operationsInterfaces/usages.ts +0 -1
- package/src/storageManagementClient.ts +46 -3
- package/tsconfig.json +2 -3
- package/{esm/index.d.ts → types/arm-storage.d.ts} +247 -94
- package/types/tsdoc-metadata.json +11 -0
- package/esm/coreClientLro.d.ts +0 -26
- package/esm/coreClientLro.d.ts.map +0 -1
- package/esm/coreClientLro.js +0 -186
- package/esm/coreClientLro.js.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/lro/azureAsyncPolling.d.ts +0 -3
- package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
- package/esm/lro/azureAsyncPolling.js +0 -67
- package/esm/lro/azureAsyncPolling.js.map +0 -1
- package/esm/lro/bodyPolling.d.ts +0 -8
- package/esm/lro/bodyPolling.d.ts.map +0 -1
- package/esm/lro/bodyPolling.js +0 -37
- package/esm/lro/bodyPolling.js.map +0 -1
- package/esm/lro/index.d.ts +0 -4
- package/esm/lro/index.d.ts.map +0 -1
- package/esm/lro/index.js +0 -12
- package/esm/lro/index.js.map +0 -1
- package/esm/lro/locationPolling.d.ts +0 -3
- package/esm/lro/locationPolling.d.ts.map +0 -1
- package/esm/lro/locationPolling.js +0 -19
- package/esm/lro/locationPolling.js.map +0 -1
- package/esm/lro/lroEngine.d.ts +0 -14
- package/esm/lro/lroEngine.d.ts.map +0 -1
- package/esm/lro/lroEngine.js +0 -41
- package/esm/lro/lroEngine.js.map +0 -1
- package/esm/lro/models.d.ts +0 -138
- package/esm/lro/models.d.ts.map +0 -1
- package/esm/lro/models.js +0 -14
- package/esm/lro/models.js.map +0 -1
- package/esm/lro/operation.d.ts +0 -36
- package/esm/lro/operation.d.ts.map +0 -1
- package/esm/lro/operation.js +0 -82
- package/esm/lro/operation.js.map +0 -1
- package/esm/lro/passthrough.d.ts +0 -3
- package/esm/lro/passthrough.d.ts.map +0 -1
- package/esm/lro/passthrough.js +0 -15
- package/esm/lro/passthrough.js.map +0 -1
- package/esm/lro/requestUtils.d.ts +0 -16
- package/esm/lro/requestUtils.d.ts.map +0 -1
- package/esm/lro/requestUtils.js +0 -73
- package/esm/lro/requestUtils.js.map +0 -1
- package/esm/lro/stateMachine.d.ts +0 -18
- package/esm/lro/stateMachine.d.ts.map +0 -1
- package/esm/lro/stateMachine.js +0 -84
- package/esm/lro/stateMachine.js.map +0 -1
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/blobContainers.d.ts.map +0 -1
- package/esm/operations/blobContainers.js.map +0 -1
- package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
- package/esm/operations/blobInventoryPolicies.js.map +0 -1
- package/esm/operations/blobServices.d.ts.map +0 -1
- package/esm/operations/blobServices.js.map +0 -1
- package/esm/operations/deletedAccounts.d.ts.map +0 -1
- package/esm/operations/deletedAccounts.js.map +0 -1
- package/esm/operations/encryptionScopes.d.ts.map +0 -1
- package/esm/operations/encryptionScopes.js.map +0 -1
- package/esm/operations/fileServices.d.ts.map +0 -1
- package/esm/operations/fileServices.js.map +0 -1
- package/esm/operations/fileShares.d.ts.map +0 -1
- package/esm/operations/fileShares.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/managementPolicies.d.ts.map +0 -1
- package/esm/operations/managementPolicies.js.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/queue.d.ts.map +0 -1
- package/esm/operations/queue.js.map +0 -1
- package/esm/operations/queueServices.d.ts.map +0 -1
- package/esm/operations/queueServices.js.map +0 -1
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/storageAccounts.d.ts.map +0 -1
- package/esm/operations/storageAccounts.js.map +0 -1
- package/esm/operations/tableOperations.d.ts.map +0 -1
- package/esm/operations/tableOperations.js.map +0 -1
- package/esm/operations/tableServices.d.ts.map +0 -1
- package/esm/operations/tableServices.js.map +0 -1
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js.map +0 -1
- package/esm/operationsInterfaces/blobContainers.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobContainers.js +0 -9
- package/esm/operationsInterfaces/blobContainers.js.map +0 -1
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobInventoryPolicies.js +0 -9
- package/esm/operationsInterfaces/blobInventoryPolicies.js.map +0 -1
- package/esm/operationsInterfaces/blobServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobServices.js +0 -9
- package/esm/operationsInterfaces/blobServices.js.map +0 -1
- package/esm/operationsInterfaces/deletedAccounts.d.ts.map +0 -1
- package/esm/operationsInterfaces/deletedAccounts.js +0 -9
- package/esm/operationsInterfaces/deletedAccounts.js.map +0 -1
- package/esm/operationsInterfaces/encryptionScopes.d.ts.map +0 -1
- package/esm/operationsInterfaces/encryptionScopes.js +0 -9
- package/esm/operationsInterfaces/encryptionScopes.js.map +0 -1
- package/esm/operationsInterfaces/fileServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/fileServices.js.map +0 -1
- package/esm/operationsInterfaces/fileShares.d.ts.map +0 -1
- package/esm/operationsInterfaces/fileShares.js +0 -9
- package/esm/operationsInterfaces/fileShares.js.map +0 -1
- package/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/esm/operationsInterfaces/index.js.map +0 -1
- package/esm/operationsInterfaces/managementPolicies.d.ts.map +0 -1
- package/esm/operationsInterfaces/managementPolicies.js.map +0 -1
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +0 -9
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/esm/operationsInterfaces/operations.js +0 -9
- package/esm/operationsInterfaces/operations.js.map +0 -1
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operationsInterfaces/privateEndpointConnections.js +0 -9
- package/esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/esm/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/esm/operationsInterfaces/queue.d.ts.map +0 -1
- package/esm/operationsInterfaces/queue.js +0 -9
- package/esm/operationsInterfaces/queue.js.map +0 -1
- package/esm/operationsInterfaces/queueServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/queueServices.js.map +0 -1
- package/esm/operationsInterfaces/skus.d.ts.map +0 -1
- package/esm/operationsInterfaces/skus.js +0 -9
- package/esm/operationsInterfaces/skus.js.map +0 -1
- package/esm/operationsInterfaces/storageAccounts.d.ts.map +0 -1
- package/esm/operationsInterfaces/storageAccounts.js +0 -9
- package/esm/operationsInterfaces/storageAccounts.js.map +0 -1
- package/esm/operationsInterfaces/tableOperations.d.ts.map +0 -1
- package/esm/operationsInterfaces/tableOperations.js +0 -9
- package/esm/operationsInterfaces/tableOperations.js.map +0 -1
- package/esm/operationsInterfaces/tableServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/tableServices.js.map +0 -1
- package/esm/operationsInterfaces/usages.d.ts.map +0 -1
- package/esm/operationsInterfaces/usages.js +0 -9
- package/esm/operationsInterfaces/usages.js.map +0 -1
- package/esm/storageManagementClient.d.ts.map +0 -1
- package/esm/storageManagementClient.js.map +0 -1
- package/esm/storageManagementClientContext.d.ts +0 -16
- package/esm/storageManagementClientContext.d.ts.map +0 -1
- package/esm/storageManagementClientContext.js +0 -49
- package/esm/storageManagementClientContext.js.map +0 -1
- package/src/coreClientLro.ts +0 -323
- package/src/lro/azureAsyncPolling.ts +0 -96
- package/src/lro/bodyPolling.ts +0 -54
- package/src/lro/index.ts +0 -26
- package/src/lro/locationPolling.ts +0 -30
- package/src/lro/lroEngine.ts +0 -61
- package/src/lro/models.ts +0 -173
- package/src/lro/operation.ts +0 -120
- package/src/lro/passthrough.ts +0 -23
- package/src/lro/requestUtils.ts +0 -105
- package/src/lro/stateMachine.ts +0 -138
- package/src/storageManagementClientContext.ts +0 -70
package/dist/index.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
require('@azure/core-paging');
|
|
7
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
8
7
|
var coreLro = require('@azure/core-lro');
|
|
9
8
|
|
|
10
9
|
/*
|
|
@@ -44,6 +43,10 @@ var coreLro = require('@azure/core-lro');
|
|
|
44
43
|
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
45
44
|
KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
46
45
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
46
|
+
(function (KnownPublicNetworkAccess) {
|
|
47
|
+
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
48
|
+
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
49
|
+
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
47
50
|
(function (KnownExpirationAction) {
|
|
48
51
|
KnownExpirationAction["Log"] = "Log";
|
|
49
52
|
})(exports.KnownExpirationAction || (exports.KnownExpirationAction = {}));
|
|
@@ -78,7 +81,6 @@ var coreLro = require('@azure/core-lro');
|
|
|
78
81
|
KnownDefaultSharePermission["StorageFileDataSmbShareReader"] = "StorageFileDataSmbShareReader";
|
|
79
82
|
KnownDefaultSharePermission["StorageFileDataSmbShareContributor"] = "StorageFileDataSmbShareContributor";
|
|
80
83
|
KnownDefaultSharePermission["StorageFileDataSmbShareElevatedContributor"] = "StorageFileDataSmbShareElevatedContributor";
|
|
81
|
-
KnownDefaultSharePermission["StorageFileDataSmbShareOwner"] = "StorageFileDataSmbShareOwner";
|
|
82
84
|
})(exports.KnownDefaultSharePermission || (exports.KnownDefaultSharePermission = {}));
|
|
83
85
|
(function (KnownLargeFileSharesState) {
|
|
84
86
|
KnownLargeFileSharesState["Disabled"] = "Disabled";
|
|
@@ -93,6 +95,11 @@ var coreLro = require('@azure/core-lro');
|
|
|
93
95
|
KnownMinimumTlsVersion["TLS11"] = "TLS1_1";
|
|
94
96
|
KnownMinimumTlsVersion["TLS12"] = "TLS1_2";
|
|
95
97
|
})(exports.KnownMinimumTlsVersion || (exports.KnownMinimumTlsVersion = {}));
|
|
98
|
+
(function (KnownAccountImmutabilityPolicyState) {
|
|
99
|
+
KnownAccountImmutabilityPolicyState["Unlocked"] = "Unlocked";
|
|
100
|
+
KnownAccountImmutabilityPolicyState["Locked"] = "Locked";
|
|
101
|
+
KnownAccountImmutabilityPolicyState["Disabled"] = "Disabled";
|
|
102
|
+
})(exports.KnownAccountImmutabilityPolicyState || (exports.KnownAccountImmutabilityPolicyState = {}));
|
|
96
103
|
(function (KnownGeoReplicationStatus) {
|
|
97
104
|
KnownGeoReplicationStatus["Live"] = "Live";
|
|
98
105
|
KnownGeoReplicationStatus["Bootstrap"] = "Bootstrap";
|
|
@@ -703,6 +710,12 @@ const StorageAccountCreateParameters = {
|
|
|
703
710
|
className: "Identity"
|
|
704
711
|
}
|
|
705
712
|
},
|
|
713
|
+
publicNetworkAccess: {
|
|
714
|
+
serializedName: "properties.publicNetworkAccess",
|
|
715
|
+
type: {
|
|
716
|
+
name: "String"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
706
719
|
sasPolicy: {
|
|
707
720
|
serializedName: "properties.sasPolicy",
|
|
708
721
|
type: {
|
|
@@ -806,6 +819,19 @@ const StorageAccountCreateParameters = {
|
|
|
806
819
|
type: {
|
|
807
820
|
name: "Boolean"
|
|
808
821
|
}
|
|
822
|
+
},
|
|
823
|
+
defaultToOAuthAuthentication: {
|
|
824
|
+
serializedName: "properties.defaultToOAuthAuthentication",
|
|
825
|
+
type: {
|
|
826
|
+
name: "Boolean"
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
immutableStorageWithVersioning: {
|
|
830
|
+
serializedName: "properties.immutableStorageWithVersioning",
|
|
831
|
+
type: {
|
|
832
|
+
name: "Composite",
|
|
833
|
+
className: "ImmutableStorageAccount"
|
|
834
|
+
}
|
|
809
835
|
}
|
|
810
836
|
}
|
|
811
837
|
}
|
|
@@ -1368,31 +1394,53 @@ const RoutingPreference = {
|
|
|
1368
1394
|
}
|
|
1369
1395
|
}
|
|
1370
1396
|
};
|
|
1371
|
-
const
|
|
1397
|
+
const ImmutableStorageAccount = {
|
|
1372
1398
|
type: {
|
|
1373
1399
|
name: "Composite",
|
|
1374
|
-
className: "
|
|
1400
|
+
className: "ImmutableStorageAccount",
|
|
1375
1401
|
modelProperties: {
|
|
1376
|
-
|
|
1377
|
-
serializedName: "
|
|
1378
|
-
readOnly: true,
|
|
1402
|
+
enabled: {
|
|
1403
|
+
serializedName: "enabled",
|
|
1379
1404
|
type: {
|
|
1380
|
-
name: "
|
|
1405
|
+
name: "Boolean"
|
|
1381
1406
|
}
|
|
1382
1407
|
},
|
|
1383
|
-
|
|
1384
|
-
serializedName: "
|
|
1385
|
-
readOnly: true,
|
|
1408
|
+
immutabilityPolicy: {
|
|
1409
|
+
serializedName: "immutabilityPolicy",
|
|
1386
1410
|
type: {
|
|
1387
|
-
name: "
|
|
1411
|
+
name: "Composite",
|
|
1412
|
+
className: "AccountImmutabilityPolicyProperties"
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
const AccountImmutabilityPolicyProperties = {
|
|
1419
|
+
type: {
|
|
1420
|
+
name: "Composite",
|
|
1421
|
+
className: "AccountImmutabilityPolicyProperties",
|
|
1422
|
+
modelProperties: {
|
|
1423
|
+
immutabilityPeriodSinceCreationInDays: {
|
|
1424
|
+
constraints: {
|
|
1425
|
+
InclusiveMaximum: 146000,
|
|
1426
|
+
InclusiveMinimum: 1
|
|
1427
|
+
},
|
|
1428
|
+
serializedName: "immutabilityPeriodSinceCreationInDays",
|
|
1429
|
+
type: {
|
|
1430
|
+
name: "Number"
|
|
1388
1431
|
}
|
|
1389
1432
|
},
|
|
1390
|
-
|
|
1391
|
-
serializedName: "
|
|
1392
|
-
readOnly: true,
|
|
1433
|
+
state: {
|
|
1434
|
+
serializedName: "state",
|
|
1393
1435
|
type: {
|
|
1394
1436
|
name: "String"
|
|
1395
1437
|
}
|
|
1438
|
+
},
|
|
1439
|
+
allowProtectedAppendWrites: {
|
|
1440
|
+
serializedName: "allowProtectedAppendWrites",
|
|
1441
|
+
type: {
|
|
1442
|
+
name: "Boolean"
|
|
1443
|
+
}
|
|
1396
1444
|
}
|
|
1397
1445
|
}
|
|
1398
1446
|
}
|
|
@@ -1637,6 +1685,35 @@ const PrivateLinkServiceConnectionState = {
|
|
|
1637
1685
|
}
|
|
1638
1686
|
}
|
|
1639
1687
|
};
|
|
1688
|
+
const Resource = {
|
|
1689
|
+
type: {
|
|
1690
|
+
name: "Composite",
|
|
1691
|
+
className: "Resource",
|
|
1692
|
+
modelProperties: {
|
|
1693
|
+
id: {
|
|
1694
|
+
serializedName: "id",
|
|
1695
|
+
readOnly: true,
|
|
1696
|
+
type: {
|
|
1697
|
+
name: "String"
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
name: {
|
|
1701
|
+
serializedName: "name",
|
|
1702
|
+
readOnly: true,
|
|
1703
|
+
type: {
|
|
1704
|
+
name: "String"
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
type: {
|
|
1708
|
+
serializedName: "type",
|
|
1709
|
+
readOnly: true,
|
|
1710
|
+
type: {
|
|
1711
|
+
name: "String"
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1640
1717
|
const BlobRestoreStatus = {
|
|
1641
1718
|
type: {
|
|
1642
1719
|
name: "Composite",
|
|
@@ -1846,6 +1923,25 @@ const StorageAccountUpdateParameters = {
|
|
|
1846
1923
|
type: {
|
|
1847
1924
|
name: "Boolean"
|
|
1848
1925
|
}
|
|
1926
|
+
},
|
|
1927
|
+
defaultToOAuthAuthentication: {
|
|
1928
|
+
serializedName: "properties.defaultToOAuthAuthentication",
|
|
1929
|
+
type: {
|
|
1930
|
+
name: "Boolean"
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1933
|
+
publicNetworkAccess: {
|
|
1934
|
+
serializedName: "properties.publicNetworkAccess",
|
|
1935
|
+
type: {
|
|
1936
|
+
name: "String"
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
immutableStorageWithVersioning: {
|
|
1940
|
+
serializedName: "properties.immutableStorageWithVersioning",
|
|
1941
|
+
type: {
|
|
1942
|
+
name: "Composite",
|
|
1943
|
+
className: "ImmutableStorageAccount"
|
|
1944
|
+
}
|
|
1849
1945
|
}
|
|
1850
1946
|
}
|
|
1851
1947
|
}
|
|
@@ -3340,6 +3436,12 @@ const ImmutabilityPolicyProperties = {
|
|
|
3340
3436
|
type: {
|
|
3341
3437
|
name: "Boolean"
|
|
3342
3438
|
}
|
|
3439
|
+
},
|
|
3440
|
+
allowProtectedAppendWritesAll: {
|
|
3441
|
+
serializedName: "properties.allowProtectedAppendWritesAll",
|
|
3442
|
+
type: {
|
|
3443
|
+
name: "Boolean"
|
|
3444
|
+
}
|
|
3343
3445
|
}
|
|
3344
3446
|
}
|
|
3345
3447
|
}
|
|
@@ -3390,6 +3492,18 @@ const UpdateHistoryProperty = {
|
|
|
3390
3492
|
type: {
|
|
3391
3493
|
name: "String"
|
|
3392
3494
|
}
|
|
3495
|
+
},
|
|
3496
|
+
allowProtectedAppendWrites: {
|
|
3497
|
+
serializedName: "allowProtectedAppendWrites",
|
|
3498
|
+
type: {
|
|
3499
|
+
name: "Boolean"
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3502
|
+
allowProtectedAppendWritesAll: {
|
|
3503
|
+
serializedName: "allowProtectedAppendWritesAll",
|
|
3504
|
+
type: {
|
|
3505
|
+
name: "Boolean"
|
|
3506
|
+
}
|
|
3393
3507
|
}
|
|
3394
3508
|
}
|
|
3395
3509
|
}
|
|
@@ -3417,6 +3531,13 @@ const LegalHoldProperties = {
|
|
|
3417
3531
|
}
|
|
3418
3532
|
}
|
|
3419
3533
|
}
|
|
3534
|
+
},
|
|
3535
|
+
protectedAppendWritesHistory: {
|
|
3536
|
+
serializedName: "protectedAppendWritesHistory",
|
|
3537
|
+
type: {
|
|
3538
|
+
name: "Composite",
|
|
3539
|
+
className: "ProtectedAppendWritesHistory"
|
|
3540
|
+
}
|
|
3420
3541
|
}
|
|
3421
3542
|
}
|
|
3422
3543
|
}
|
|
@@ -3464,6 +3585,27 @@ const TagProperty = {
|
|
|
3464
3585
|
}
|
|
3465
3586
|
}
|
|
3466
3587
|
};
|
|
3588
|
+
const ProtectedAppendWritesHistory = {
|
|
3589
|
+
type: {
|
|
3590
|
+
name: "Composite",
|
|
3591
|
+
className: "ProtectedAppendWritesHistory",
|
|
3592
|
+
modelProperties: {
|
|
3593
|
+
allowProtectedAppendWritesAll: {
|
|
3594
|
+
serializedName: "allowProtectedAppendWritesAll",
|
|
3595
|
+
type: {
|
|
3596
|
+
name: "Boolean"
|
|
3597
|
+
}
|
|
3598
|
+
},
|
|
3599
|
+
timestamp: {
|
|
3600
|
+
serializedName: "timestamp",
|
|
3601
|
+
readOnly: true,
|
|
3602
|
+
type: {
|
|
3603
|
+
name: "DateTime"
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
};
|
|
3467
3609
|
const ImmutableStorageWithVersioning = {
|
|
3468
3610
|
type: {
|
|
3469
3611
|
name: "Composite",
|
|
@@ -3519,6 +3661,12 @@ const LegalHold = {
|
|
|
3519
3661
|
}
|
|
3520
3662
|
}
|
|
3521
3663
|
}
|
|
3664
|
+
},
|
|
3665
|
+
allowProtectedAppendWritesAll: {
|
|
3666
|
+
serializedName: "allowProtectedAppendWritesAll",
|
|
3667
|
+
type: {
|
|
3668
|
+
name: "Boolean"
|
|
3669
|
+
}
|
|
3522
3670
|
}
|
|
3523
3671
|
}
|
|
3524
3672
|
}
|
|
@@ -4031,25 +4179,6 @@ const ListTableResource = {
|
|
|
4031
4179
|
}
|
|
4032
4180
|
}
|
|
4033
4181
|
};
|
|
4034
|
-
const TrackedResource = {
|
|
4035
|
-
type: {
|
|
4036
|
-
name: "Composite",
|
|
4037
|
-
className: "TrackedResource",
|
|
4038
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
4039
|
-
serializedName: "tags",
|
|
4040
|
-
type: {
|
|
4041
|
-
name: "Dictionary",
|
|
4042
|
-
value: { type: { name: "String" } }
|
|
4043
|
-
}
|
|
4044
|
-
}, location: {
|
|
4045
|
-
serializedName: "location",
|
|
4046
|
-
required: true,
|
|
4047
|
-
type: {
|
|
4048
|
-
name: "String"
|
|
4049
|
-
}
|
|
4050
|
-
} })
|
|
4051
|
-
}
|
|
4052
|
-
};
|
|
4053
4182
|
const PrivateEndpointConnection = {
|
|
4054
4183
|
type: {
|
|
4055
4184
|
name: "Composite",
|
|
@@ -4075,6 +4204,25 @@ const PrivateEndpointConnection = {
|
|
|
4075
4204
|
} })
|
|
4076
4205
|
}
|
|
4077
4206
|
};
|
|
4207
|
+
const TrackedResource = {
|
|
4208
|
+
type: {
|
|
4209
|
+
name: "Composite",
|
|
4210
|
+
className: "TrackedResource",
|
|
4211
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
4212
|
+
serializedName: "tags",
|
|
4213
|
+
type: {
|
|
4214
|
+
name: "Dictionary",
|
|
4215
|
+
value: { type: { name: "String" } }
|
|
4216
|
+
}
|
|
4217
|
+
}, location: {
|
|
4218
|
+
serializedName: "location",
|
|
4219
|
+
required: true,
|
|
4220
|
+
type: {
|
|
4221
|
+
name: "String"
|
|
4222
|
+
}
|
|
4223
|
+
} })
|
|
4224
|
+
}
|
|
4225
|
+
};
|
|
4078
4226
|
const ProxyResource = {
|
|
4079
4227
|
type: {
|
|
4080
4228
|
name: "Composite",
|
|
@@ -4629,6 +4777,22 @@ const StorageAccount = {
|
|
|
4629
4777
|
type: {
|
|
4630
4778
|
name: "Boolean"
|
|
4631
4779
|
}
|
|
4780
|
+
}, defaultToOAuthAuthentication: {
|
|
4781
|
+
serializedName: "properties.defaultToOAuthAuthentication",
|
|
4782
|
+
type: {
|
|
4783
|
+
name: "Boolean"
|
|
4784
|
+
}
|
|
4785
|
+
}, publicNetworkAccess: {
|
|
4786
|
+
serializedName: "properties.publicNetworkAccess",
|
|
4787
|
+
type: {
|
|
4788
|
+
name: "String"
|
|
4789
|
+
}
|
|
4790
|
+
}, immutableStorageWithVersioning: {
|
|
4791
|
+
serializedName: "properties.immutableStorageWithVersioning",
|
|
4792
|
+
type: {
|
|
4793
|
+
name: "Composite",
|
|
4794
|
+
className: "ImmutableStorageAccount"
|
|
4795
|
+
}
|
|
4632
4796
|
} })
|
|
4633
4797
|
}
|
|
4634
4798
|
};
|
|
@@ -4773,6 +4937,16 @@ const ListContainerItem = {
|
|
|
4773
4937
|
name: "Composite",
|
|
4774
4938
|
className: "ImmutableStorageWithVersioning"
|
|
4775
4939
|
}
|
|
4940
|
+
}, enableNfsV3RootSquash: {
|
|
4941
|
+
serializedName: "properties.enableNfsV3RootSquash",
|
|
4942
|
+
type: {
|
|
4943
|
+
name: "Boolean"
|
|
4944
|
+
}
|
|
4945
|
+
}, enableNfsV3AllSquash: {
|
|
4946
|
+
serializedName: "properties.enableNfsV3AllSquash",
|
|
4947
|
+
type: {
|
|
4948
|
+
name: "Boolean"
|
|
4949
|
+
}
|
|
4776
4950
|
} })
|
|
4777
4951
|
}
|
|
4778
4952
|
};
|
|
@@ -4880,6 +5054,16 @@ const BlobContainer = {
|
|
|
4880
5054
|
name: "Composite",
|
|
4881
5055
|
className: "ImmutableStorageWithVersioning"
|
|
4882
5056
|
}
|
|
5057
|
+
}, enableNfsV3RootSquash: {
|
|
5058
|
+
serializedName: "properties.enableNfsV3RootSquash",
|
|
5059
|
+
type: {
|
|
5060
|
+
name: "Boolean"
|
|
5061
|
+
}
|
|
5062
|
+
}, enableNfsV3AllSquash: {
|
|
5063
|
+
serializedName: "properties.enableNfsV3AllSquash",
|
|
5064
|
+
type: {
|
|
5065
|
+
name: "Boolean"
|
|
5066
|
+
}
|
|
4883
5067
|
} })
|
|
4884
5068
|
}
|
|
4885
5069
|
};
|
|
@@ -4903,6 +5087,11 @@ const ImmutabilityPolicy = {
|
|
|
4903
5087
|
type: {
|
|
4904
5088
|
name: "Boolean"
|
|
4905
5089
|
}
|
|
5090
|
+
}, allowProtectedAppendWritesAll: {
|
|
5091
|
+
serializedName: "properties.allowProtectedAppendWritesAll",
|
|
5092
|
+
type: {
|
|
5093
|
+
name: "Boolean"
|
|
5094
|
+
}
|
|
4906
5095
|
} })
|
|
4907
5096
|
}
|
|
4908
5097
|
};
|
|
@@ -5265,7 +5454,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5265
5454
|
AzureFilesIdentityBasedAuthentication: AzureFilesIdentityBasedAuthentication,
|
|
5266
5455
|
ActiveDirectoryProperties: ActiveDirectoryProperties,
|
|
5267
5456
|
RoutingPreference: RoutingPreference,
|
|
5268
|
-
|
|
5457
|
+
ImmutableStorageAccount: ImmutableStorageAccount,
|
|
5458
|
+
AccountImmutabilityPolicyProperties: AccountImmutabilityPolicyProperties,
|
|
5269
5459
|
Endpoints: Endpoints,
|
|
5270
5460
|
StorageAccountMicrosoftEndpoints: StorageAccountMicrosoftEndpoints,
|
|
5271
5461
|
StorageAccountInternetEndpoints: StorageAccountInternetEndpoints,
|
|
@@ -5273,6 +5463,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5273
5463
|
GeoReplicationStats: GeoReplicationStats,
|
|
5274
5464
|
PrivateEndpoint: PrivateEndpoint,
|
|
5275
5465
|
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
5466
|
+
Resource: Resource,
|
|
5276
5467
|
BlobRestoreStatus: BlobRestoreStatus,
|
|
5277
5468
|
BlobRestoreParameters: BlobRestoreParameters,
|
|
5278
5469
|
BlobRestoreRange: BlobRestoreRange,
|
|
@@ -5327,6 +5518,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5327
5518
|
UpdateHistoryProperty: UpdateHistoryProperty,
|
|
5328
5519
|
LegalHoldProperties: LegalHoldProperties,
|
|
5329
5520
|
TagProperty: TagProperty,
|
|
5521
|
+
ProtectedAppendWritesHistory: ProtectedAppendWritesHistory,
|
|
5330
5522
|
ImmutableStorageWithVersioning: ImmutableStorageWithVersioning,
|
|
5331
5523
|
LegalHold: LegalHold,
|
|
5332
5524
|
LeaseContainerRequest: LeaseContainerRequest,
|
|
@@ -5349,8 +5541,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5349
5541
|
ListQueueResource: ListQueueResource,
|
|
5350
5542
|
ListTableServices: ListTableServices,
|
|
5351
5543
|
ListTableResource: ListTableResource,
|
|
5352
|
-
TrackedResource: TrackedResource,
|
|
5353
5544
|
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
5545
|
+
TrackedResource: TrackedResource,
|
|
5354
5546
|
ProxyResource: ProxyResource,
|
|
5355
5547
|
ManagementPolicy: ManagementPolicy,
|
|
5356
5548
|
BlobInventoryPolicy: BlobInventoryPolicy,
|
|
@@ -5412,7 +5604,7 @@ const $host = {
|
|
|
5412
5604
|
const apiVersion = {
|
|
5413
5605
|
parameterPath: "apiVersion",
|
|
5414
5606
|
mapper: {
|
|
5415
|
-
defaultValue: "2021-
|
|
5607
|
+
defaultValue: "2021-06-01",
|
|
5416
5608
|
isConstant: true,
|
|
5417
5609
|
serializedName: "api-version",
|
|
5418
5610
|
type: {
|
|
@@ -5518,6 +5710,16 @@ const parameters3 = {
|
|
|
5518
5710
|
parameterPath: "parameters",
|
|
5519
5711
|
mapper: ServiceSasParameters
|
|
5520
5712
|
};
|
|
5713
|
+
const requestType = {
|
|
5714
|
+
parameterPath: "requestType",
|
|
5715
|
+
mapper: {
|
|
5716
|
+
serializedName: "requestType",
|
|
5717
|
+
required: true,
|
|
5718
|
+
type: {
|
|
5719
|
+
name: "String"
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5722
|
+
};
|
|
5521
5723
|
const parameters4 = {
|
|
5522
5724
|
parameterPath: "parameters",
|
|
5523
5725
|
mapper: BlobRestoreParameters
|
|
@@ -5877,7 +6079,7 @@ const tableName = {
|
|
|
5877
6079
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5878
6080
|
*/
|
|
5879
6081
|
/// <reference lib="esnext.asynciterable" />
|
|
5880
|
-
/** Class
|
|
6082
|
+
/** Class containing Operations operations. */
|
|
5881
6083
|
class OperationsImpl {
|
|
5882
6084
|
/**
|
|
5883
6085
|
* Initialize a new instance of the class Operations class.
|
|
@@ -5960,7 +6162,7 @@ const listOperationSpec = {
|
|
|
5960
6162
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5961
6163
|
*/
|
|
5962
6164
|
/// <reference lib="esnext.asynciterable" />
|
|
5963
|
-
/** Class
|
|
6165
|
+
/** Class containing Skus operations. */
|
|
5964
6166
|
class SkusImpl {
|
|
5965
6167
|
/**
|
|
5966
6168
|
* Initialize a new instance of the class Skus class.
|
|
@@ -6042,70 +6244,25 @@ const listOperationSpec$1 = {
|
|
|
6042
6244
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6043
6245
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6044
6246
|
*/
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
var _a, _b, _c;
|
|
6053
|
-
return ((_c = (_b = (_a = getAzureAsyncOperation(rawResponse)) !== null && _a !== void 0 ? _a : getLocation(rawResponse)) !== null && _b !== void 0 ? _b : getOperationLocation(rawResponse)) !== null && _c !== void 0 ? _c : defaultPath);
|
|
6054
|
-
}
|
|
6055
|
-
function getLocation(rawResponse) {
|
|
6056
|
-
return rawResponse.headers["location"];
|
|
6057
|
-
}
|
|
6058
|
-
function getOperationLocation(rawResponse) {
|
|
6059
|
-
return rawResponse.headers["operation-location"];
|
|
6060
|
-
}
|
|
6061
|
-
function getAzureAsyncOperation(rawResponse) {
|
|
6062
|
-
return rawResponse.headers["azure-asyncoperation"];
|
|
6063
|
-
}
|
|
6064
|
-
function inferLroMode(requestPath, requestMethod, rawResponse) {
|
|
6065
|
-
if (getAzureAsyncOperation(rawResponse) !== undefined) {
|
|
6066
|
-
return {
|
|
6067
|
-
mode: "AzureAsync",
|
|
6068
|
-
resourceLocation: requestMethod === "PUT"
|
|
6069
|
-
? requestPath
|
|
6070
|
-
: requestMethod === "POST"
|
|
6071
|
-
? getLocation(rawResponse)
|
|
6072
|
-
: undefined
|
|
6073
|
-
};
|
|
6074
|
-
}
|
|
6075
|
-
else if (getLocation(rawResponse) !== undefined ||
|
|
6076
|
-
getOperationLocation(rawResponse) !== undefined) {
|
|
6077
|
-
return {
|
|
6078
|
-
mode: "Location"
|
|
6079
|
-
};
|
|
6080
|
-
}
|
|
6081
|
-
else if (["PUT", "PATCH"].includes(requestMethod)) {
|
|
6082
|
-
return {
|
|
6083
|
-
mode: "Body"
|
|
6084
|
-
};
|
|
6085
|
-
}
|
|
6086
|
-
return {};
|
|
6087
|
-
}
|
|
6088
|
-
class RestError extends Error {
|
|
6089
|
-
constructor(message, statusCode) {
|
|
6090
|
-
super(message);
|
|
6091
|
-
this.name = "RestError";
|
|
6092
|
-
this.statusCode = statusCode;
|
|
6093
|
-
Object.setPrototypeOf(this, RestError.prototype);
|
|
6247
|
+
class LroImpl {
|
|
6248
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
6249
|
+
this.sendOperationFn = sendOperationFn;
|
|
6250
|
+
this.args = args;
|
|
6251
|
+
this.spec = spec;
|
|
6252
|
+
this.requestPath = requestPath;
|
|
6253
|
+
this.requestMethod = requestMethod;
|
|
6094
6254
|
}
|
|
6095
|
-
|
|
6096
|
-
function
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
throw new RestError(`Received unexpected HTTP status code ${code} in the initial response. This may indicate a server issue.`, code);
|
|
6255
|
+
sendInitialRequest() {
|
|
6256
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6257
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
6258
|
+
});
|
|
6100
6259
|
}
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
throw new RestError(`Received unexpected HTTP status code ${code} while polling. This may indicate a server issue.`, code);
|
|
6260
|
+
sendPollRequest(path) {
|
|
6261
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6262
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
6263
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
6264
|
+
});
|
|
6107
6265
|
}
|
|
6108
|
-
return false;
|
|
6109
6266
|
}
|
|
6110
6267
|
|
|
6111
6268
|
/*
|
|
@@ -6115,448 +6272,15 @@ function isUnexpectedPollingResponse(rawResponse) {
|
|
|
6115
6272
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6116
6273
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6117
6274
|
*/
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
*/
|
|
6128
|
-
function getResponseStatus(rawResponse) {
|
|
6129
|
-
var _a, _b;
|
|
6130
|
-
const { status } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};
|
|
6131
|
-
return (_b = status === null || status === void 0 ? void 0 : status.toLowerCase()) !== null && _b !== void 0 ? _b : "succeeded";
|
|
6132
|
-
}
|
|
6133
|
-
function isAzureAsyncPollingDone(rawResponse) {
|
|
6134
|
-
const state = getResponseStatus(rawResponse);
|
|
6135
|
-
if (isUnexpectedPollingResponse(rawResponse) ||
|
|
6136
|
-
failureStates.includes(state)) {
|
|
6137
|
-
throw new Error(`Operation status: ${state}`);
|
|
6138
|
-
}
|
|
6139
|
-
return successStates.includes(state);
|
|
6140
|
-
}
|
|
6141
|
-
function sendFinalRequest(lro, lroResourceLocationConfig, resourceLocation) {
|
|
6142
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6143
|
-
switch (lroResourceLocationConfig) {
|
|
6144
|
-
case "original-uri":
|
|
6145
|
-
return lro.retrieveAzureAsyncResource();
|
|
6146
|
-
case "azure-async-operation":
|
|
6147
|
-
return Promise.resolve(undefined);
|
|
6148
|
-
case "location":
|
|
6149
|
-
default:
|
|
6150
|
-
return lro.retrieveAzureAsyncResource(resourceLocation);
|
|
6151
|
-
}
|
|
6152
|
-
});
|
|
6153
|
-
}
|
|
6154
|
-
function processAzureAsyncOperationResult(lro, resourceLocation, lroResourceLocationConfig) {
|
|
6155
|
-
return (rawResponse, flatResponse) => {
|
|
6156
|
-
if (isAzureAsyncPollingDone(rawResponse)) {
|
|
6157
|
-
if (resourceLocation === undefined) {
|
|
6158
|
-
return { rawResponse, flatResponse, done: true };
|
|
6159
|
-
}
|
|
6160
|
-
else {
|
|
6161
|
-
return {
|
|
6162
|
-
rawResponse,
|
|
6163
|
-
flatResponse,
|
|
6164
|
-
done: false,
|
|
6165
|
-
next: () => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6166
|
-
const finalResponse = yield sendFinalRequest(lro, lroResourceLocationConfig, resourceLocation);
|
|
6167
|
-
return Object.assign(Object.assign({}, (finalResponse !== null && finalResponse !== void 0 ? finalResponse : {
|
|
6168
|
-
rawResponse,
|
|
6169
|
-
flatResponse
|
|
6170
|
-
})), { done: true });
|
|
6171
|
-
})
|
|
6172
|
-
};
|
|
6173
|
-
}
|
|
6174
|
-
}
|
|
6175
|
-
return {
|
|
6176
|
-
rawResponse,
|
|
6177
|
-
flatResponse,
|
|
6178
|
-
done: false
|
|
6179
|
-
};
|
|
6180
|
-
};
|
|
6181
|
-
}
|
|
6182
|
-
|
|
6183
|
-
/*
|
|
6184
|
-
* Copyright (c) Microsoft Corporation.
|
|
6185
|
-
* Licensed under the MIT License.
|
|
6186
|
-
*
|
|
6187
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6188
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6189
|
-
*/
|
|
6190
|
-
function getProvisioningState(rawResponse) {
|
|
6191
|
-
var _a, _b, _c;
|
|
6192
|
-
const { properties, provisioningState } = (_a = rawResponse.body) !== null && _a !== void 0 ? _a : {};
|
|
6193
|
-
const state = (_b = properties === null || properties === void 0 ? void 0 : properties.provisioningState) !== null && _b !== void 0 ? _b : provisioningState;
|
|
6194
|
-
return (_c = state === null || state === void 0 ? void 0 : state.toLowerCase()) !== null && _c !== void 0 ? _c : "succeeded";
|
|
6195
|
-
}
|
|
6196
|
-
function isBodyPollingDone(rawResponse) {
|
|
6197
|
-
const state = getProvisioningState(rawResponse);
|
|
6198
|
-
if (isUnexpectedPollingResponse(rawResponse) ||
|
|
6199
|
-
failureStates.includes(state)) {
|
|
6200
|
-
throw new Error(`The long running operation has failed. The provisioning state: ${state}.`);
|
|
6201
|
-
}
|
|
6202
|
-
return successStates.includes(state);
|
|
6203
|
-
}
|
|
6204
|
-
/**
|
|
6205
|
-
* Creates a polling strategy based on BodyPolling which uses the provisioning state
|
|
6206
|
-
* from the result to determine the current operation state
|
|
6207
|
-
*/
|
|
6208
|
-
function processBodyPollingOperationResult(rawResponse, flatResponse) {
|
|
6209
|
-
return {
|
|
6210
|
-
rawResponse,
|
|
6211
|
-
flatResponse,
|
|
6212
|
-
done: isBodyPollingDone(rawResponse)
|
|
6213
|
-
};
|
|
6214
|
-
}
|
|
6215
|
-
|
|
6216
|
-
/*
|
|
6217
|
-
* Copyright (c) Microsoft Corporation.
|
|
6218
|
-
* Licensed under the MIT License.
|
|
6219
|
-
*
|
|
6220
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6221
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6222
|
-
*/
|
|
6223
|
-
function isLocationPollingDone(rawResponse) {
|
|
6224
|
-
return (!isUnexpectedPollingResponse(rawResponse) && rawResponse.statusCode !== 202);
|
|
6225
|
-
}
|
|
6226
|
-
function processLocationPollingOperationResult(rawResponse, flatResponse) {
|
|
6227
|
-
return {
|
|
6228
|
-
rawResponse,
|
|
6229
|
-
flatResponse,
|
|
6230
|
-
done: isLocationPollingDone(rawResponse)
|
|
6231
|
-
};
|
|
6232
|
-
}
|
|
6233
|
-
|
|
6234
|
-
/*
|
|
6235
|
-
* Copyright (c) Microsoft Corporation.
|
|
6236
|
-
* Licensed under the MIT License.
|
|
6237
|
-
*
|
|
6238
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6239
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6240
|
-
*/
|
|
6241
|
-
function processPassthroughOperationResult(rawResponse, flatResponse) {
|
|
6242
|
-
return {
|
|
6243
|
-
rawResponse,
|
|
6244
|
-
flatResponse,
|
|
6245
|
-
done: true
|
|
6246
|
-
};
|
|
6247
|
-
}
|
|
6248
|
-
|
|
6249
|
-
/*
|
|
6250
|
-
* Copyright (c) Microsoft Corporation.
|
|
6251
|
-
* Licensed under the MIT License.
|
|
6252
|
-
*
|
|
6253
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6254
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6255
|
-
*/
|
|
6256
|
-
/**
|
|
6257
|
-
* creates a stepping function that maps an LRO state to another.
|
|
6258
|
-
*/
|
|
6259
|
-
function createGetLroStatusFromResponse(lroPrimitives, config, lroResourceLocationConfig) {
|
|
6260
|
-
switch (config.mode) {
|
|
6261
|
-
case "AzureAsync": {
|
|
6262
|
-
return processAzureAsyncOperationResult(lroPrimitives, config.resourceLocation, lroResourceLocationConfig);
|
|
6263
|
-
}
|
|
6264
|
-
case "Location": {
|
|
6265
|
-
return processLocationPollingOperationResult;
|
|
6266
|
-
}
|
|
6267
|
-
case "Body": {
|
|
6268
|
-
return processBodyPollingOperationResult;
|
|
6269
|
-
}
|
|
6270
|
-
default: {
|
|
6271
|
-
return processPassthroughOperationResult;
|
|
6272
|
-
}
|
|
6273
|
-
}
|
|
6274
|
-
}
|
|
6275
|
-
/**
|
|
6276
|
-
* Creates a polling operation that returns a LRO state.
|
|
6277
|
-
*/
|
|
6278
|
-
function createPollForLROStatus(lroPrimitives, config) {
|
|
6279
|
-
return (path, pollerConfig) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6280
|
-
const response = yield lroPrimitives.sendPollRequest(config, path);
|
|
6281
|
-
const retryAfter = response.rawResponse.headers["retry-after"];
|
|
6282
|
-
if (retryAfter !== undefined) {
|
|
6283
|
-
const retryAfterInMs = parseInt(retryAfter);
|
|
6284
|
-
pollerConfig.intervalInMs = isNaN(retryAfterInMs)
|
|
6285
|
-
? calculatePollingIntervalFromDate(new Date(retryAfter), pollerConfig.intervalInMs)
|
|
6286
|
-
: retryAfterInMs;
|
|
6287
|
-
}
|
|
6288
|
-
return response;
|
|
6289
|
-
});
|
|
6290
|
-
}
|
|
6291
|
-
function calculatePollingIntervalFromDate(retryAfterDate, defaultIntervalInMs) {
|
|
6292
|
-
const timeNow = Math.floor(new Date().getTime());
|
|
6293
|
-
const retryAfterTime = retryAfterDate.getTime();
|
|
6294
|
-
if (timeNow < retryAfterTime) {
|
|
6295
|
-
return retryAfterTime - timeNow;
|
|
6296
|
-
}
|
|
6297
|
-
return defaultIntervalInMs;
|
|
6298
|
-
}
|
|
6299
|
-
/**
|
|
6300
|
-
* Creates a callback to be used to initialize the polling operation state.
|
|
6301
|
-
* @param state - of the polling operation
|
|
6302
|
-
* @param operationSpec - of the LRO
|
|
6303
|
-
* @param callback - callback to be called when the operation is done
|
|
6304
|
-
* @returns callback that initializes the state of the polling operation
|
|
6305
|
-
*/
|
|
6306
|
-
function createInitializeState(state, requestPath, requestMethod) {
|
|
6307
|
-
return (rawResponse, flatResponse) => {
|
|
6308
|
-
if (isUnexpectedInitialResponse(rawResponse))
|
|
6309
|
-
;
|
|
6310
|
-
state.initialRawResponse = rawResponse;
|
|
6311
|
-
state.isStarted = true;
|
|
6312
|
-
state.pollingURL = getPollingUrl(state.initialRawResponse, requestPath);
|
|
6313
|
-
state.config = inferLroMode(requestPath, requestMethod, state.initialRawResponse);
|
|
6314
|
-
/** short circuit polling if body polling is done in the initial request */
|
|
6315
|
-
if (state.config.mode === undefined ||
|
|
6316
|
-
(state.config.mode === "Body" &&
|
|
6317
|
-
isBodyPollingDone(state.initialRawResponse))) {
|
|
6318
|
-
state.result = flatResponse;
|
|
6319
|
-
state.isCompleted = true;
|
|
6320
|
-
}
|
|
6321
|
-
return Boolean(state.isCompleted);
|
|
6322
|
-
};
|
|
6323
|
-
}
|
|
6324
|
-
|
|
6325
|
-
/*
|
|
6326
|
-
* Copyright (c) Microsoft Corporation.
|
|
6327
|
-
* Licensed under the MIT License.
|
|
6328
|
-
*
|
|
6329
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6330
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6331
|
-
*/
|
|
6332
|
-
class GenericPollOperation {
|
|
6333
|
-
constructor(state, lro) {
|
|
6334
|
-
this.state = state;
|
|
6335
|
-
this.lro = lro;
|
|
6336
|
-
}
|
|
6337
|
-
setPollerConfig(pollerConfig) {
|
|
6338
|
-
this.pollerConfig = pollerConfig;
|
|
6339
|
-
}
|
|
6340
|
-
/**
|
|
6341
|
-
* General update function for LROPoller, the general process is as follows
|
|
6342
|
-
* 1. Check initial operation result to determine the strategy to use
|
|
6343
|
-
* - Strategies: Location, Azure-AsyncOperation, Original Uri
|
|
6344
|
-
* 2. Check if the operation result has a terminal state
|
|
6345
|
-
* - Terminal state will be determined by each strategy
|
|
6346
|
-
* 2.1 If it is terminal state Check if a final GET request is required, if so
|
|
6347
|
-
* send final GET request and return result from operation. If no final GET
|
|
6348
|
-
* is required, just return the result from operation.
|
|
6349
|
-
* - Determining what to call for final request is responsibility of each strategy
|
|
6350
|
-
* 2.2 If it is not terminal state, call the polling operation and go to step 1
|
|
6351
|
-
* - Determining what to call for polling is responsibility of each strategy
|
|
6352
|
-
* - Strategies will always use the latest URI for polling if provided otherwise
|
|
6353
|
-
* the last known one
|
|
6354
|
-
*/
|
|
6355
|
-
update(options) {
|
|
6356
|
-
var _a, _b;
|
|
6357
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6358
|
-
const state = this.state;
|
|
6359
|
-
if (!state.isStarted) {
|
|
6360
|
-
const initializeState = createInitializeState(state, this.lro.requestPath, this.lro.requestMethod);
|
|
6361
|
-
yield this.lro.sendInitialRequest(initializeState);
|
|
6362
|
-
}
|
|
6363
|
-
if (!state.isCompleted) {
|
|
6364
|
-
if (this.getLROStatusFromResponse === undefined) {
|
|
6365
|
-
if (state.config === undefined) {
|
|
6366
|
-
throw new Error("Bad state: LRO mode is undefined. Please check if the serialized state is well-formed.");
|
|
6367
|
-
}
|
|
6368
|
-
this.getLROStatusFromResponse = createPollForLROStatus(this.lro, state.config);
|
|
6369
|
-
}
|
|
6370
|
-
if (state.pollingURL === undefined) {
|
|
6371
|
-
throw new Error("Bad state: polling URL is undefined. Please check if the serialized state is well-formed.");
|
|
6372
|
-
}
|
|
6373
|
-
const currentState = yield this.getLROStatusFromResponse(state.pollingURL, this.pollerConfig);
|
|
6374
|
-
if (currentState.done) {
|
|
6375
|
-
state.result = currentState.flatResponse;
|
|
6376
|
-
state.isCompleted = true;
|
|
6377
|
-
}
|
|
6378
|
-
else {
|
|
6379
|
-
this.getLROStatusFromResponse =
|
|
6380
|
-
(_a = currentState.next) !== null && _a !== void 0 ? _a : this.getLROStatusFromResponse;
|
|
6381
|
-
state.pollingURL = getPollingUrl(currentState.rawResponse, state.pollingURL);
|
|
6382
|
-
}
|
|
6383
|
-
}
|
|
6384
|
-
(_b = options === null || options === void 0 ? void 0 : options.fireProgress) === null || _b === void 0 ? void 0 : _b.call(options, state);
|
|
6385
|
-
return this;
|
|
6386
|
-
});
|
|
6387
|
-
}
|
|
6388
|
-
cancel() {
|
|
6389
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6390
|
-
this.state.isCancelled = true;
|
|
6391
|
-
return this;
|
|
6392
|
-
});
|
|
6393
|
-
}
|
|
6394
|
-
/**
|
|
6395
|
-
* Serializes the Poller operation.
|
|
6396
|
-
*/
|
|
6397
|
-
toString() {
|
|
6398
|
-
return JSON.stringify({
|
|
6399
|
-
state: this.state
|
|
6400
|
-
});
|
|
6401
|
-
}
|
|
6402
|
-
}
|
|
6403
|
-
|
|
6404
|
-
/*
|
|
6405
|
-
* Copyright (c) Microsoft Corporation.
|
|
6406
|
-
* Licensed under the MIT License.
|
|
6407
|
-
*
|
|
6408
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6409
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6410
|
-
*/
|
|
6411
|
-
/**
|
|
6412
|
-
* The LRO Engine, a class that performs polling.
|
|
6413
|
-
*/
|
|
6414
|
-
class LroEngine extends coreLro.Poller {
|
|
6415
|
-
constructor(lro, options) {
|
|
6416
|
-
const { intervalInMs = 2000, resumeFrom } = options || {};
|
|
6417
|
-
function deserializeState(resumeFrom) {
|
|
6418
|
-
try {
|
|
6419
|
-
return JSON.parse(resumeFrom).state;
|
|
6420
|
-
}
|
|
6421
|
-
catch (e) {
|
|
6422
|
-
throw new Error(`LroEngine: Unable to deserialize state: ${resumeFrom}`);
|
|
6423
|
-
}
|
|
6424
|
-
}
|
|
6425
|
-
const state = resumeFrom
|
|
6426
|
-
? deserializeState(resumeFrom)
|
|
6427
|
-
: {};
|
|
6428
|
-
const operation = new GenericPollOperation(state, lro);
|
|
6429
|
-
super(operation);
|
|
6430
|
-
this.intervalInMs = intervalInMs;
|
|
6431
|
-
operation.setPollerConfig(this);
|
|
6432
|
-
}
|
|
6433
|
-
/**
|
|
6434
|
-
* The method used by the poller to wait before attempting to update its operation.
|
|
6435
|
-
*/
|
|
6436
|
-
delay() {
|
|
6437
|
-
return new Promise((resolve) => setTimeout(() => resolve(), this.intervalInMs));
|
|
6438
|
-
}
|
|
6439
|
-
}
|
|
6440
|
-
|
|
6441
|
-
/*
|
|
6442
|
-
* Copyright (c) Microsoft Corporation.
|
|
6443
|
-
* Licensed under the MIT License.
|
|
6444
|
-
*
|
|
6445
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6446
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6447
|
-
*/
|
|
6448
|
-
function createPollingMethod(sendOperationFn, GetLroStatusFromResponse, args, spec, mode) {
|
|
6449
|
-
var _a;
|
|
6450
|
-
/**
|
|
6451
|
-
* Polling calls will always return a status object i.e. {"status": "success"}
|
|
6452
|
-
* these intermediate responses are not described in the swagger so we need to
|
|
6453
|
-
* pass custom mappers at runtime.
|
|
6454
|
-
* This function replaces all the existing mappers to be able to deserialize a status object
|
|
6455
|
-
* @param responses Original set of responses defined in the operation
|
|
6456
|
-
*/
|
|
6457
|
-
function getCompositeMappers(responses) {
|
|
6458
|
-
return Object.keys(responses).reduce((acc, statusCode) => {
|
|
6459
|
-
return Object.assign(Object.assign({}, acc), { [statusCode]: Object.assign(Object.assign({}, responses[statusCode]), { bodyMapper: {
|
|
6460
|
-
type: {
|
|
6461
|
-
name: "Composite",
|
|
6462
|
-
modelProperties: {
|
|
6463
|
-
status: {
|
|
6464
|
-
serializedName: "status",
|
|
6465
|
-
type: {
|
|
6466
|
-
name: "String"
|
|
6467
|
-
}
|
|
6468
|
-
}
|
|
6469
|
-
}
|
|
6470
|
-
}
|
|
6471
|
-
} }) });
|
|
6472
|
-
}, {});
|
|
6473
|
-
}
|
|
6474
|
-
let response = undefined;
|
|
6475
|
-
const customerCallback = (_a = args === null || args === void 0 ? void 0 : args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6476
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: (rawResponse, flatResponse) => {
|
|
6477
|
-
response = GetLroStatusFromResponse({
|
|
6478
|
-
statusCode: rawResponse.status,
|
|
6479
|
-
body: rawResponse.parsedBody,
|
|
6480
|
-
headers: rawResponse.headers.toJSON()
|
|
6481
|
-
}, flatResponse);
|
|
6482
|
-
if (response.done) {
|
|
6483
|
-
customerCallback === null || customerCallback === void 0 ? void 0 : customerCallback(rawResponse, flatResponse);
|
|
6484
|
-
}
|
|
6485
|
-
} }) });
|
|
6486
|
-
// Make sure we don't send any body to the get request
|
|
6487
|
-
const { requestBody, responses } = spec, restSpec = tslib.__rest(spec, ["requestBody", "responses"]);
|
|
6488
|
-
if (mode === "AzureAsync") {
|
|
6489
|
-
return (path) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6490
|
-
yield sendOperationFn(updatedArgs, Object.assign(Object.assign(Object.assign({}, restSpec), { responses: getCompositeMappers(responses), httpMethod: "GET" }), (path && { path })));
|
|
6491
|
-
return response;
|
|
6492
|
-
});
|
|
6493
|
-
}
|
|
6494
|
-
return (path) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6495
|
-
yield sendOperationFn(updatedArgs, Object.assign(Object.assign(Object.assign({}, restSpec), { responses: responses, httpMethod: "GET" }), (path && { path })));
|
|
6496
|
-
return response;
|
|
6497
|
-
});
|
|
6498
|
-
}
|
|
6499
|
-
class CoreClientLro {
|
|
6500
|
-
constructor(sendOperationFn, args, spec, lroResourceLocationConfig, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
6501
|
-
this.sendOperationFn = sendOperationFn;
|
|
6502
|
-
this.args = args;
|
|
6503
|
-
this.spec = spec;
|
|
6504
|
-
this.lroResourceLocationConfig = lroResourceLocationConfig;
|
|
6505
|
-
this.requestPath = requestPath;
|
|
6506
|
-
this.requestMethod = requestMethod;
|
|
6507
|
-
}
|
|
6508
|
-
sendInitialRequest(initializeState) {
|
|
6509
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6510
|
-
const _a = this.args.options || {}, { onResponse } = _a, restOptions = tslib.__rest(_a, ["onResponse"]);
|
|
6511
|
-
return this.sendOperationFn(Object.assign(Object.assign({}, this.args), { options: Object.assign(Object.assign({}, restOptions), { onResponse: (rawResponse, flatResponse) => {
|
|
6512
|
-
const isCompleted = initializeState({
|
|
6513
|
-
statusCode: rawResponse.status,
|
|
6514
|
-
body: rawResponse.parsedBody,
|
|
6515
|
-
headers: rawResponse.headers.toJSON()
|
|
6516
|
-
}, flatResponse);
|
|
6517
|
-
if (isCompleted) {
|
|
6518
|
-
onResponse === null || onResponse === void 0 ? void 0 : onResponse(rawResponse, flatResponse);
|
|
6519
|
-
}
|
|
6520
|
-
} }) }), this.spec);
|
|
6521
|
-
});
|
|
6522
|
-
}
|
|
6523
|
-
sendPollRequest(config, path) {
|
|
6524
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6525
|
-
const getLroStatusFromResponse = createGetLroStatusFromResponse(this, config, this.lroResourceLocationConfig);
|
|
6526
|
-
return createPollingMethod(this.sendOperationFn, getLroStatusFromResponse, this.args, this.spec, config.mode)(path);
|
|
6527
|
-
});
|
|
6528
|
-
}
|
|
6529
|
-
retrieveAzureAsyncResource(path) {
|
|
6530
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6531
|
-
const updatedArgs = Object.assign({}, this.args);
|
|
6532
|
-
if (updatedArgs.options) {
|
|
6533
|
-
updatedArgs.options.shouldDeserialize = true;
|
|
6534
|
-
}
|
|
6535
|
-
return createPollingMethod(this.sendOperationFn, (rawResponse, flatResponse) => ({
|
|
6536
|
-
rawResponse,
|
|
6537
|
-
flatResponse,
|
|
6538
|
-
done: true
|
|
6539
|
-
}), updatedArgs, this.spec)(path);
|
|
6540
|
-
});
|
|
6541
|
-
}
|
|
6542
|
-
}
|
|
6543
|
-
|
|
6544
|
-
/*
|
|
6545
|
-
* Copyright (c) Microsoft Corporation.
|
|
6546
|
-
* Licensed under the MIT License.
|
|
6547
|
-
*
|
|
6548
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6549
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6550
|
-
*/
|
|
6551
|
-
/// <reference lib="esnext.asynciterable" />
|
|
6552
|
-
/** Class representing a StorageAccounts. */
|
|
6553
|
-
class StorageAccountsImpl {
|
|
6554
|
-
/**
|
|
6555
|
-
* Initialize a new instance of the class StorageAccounts class.
|
|
6556
|
-
* @param client Reference to the service client
|
|
6557
|
-
*/
|
|
6558
|
-
constructor(client) {
|
|
6559
|
-
this.client = client;
|
|
6275
|
+
/// <reference lib="esnext.asynciterable" />
|
|
6276
|
+
/** Class containing StorageAccounts operations. */
|
|
6277
|
+
class StorageAccountsImpl {
|
|
6278
|
+
/**
|
|
6279
|
+
* Initialize a new instance of the class StorageAccounts class.
|
|
6280
|
+
* @param client Reference to the service client
|
|
6281
|
+
*/
|
|
6282
|
+
constructor(client) {
|
|
6283
|
+
this.client = client;
|
|
6560
6284
|
}
|
|
6561
6285
|
/**
|
|
6562
6286
|
* Lists all the storage accounts available under the subscription. Note that storage keys are not
|
|
@@ -6705,8 +6429,11 @@ class StorageAccountsImpl {
|
|
|
6705
6429
|
}
|
|
6706
6430
|
};
|
|
6707
6431
|
});
|
|
6708
|
-
const lro = new
|
|
6709
|
-
return new LroEngine(lro, {
|
|
6432
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
|
|
6433
|
+
return new coreLro.LroEngine(lro, {
|
|
6434
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6435
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6436
|
+
});
|
|
6710
6437
|
});
|
|
6711
6438
|
}
|
|
6712
6439
|
/**
|
|
@@ -6878,8 +6605,12 @@ class StorageAccountsImpl {
|
|
|
6878
6605
|
}
|
|
6879
6606
|
};
|
|
6880
6607
|
});
|
|
6881
|
-
const lro = new
|
|
6882
|
-
return new LroEngine(lro, {
|
|
6608
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec);
|
|
6609
|
+
return new coreLro.LroEngine(lro, {
|
|
6610
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6611
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6612
|
+
lroResourceLocationConfig: "location"
|
|
6613
|
+
});
|
|
6883
6614
|
});
|
|
6884
6615
|
}
|
|
6885
6616
|
/**
|
|
@@ -6899,6 +6630,126 @@ class StorageAccountsImpl {
|
|
|
6899
6630
|
return poller.pollUntilDone();
|
|
6900
6631
|
});
|
|
6901
6632
|
}
|
|
6633
|
+
/**
|
|
6634
|
+
* Live Migration of storage account to enable Hns
|
|
6635
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
6636
|
+
* case insensitive.
|
|
6637
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
6638
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
6639
|
+
* only.
|
|
6640
|
+
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
|
|
6641
|
+
* namespace validation request 'HnsOnValidationRequest' or a hydration request
|
|
6642
|
+
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
|
|
6643
|
+
* request will migrate the account.
|
|
6644
|
+
* @param options The options parameters.
|
|
6645
|
+
*/
|
|
6646
|
+
beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options) {
|
|
6647
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6648
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6649
|
+
return this.client.sendOperationRequest(args, spec);
|
|
6650
|
+
});
|
|
6651
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6652
|
+
var _a;
|
|
6653
|
+
let currentRawResponse = undefined;
|
|
6654
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6655
|
+
const callback = (rawResponse, flatResponse) => {
|
|
6656
|
+
currentRawResponse = rawResponse;
|
|
6657
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6658
|
+
};
|
|
6659
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6660
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
6661
|
+
return {
|
|
6662
|
+
flatResponse,
|
|
6663
|
+
rawResponse: {
|
|
6664
|
+
statusCode: currentRawResponse.status,
|
|
6665
|
+
body: currentRawResponse.parsedBody,
|
|
6666
|
+
headers: currentRawResponse.headers.toJSON()
|
|
6667
|
+
}
|
|
6668
|
+
};
|
|
6669
|
+
});
|
|
6670
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, requestType, options }, hierarchicalNamespaceMigrationOperationSpec);
|
|
6671
|
+
return new coreLro.LroEngine(lro, {
|
|
6672
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6673
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6674
|
+
lroResourceLocationConfig: "location"
|
|
6675
|
+
});
|
|
6676
|
+
});
|
|
6677
|
+
}
|
|
6678
|
+
/**
|
|
6679
|
+
* Live Migration of storage account to enable Hns
|
|
6680
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
6681
|
+
* case insensitive.
|
|
6682
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
6683
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
6684
|
+
* only.
|
|
6685
|
+
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
|
|
6686
|
+
* namespace validation request 'HnsOnValidationRequest' or a hydration request
|
|
6687
|
+
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
|
|
6688
|
+
* request will migrate the account.
|
|
6689
|
+
* @param options The options parameters.
|
|
6690
|
+
*/
|
|
6691
|
+
beginHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, requestType, options) {
|
|
6692
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6693
|
+
const poller = yield this.beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options);
|
|
6694
|
+
return poller.pollUntilDone();
|
|
6695
|
+
});
|
|
6696
|
+
}
|
|
6697
|
+
/**
|
|
6698
|
+
* Abort live Migration of storage account to enable Hns
|
|
6699
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
6700
|
+
* case insensitive.
|
|
6701
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
6702
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
6703
|
+
* only.
|
|
6704
|
+
* @param options The options parameters.
|
|
6705
|
+
*/
|
|
6706
|
+
beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options) {
|
|
6707
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6708
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6709
|
+
return this.client.sendOperationRequest(args, spec);
|
|
6710
|
+
});
|
|
6711
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6712
|
+
var _a;
|
|
6713
|
+
let currentRawResponse = undefined;
|
|
6714
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6715
|
+
const callback = (rawResponse, flatResponse) => {
|
|
6716
|
+
currentRawResponse = rawResponse;
|
|
6717
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6718
|
+
};
|
|
6719
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6720
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
6721
|
+
return {
|
|
6722
|
+
flatResponse,
|
|
6723
|
+
rawResponse: {
|
|
6724
|
+
statusCode: currentRawResponse.status,
|
|
6725
|
+
body: currentRawResponse.parsedBody,
|
|
6726
|
+
headers: currentRawResponse.headers.toJSON()
|
|
6727
|
+
}
|
|
6728
|
+
};
|
|
6729
|
+
});
|
|
6730
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, abortHierarchicalNamespaceMigrationOperationSpec);
|
|
6731
|
+
return new coreLro.LroEngine(lro, {
|
|
6732
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6733
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6734
|
+
lroResourceLocationConfig: "location"
|
|
6735
|
+
});
|
|
6736
|
+
});
|
|
6737
|
+
}
|
|
6738
|
+
/**
|
|
6739
|
+
* Abort live Migration of storage account to enable Hns
|
|
6740
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
6741
|
+
* case insensitive.
|
|
6742
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
6743
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
6744
|
+
* only.
|
|
6745
|
+
* @param options The options parameters.
|
|
6746
|
+
*/
|
|
6747
|
+
beginAbortHierarchicalNamespaceMigrationAndWait(resourceGroupName, accountName, options) {
|
|
6748
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6749
|
+
const poller = yield this.beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options);
|
|
6750
|
+
return poller.pollUntilDone();
|
|
6751
|
+
});
|
|
6752
|
+
}
|
|
6902
6753
|
/**
|
|
6903
6754
|
* Restore blobs in the specified blob ranges
|
|
6904
6755
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -6933,8 +6784,12 @@ class StorageAccountsImpl {
|
|
|
6933
6784
|
}
|
|
6934
6785
|
};
|
|
6935
6786
|
});
|
|
6936
|
-
const lro = new
|
|
6937
|
-
return new LroEngine(lro, {
|
|
6787
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec);
|
|
6788
|
+
return new coreLro.LroEngine(lro, {
|
|
6789
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6790
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
6791
|
+
lroResourceLocationConfig: "location"
|
|
6792
|
+
});
|
|
6938
6793
|
});
|
|
6939
6794
|
}
|
|
6940
6795
|
/**
|
|
@@ -7202,6 +7057,50 @@ const failoverOperationSpec = {
|
|
|
7202
7057
|
],
|
|
7203
7058
|
serializer: serializer$2
|
|
7204
7059
|
};
|
|
7060
|
+
const hierarchicalNamespaceMigrationOperationSpec = {
|
|
7061
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration",
|
|
7062
|
+
httpMethod: "POST",
|
|
7063
|
+
responses: {
|
|
7064
|
+
200: {},
|
|
7065
|
+
201: {},
|
|
7066
|
+
202: {},
|
|
7067
|
+
204: {},
|
|
7068
|
+
default: {
|
|
7069
|
+
bodyMapper: ErrorResponse
|
|
7070
|
+
}
|
|
7071
|
+
},
|
|
7072
|
+
queryParameters: [apiVersion, requestType],
|
|
7073
|
+
urlParameters: [
|
|
7074
|
+
$host,
|
|
7075
|
+
subscriptionId,
|
|
7076
|
+
resourceGroupName,
|
|
7077
|
+
accountName1
|
|
7078
|
+
],
|
|
7079
|
+
headerParameters: [accept],
|
|
7080
|
+
serializer: serializer$2
|
|
7081
|
+
};
|
|
7082
|
+
const abortHierarchicalNamespaceMigrationOperationSpec = {
|
|
7083
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration",
|
|
7084
|
+
httpMethod: "POST",
|
|
7085
|
+
responses: {
|
|
7086
|
+
200: {},
|
|
7087
|
+
201: {},
|
|
7088
|
+
202: {},
|
|
7089
|
+
204: {},
|
|
7090
|
+
default: {
|
|
7091
|
+
bodyMapper: ErrorResponse
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7094
|
+
queryParameters: [apiVersion],
|
|
7095
|
+
urlParameters: [
|
|
7096
|
+
$host,
|
|
7097
|
+
subscriptionId,
|
|
7098
|
+
resourceGroupName,
|
|
7099
|
+
accountName1
|
|
7100
|
+
],
|
|
7101
|
+
headerParameters: [accept],
|
|
7102
|
+
serializer: serializer$2
|
|
7103
|
+
};
|
|
7205
7104
|
const restoreBlobRangesOperationSpec = {
|
|
7206
7105
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
|
|
7207
7106
|
httpMethod: "POST",
|
|
@@ -7288,7 +7187,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
7288
7187
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7289
7188
|
*/
|
|
7290
7189
|
/// <reference lib="esnext.asynciterable" />
|
|
7291
|
-
/** Class
|
|
7190
|
+
/** Class containing DeletedAccounts operations. */
|
|
7292
7191
|
class DeletedAccountsImpl {
|
|
7293
7192
|
/**
|
|
7294
7193
|
* Initialize a new instance of the class DeletedAccounts class.
|
|
@@ -7438,7 +7337,7 @@ const listNextOperationSpec$1 = {
|
|
|
7438
7337
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7439
7338
|
*/
|
|
7440
7339
|
/// <reference lib="esnext.asynciterable" />
|
|
7441
|
-
/** Class
|
|
7340
|
+
/** Class containing Usages operations. */
|
|
7442
7341
|
class UsagesImpl {
|
|
7443
7342
|
/**
|
|
7444
7343
|
* Initialize a new instance of the class Usages class.
|
|
@@ -7526,7 +7425,7 @@ const listByLocationOperationSpec = {
|
|
|
7526
7425
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7527
7426
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7528
7427
|
*/
|
|
7529
|
-
/** Class
|
|
7428
|
+
/** Class containing ManagementPolicies operations. */
|
|
7530
7429
|
class ManagementPoliciesImpl {
|
|
7531
7430
|
/**
|
|
7532
7431
|
* Initialize a new instance of the class ManagementPolicies class.
|
|
@@ -7650,7 +7549,7 @@ const deleteOperationSpec$1 = {
|
|
|
7650
7549
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7651
7550
|
*/
|
|
7652
7551
|
/// <reference lib="esnext.asynciterable" />
|
|
7653
|
-
/** Class
|
|
7552
|
+
/** Class containing BlobInventoryPolicies operations. */
|
|
7654
7553
|
class BlobInventoryPoliciesImpl {
|
|
7655
7554
|
/**
|
|
7656
7555
|
* Initialize a new instance of the class BlobInventoryPolicies class.
|
|
@@ -7867,7 +7766,7 @@ const listOperationSpec$4 = {
|
|
|
7867
7766
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7868
7767
|
*/
|
|
7869
7768
|
/// <reference lib="esnext.asynciterable" />
|
|
7870
|
-
/** Class
|
|
7769
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
7871
7770
|
class PrivateEndpointConnectionsImpl {
|
|
7872
7771
|
/**
|
|
7873
7772
|
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
@@ -8090,7 +7989,7 @@ const deleteOperationSpec$3 = {
|
|
|
8090
7989
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
8091
7990
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8092
7991
|
*/
|
|
8093
|
-
/** Class
|
|
7992
|
+
/** Class containing PrivateLinkResources operations. */
|
|
8094
7993
|
class PrivateLinkResourcesImpl {
|
|
8095
7994
|
/**
|
|
8096
7995
|
* Initialize a new instance of the class PrivateLinkResources class.
|
|
@@ -8141,7 +8040,7 @@ const listByStorageAccountOperationSpec = {
|
|
|
8141
8040
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8142
8041
|
*/
|
|
8143
8042
|
/// <reference lib="esnext.asynciterable" />
|
|
8144
|
-
/** Class
|
|
8043
|
+
/** Class containing ObjectReplicationPoliciesOperations operations. */
|
|
8145
8044
|
class ObjectReplicationPoliciesOperationsImpl {
|
|
8146
8045
|
/**
|
|
8147
8046
|
* Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
|
|
@@ -8365,7 +8264,7 @@ const deleteOperationSpec$4 = {
|
|
|
8365
8264
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8366
8265
|
*/
|
|
8367
8266
|
/// <reference lib="esnext.asynciterable" />
|
|
8368
|
-
/** Class
|
|
8267
|
+
/** Class containing EncryptionScopes operations. */
|
|
8369
8268
|
class EncryptionScopesImpl {
|
|
8370
8269
|
/**
|
|
8371
8270
|
* Initialize a new instance of the class EncryptionScopes class.
|
|
@@ -8639,7 +8538,7 @@ const listNextOperationSpec$2 = {
|
|
|
8639
8538
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8640
8539
|
*/
|
|
8641
8540
|
/// <reference lib="esnext.asynciterable" />
|
|
8642
|
-
/** Class
|
|
8541
|
+
/** Class containing BlobServices operations. */
|
|
8643
8542
|
class BlobServicesImpl {
|
|
8644
8543
|
/**
|
|
8645
8544
|
* Initialize a new instance of the class BlobServices class.
|
|
@@ -8805,7 +8704,7 @@ const getServicePropertiesOperationSpec = {
|
|
|
8805
8704
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8806
8705
|
*/
|
|
8807
8706
|
/// <reference lib="esnext.asynciterable" />
|
|
8808
|
-
/** Class
|
|
8707
|
+
/** Class containing BlobContainers operations. */
|
|
8809
8708
|
class BlobContainersImpl {
|
|
8810
8709
|
/**
|
|
8811
8710
|
* Initialize a new instance of the class BlobContainers class.
|
|
@@ -9139,8 +9038,12 @@ class BlobContainersImpl {
|
|
|
9139
9038
|
}
|
|
9140
9039
|
};
|
|
9141
9040
|
});
|
|
9142
|
-
const lro = new
|
|
9143
|
-
return new LroEngine(lro, {
|
|
9041
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, containerName, options }, objectLevelWormOperationSpec);
|
|
9042
|
+
return new coreLro.LroEngine(lro, {
|
|
9043
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
9044
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
9045
|
+
lroResourceLocationConfig: "location"
|
|
9046
|
+
});
|
|
9144
9047
|
});
|
|
9145
9048
|
}
|
|
9146
9049
|
/**
|
|
@@ -9515,7 +9418,7 @@ const listNextOperationSpec$3 = {
|
|
|
9515
9418
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9516
9419
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9517
9420
|
*/
|
|
9518
|
-
/** Class
|
|
9421
|
+
/** Class containing FileServices operations. */
|
|
9519
9422
|
class FileServicesImpl {
|
|
9520
9423
|
/**
|
|
9521
9424
|
* Initialize a new instance of the class FileServices class.
|
|
@@ -9643,7 +9546,7 @@ const getServicePropertiesOperationSpec$1 = {
|
|
|
9643
9546
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9644
9547
|
*/
|
|
9645
9548
|
/// <reference lib="esnext.asynciterable" />
|
|
9646
|
-
/** Class
|
|
9549
|
+
/** Class containing FileShares operations. */
|
|
9647
9550
|
class FileSharesImpl {
|
|
9648
9551
|
/**
|
|
9649
9552
|
* Initialize a new instance of the class FileShares class.
|
|
@@ -10036,7 +9939,7 @@ const listNextOperationSpec$4 = {
|
|
|
10036
9939
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10037
9940
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10038
9941
|
*/
|
|
10039
|
-
/** Class
|
|
9942
|
+
/** Class containing QueueServices operations. */
|
|
10040
9943
|
class QueueServicesImpl {
|
|
10041
9944
|
/**
|
|
10042
9945
|
* Initialize a new instance of the class QueueServices class.
|
|
@@ -10164,7 +10067,7 @@ const getServicePropertiesOperationSpec$2 = {
|
|
|
10164
10067
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10165
10068
|
*/
|
|
10166
10069
|
/// <reference lib="esnext.asynciterable" />
|
|
10167
|
-
/** Class
|
|
10070
|
+
/** Class containing Queue operations. */
|
|
10168
10071
|
class QueueImpl {
|
|
10169
10072
|
/**
|
|
10170
10073
|
* Initialize a new instance of the class Queue class.
|
|
@@ -10465,7 +10368,7 @@ const listNextOperationSpec$5 = {
|
|
|
10465
10368
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10466
10369
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10467
10370
|
*/
|
|
10468
|
-
/** Class
|
|
10371
|
+
/** Class containing TableServices operations. */
|
|
10469
10372
|
class TableServicesImpl {
|
|
10470
10373
|
/**
|
|
10471
10374
|
* Initialize a new instance of the class TableServices class.
|
|
@@ -10593,7 +10496,7 @@ const getServicePropertiesOperationSpec$3 = {
|
|
|
10593
10496
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10594
10497
|
*/
|
|
10595
10498
|
/// <reference lib="esnext.asynciterable" />
|
|
10596
|
-
/** Class
|
|
10499
|
+
/** Class containing TableOperations operations. */
|
|
10597
10500
|
class TableOperationsImpl {
|
|
10598
10501
|
/**
|
|
10599
10502
|
* Initialize a new instance of the class TableOperations class.
|
|
@@ -10880,9 +10783,9 @@ const listNextOperationSpec$6 = {
|
|
|
10880
10783
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10881
10784
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10882
10785
|
*/
|
|
10883
|
-
class
|
|
10786
|
+
class StorageManagementClient extends coreClient.ServiceClient {
|
|
10884
10787
|
/**
|
|
10885
|
-
* Initializes a new instance of the
|
|
10788
|
+
* Initializes a new instance of the StorageManagementClient class.
|
|
10886
10789
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10887
10790
|
* @param subscriptionId The ID of the target subscription.
|
|
10888
10791
|
* @param options The parameter options
|
|
@@ -10902,7 +10805,7 @@ class StorageManagementClientContext extends coreClient.ServiceClient {
|
|
|
10902
10805
|
requestContentType: "application/json; charset=utf-8",
|
|
10903
10806
|
credential: credentials
|
|
10904
10807
|
};
|
|
10905
|
-
const packageDetails = `azsdk-js-arm-storage/17.0.0
|
|
10808
|
+
const packageDetails = `azsdk-js-arm-storage/17.0.0`;
|
|
10906
10809
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10907
10810
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10908
10811
|
: `${packageDetails}`;
|
|
@@ -10917,26 +10820,7 @@ class StorageManagementClientContext extends coreClient.ServiceClient {
|
|
|
10917
10820
|
this.subscriptionId = subscriptionId;
|
|
10918
10821
|
// Assigning values to Constant parameters
|
|
10919
10822
|
this.$host = options.$host || "https://management.azure.com";
|
|
10920
|
-
this.apiVersion = options.apiVersion || "2021-
|
|
10921
|
-
}
|
|
10922
|
-
}
|
|
10923
|
-
|
|
10924
|
-
/*
|
|
10925
|
-
* Copyright (c) Microsoft Corporation.
|
|
10926
|
-
* Licensed under the MIT License.
|
|
10927
|
-
*
|
|
10928
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10929
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10930
|
-
*/
|
|
10931
|
-
class StorageManagementClient extends StorageManagementClientContext {
|
|
10932
|
-
/**
|
|
10933
|
-
* Initializes a new instance of the StorageManagementClient class.
|
|
10934
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10935
|
-
* @param subscriptionId The ID of the target subscription.
|
|
10936
|
-
* @param options The parameter options
|
|
10937
|
-
*/
|
|
10938
|
-
constructor(credentials, subscriptionId, options) {
|
|
10939
|
-
super(credentials, subscriptionId, options);
|
|
10823
|
+
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
10940
10824
|
this.operations = new OperationsImpl(this);
|
|
10941
10825
|
this.skus = new SkusImpl(this);
|
|
10942
10826
|
this.storageAccounts = new StorageAccountsImpl(this);
|
|
@@ -10960,5 +10844,4 @@ class StorageManagementClient extends StorageManagementClientContext {
|
|
|
10960
10844
|
}
|
|
10961
10845
|
|
|
10962
10846
|
exports.StorageManagementClient = StorageManagementClient;
|
|
10963
|
-
exports.StorageManagementClientContext = StorageManagementClientContext;
|
|
10964
10847
|
//# sourceMappingURL=index.js.map
|