@azure/arm-storage 16.1.1 → 17.0.0-alpha.20211111.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.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +63 -80
- package/dist/index.js +10964 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/coreClientLro.d.ts +26 -0
- package/esm/coreClientLro.d.ts.map +1 -0
- package/esm/coreClientLro.js +186 -0
- package/esm/coreClientLro.js.map +1 -0
- package/esm/index.d.ts +5002 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/lro/azureAsyncPolling.d.ts +3 -0
- package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
- package/esm/lro/azureAsyncPolling.js +67 -0
- package/esm/lro/azureAsyncPolling.js.map +1 -0
- package/esm/lro/bodyPolling.d.ts +8 -0
- package/esm/lro/bodyPolling.d.ts.map +1 -0
- package/esm/lro/bodyPolling.js +37 -0
- package/esm/lro/bodyPolling.js.map +1 -0
- package/esm/lro/index.d.ts +4 -0
- package/esm/lro/index.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → esm/lro/index.js} +5 -10
- package/esm/lro/index.js.map +1 -0
- package/esm/lro/locationPolling.d.ts +3 -0
- package/esm/lro/locationPolling.d.ts.map +1 -0
- package/esm/lro/locationPolling.js +19 -0
- package/esm/lro/locationPolling.js.map +1 -0
- package/esm/lro/lroEngine.d.ts +14 -0
- package/esm/lro/lroEngine.d.ts.map +1 -0
- package/esm/lro/lroEngine.js +41 -0
- package/esm/lro/lroEngine.js.map +1 -0
- package/esm/lro/models.d.ts +138 -0
- package/esm/lro/models.d.ts.map +1 -0
- package/esm/lro/models.js +14 -0
- package/esm/lro/models.js.map +1 -0
- package/esm/lro/operation.d.ts +36 -0
- package/esm/lro/operation.d.ts.map +1 -0
- package/esm/lro/operation.js +82 -0
- package/esm/lro/operation.js.map +1 -0
- package/esm/lro/passthrough.d.ts +3 -0
- package/esm/lro/passthrough.d.ts.map +1 -0
- package/esm/{models/operationsMappers.js → lro/passthrough.js} +8 -2
- package/esm/lro/passthrough.js.map +1 -0
- package/esm/lro/requestUtils.d.ts +16 -0
- package/esm/lro/requestUtils.d.ts.map +1 -0
- package/esm/lro/requestUtils.js +73 -0
- package/esm/lro/requestUtils.js.map +1 -0
- package/esm/lro/stateMachine.d.ts +18 -0
- package/esm/lro/stateMachine.d.ts.map +1 -0
- package/esm/lro/stateMachine.js +84 -0
- package/esm/lro/stateMachine.js.map +1 -0
- package/esm/models/index.d.ts +2673 -4395
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +331 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +146 -138
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +2734 -2563
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +59 -33
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +267 -159
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/blobContainers.d.ts +213 -561
- package/esm/operations/blobContainers.d.ts.map +1 -1
- package/esm/operations/blobContainers.js +578 -429
- package/esm/operations/blobContainers.js.map +1 -1
- package/esm/operations/blobInventoryPolicies.d.ts +47 -109
- package/esm/operations/blobInventoryPolicies.d.ts.map +1 -1
- package/esm/operations/blobInventoryPolicies.js +163 -105
- package/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/esm/operations/blobServices.d.ts +39 -89
- package/esm/operations/blobServices.d.ts.map +1 -1
- package/esm/operations/blobServices.js +133 -89
- package/esm/operations/blobServices.js.map +1 -1
- package/esm/operations/deletedAccounts.d.ts +20 -47
- package/esm/operations/deletedAccounts.d.ts.map +1 -1
- package/esm/operations/deletedAccounts.js +111 -69
- package/esm/operations/deletedAccounts.js.map +1 -1
- package/esm/operations/encryptionScopes.d.ts +65 -166
- package/esm/operations/encryptionScopes.d.ts.map +1 -1
- package/esm/operations/encryptionScopes.js +211 -131
- package/esm/operations/encryptionScopes.js.map +1 -1
- package/esm/operations/fileServices.d.ts +25 -89
- package/esm/operations/fileServices.d.ts.map +1 -1
- package/esm/operations/fileServices.js +86 -83
- package/esm/operations/fileServices.js.map +1 -1
- package/esm/operations/fileShares.d.ts +100 -256
- package/esm/operations/fileShares.d.ts.map +1 -1
- package/esm/operations/fileShares.js +316 -164
- package/esm/operations/fileShares.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +1 -2
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementPolicies.d.ts +30 -89
- package/esm/operations/managementPolicies.d.ts.map +1 -1
- package/esm/operations/managementPolicies.js +89 -92
- package/esm/operations/managementPolicies.js.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts +54 -130
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.js +170 -102
- package/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/esm/operations/operations.d.ts +14 -15
- package/esm/operations/operations.d.ts.map +1 -1
- package/esm/operations/operations.js +67 -29
- package/esm/operations/operations.js.map +1 -1
- package/esm/operations/privateEndpointConnections.d.ts +46 -126
- package/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/esm/operations/privateEndpointConnections.js +171 -103
- package/esm/operations/privateEndpointConnections.js.map +1 -1
- package/esm/operations/privateLinkResources.d.ts +11 -31
- package/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/esm/operations/privateLinkResources.js +32 -36
- package/esm/operations/privateLinkResources.js.map +1 -1
- package/esm/operations/queue.d.ts +69 -196
- package/esm/operations/queue.d.ts.map +1 -1
- package/esm/operations/queue.js +230 -162
- package/esm/operations/queue.js.map +1 -1
- package/esm/operations/queueServices.d.ts +29 -87
- package/esm/operations/queueServices.d.ts.map +1 -1
- package/esm/operations/queueServices.js +86 -87
- package/esm/operations/queueServices.js.map +1 -1
- package/esm/operations/skus.d.ts +14 -15
- package/esm/operations/skus.d.ts.map +1 -1
- package/esm/operations/skus.js +67 -32
- package/esm/operations/skus.js.map +1 -1
- package/esm/operations/storageAccounts.d.ts +163 -381
- package/esm/operations/storageAccounts.d.ts.map +1 -1
- package/esm/operations/storageAccounts.js +605 -501
- package/esm/operations/storageAccounts.js.map +1 -1
- package/esm/operations/tableOperations.d.ts +67 -184
- package/esm/operations/tableOperations.d.ts.map +1 -1
- package/esm/operations/tableOperations.js +220 -143
- package/esm/operations/tableOperations.js.map +1 -1
- package/esm/operations/tableServices.d.ts +29 -87
- package/esm/operations/tableServices.d.ts.map +1 -1
- package/esm/operations/tableServices.js +86 -87
- package/esm/operations/tableServices.js.map +1 -1
- package/esm/operations/usages.d.ts +15 -18
- package/esm/operations/usages.d.ts.map +1 -1
- package/esm/operations/usages.js +73 -34
- package/esm/operations/usages.js.map +1 -1
- package/esm/operationsInterfaces/blobContainers.d.ts +247 -0
- package/esm/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/{src/models/usagesMappers.ts → esm/operationsInterfaces/blobContainers.js} +2 -7
- package/esm/operationsInterfaces/blobContainers.js.map +1 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts +54 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/esm/{models/usagesMappers.js → operationsInterfaces/blobInventoryPolicies.js} +2 -2
- package/esm/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/esm/operationsInterfaces/blobServices.d.ts +41 -0
- package/esm/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/{src/models/skusMappers.ts → esm/operationsInterfaces/blobServices.js} +2 -8
- package/esm/operationsInterfaces/blobServices.js.map +1 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts +19 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/esm/{models/skusMappers.js → operationsInterfaces/deletedAccounts.js} +2 -2
- package/esm/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts +64 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.js +9 -0
- package/esm/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/esm/operationsInterfaces/fileServices.d.ts +39 -0
- package/esm/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileServices.js +9 -0
- package/esm/operationsInterfaces/fileServices.js.map +1 -0
- package/esm/operationsInterfaces/fileShares.d.ts +102 -0
- package/esm/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileShares.js +9 -0
- package/esm/operationsInterfaces/fileShares.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +20 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +27 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts +42 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.js +9 -0
- package/esm/operationsInterfaces/managementPolicies.js.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +61 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/esm/operationsInterfaces/operations.d.ts +12 -0
- package/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/esm/operationsInterfaces/operations.js +9 -0
- package/esm/operationsInterfaces/operations.js.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/esm/operationsInterfaces/queue.d.ts +71 -0
- package/esm/operationsInterfaces/queue.d.ts.map +1 -0
- package/esm/operationsInterfaces/queue.js +9 -0
- package/esm/operationsInterfaces/queue.js.map +1 -0
- package/esm/operationsInterfaces/queueServices.d.ts +39 -0
- package/esm/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/queueServices.js +9 -0
- package/esm/operationsInterfaces/queueServices.js.map +1 -0
- package/esm/operationsInterfaces/skus.d.ts +12 -0
- package/esm/operationsInterfaces/skus.d.ts.map +1 -0
- package/esm/operationsInterfaces/skus.js +9 -0
- package/esm/operationsInterfaces/skus.js.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts +197 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.js +9 -0
- package/esm/operationsInterfaces/storageAccounts.js.map +1 -0
- package/esm/operationsInterfaces/tableOperations.d.ts +69 -0
- package/esm/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableOperations.js +9 -0
- package/esm/operationsInterfaces/tableOperations.js.map +1 -0
- package/esm/operationsInterfaces/tableServices.d.ts +39 -0
- package/esm/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableServices.js +9 -0
- package/esm/operationsInterfaces/tableServices.js.map +1 -0
- package/esm/operationsInterfaces/usages.d.ts +13 -0
- package/esm/operationsInterfaces/usages.d.ts.map +1 -0
- package/esm/operationsInterfaces/usages.js +9 -0
- package/esm/operationsInterfaces/usages.js.map +1 -0
- package/esm/storageManagementClient.d.ts +26 -35
- package/esm/storageManagementClient.d.ts.map +1 -1
- package/esm/storageManagementClient.js +27 -42
- package/esm/storageManagementClient.js.map +1 -1
- package/esm/storageManagementClientContext.d.ts +10 -16
- package/esm/storageManagementClientContext.d.ts.map +1 -1
- package/esm/storageManagementClientContext.js +32 -44
- package/esm/storageManagementClientContext.js.map +1 -1
- package/package.json +57 -18
- package/review/arm-storage.api.md +2659 -0
- package/rollup.config.js +181 -30
- package/src/coreClientLro.ts +323 -0
- package/src/index.ts +13 -0
- package/src/lro/azureAsyncPolling.ts +96 -0
- package/src/lro/bodyPolling.ts +54 -0
- package/src/lro/index.ts +26 -0
- package/src/lro/locationPolling.ts +30 -0
- package/src/lro/lroEngine.ts +61 -0
- package/src/lro/models.ts +173 -0
- package/src/lro/operation.ts +120 -0
- package/src/lro/passthrough.ts +23 -0
- package/src/lro/requestUtils.ts +105 -0
- package/src/lro/stateMachine.ts +138 -0
- package/src/models/index.ts +2813 -4492
- package/src/models/mappers.ts +2745 -2553
- package/src/models/parameters.ts +354 -160
- package/src/operations/blobContainers.ts +719 -1037
- package/src/operations/blobInventoryPolicies.ts +182 -211
- package/src/operations/blobServices.ts +150 -177
- package/src/operations/deletedAccounts.ts +111 -112
- package/src/operations/encryptionScopes.ts +233 -291
- package/src/operations/fileServices.ts +99 -171
- package/src/operations/fileShares.ts +335 -560
- package/src/operations/index.ts +1 -2
- package/src/operations/managementPolicies.ts +102 -175
- package/src/operations/objectReplicationPoliciesOperations.ts +187 -227
- package/src/operations/operations.ts +61 -38
- package/src/operations/privateEndpointConnections.ts +177 -214
- package/src/operations/privateLinkResources.ts +37 -60
- package/src/operations/queue.ts +269 -365
- package/src/operations/queueServices.ts +103 -173
- package/src/operations/skus.ts +59 -41
- package/src/operations/storageAccounts.ts +779 -872
- package/src/operations/tableOperations.ts +255 -328
- package/src/operations/tableServices.ts +103 -173
- package/src/operations/usages.ts +73 -45
- package/src/operationsInterfaces/blobContainers.ts +366 -0
- package/src/operationsInterfaces/blobInventoryPolicies.ts +92 -0
- package/src/operationsInterfaces/blobServices.ts +70 -0
- package/src/operationsInterfaces/deletedAccounts.ts +39 -0
- package/src/operationsInterfaces/encryptionScopes.ts +103 -0
- package/src/operationsInterfaces/fileServices.ts +68 -0
- package/src/operationsInterfaces/fileShares.ts +163 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/managementPolicies.ts +74 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +98 -0
- package/src/operationsInterfaces/operations.ts +23 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +91 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/operationsInterfaces/queue.ts +117 -0
- package/src/operationsInterfaces/queueServices.ts +68 -0
- package/src/operationsInterfaces/skus.ts +23 -0
- package/src/operationsInterfaces/storageAccounts.ts +320 -0
- package/src/operationsInterfaces/tableOperations.ts +112 -0
- package/src/operationsInterfaces/tableServices.ts +68 -0
- package/src/operationsInterfaces/usages.ts +25 -0
- package/src/storageManagementClient.ts +94 -67
- package/src/storageManagementClientContext.ts +42 -46
- package/tsconfig.json +2 -1
- package/dist/arm-storage.js +0 -10687
- package/dist/arm-storage.js.map +0 -1
- package/dist/arm-storage.min.js +0 -1
- package/dist/arm-storage.min.js.map +0 -1
- package/esm/models/blobContainersMappers.d.ts +0 -2
- package/esm/models/blobContainersMappers.d.ts.map +0 -1
- package/esm/models/blobContainersMappers.js +0 -9
- package/esm/models/blobContainersMappers.js.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
- package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.js +0 -9
- package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
- package/esm/models/blobServicesMappers.d.ts +0 -2
- package/esm/models/blobServicesMappers.d.ts.map +0 -1
- package/esm/models/blobServicesMappers.js +0 -9
- package/esm/models/blobServicesMappers.js.map +0 -1
- package/esm/models/deletedAccountsMappers.d.ts +0 -2
- package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
- package/esm/models/deletedAccountsMappers.js +0 -9
- package/esm/models/deletedAccountsMappers.js.map +0 -1
- package/esm/models/encryptionScopesMappers.d.ts +0 -2
- package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
- package/esm/models/encryptionScopesMappers.js +0 -9
- package/esm/models/encryptionScopesMappers.js.map +0 -1
- package/esm/models/fileServicesMappers.d.ts +0 -2
- package/esm/models/fileServicesMappers.d.ts.map +0 -1
- package/esm/models/fileServicesMappers.js +0 -9
- package/esm/models/fileServicesMappers.js.map +0 -1
- package/esm/models/fileSharesMappers.d.ts +0 -2
- package/esm/models/fileSharesMappers.d.ts.map +0 -1
- package/esm/models/fileSharesMappers.js +0 -9
- package/esm/models/fileSharesMappers.js.map +0 -1
- package/esm/models/managementPoliciesMappers.d.ts +0 -2
- package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/managementPoliciesMappers.js +0 -9
- package/esm/models/managementPoliciesMappers.js.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
- package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/queueMappers.d.ts +0 -2
- package/esm/models/queueMappers.d.ts.map +0 -1
- package/esm/models/queueMappers.js +0 -9
- package/esm/models/queueMappers.js.map +0 -1
- package/esm/models/queueServicesMappers.d.ts +0 -2
- package/esm/models/queueServicesMappers.d.ts.map +0 -1
- package/esm/models/queueServicesMappers.js +0 -9
- package/esm/models/queueServicesMappers.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/models/tableOperationsMappers.d.ts +0 -2
- package/esm/models/tableOperationsMappers.d.ts.map +0 -1
- package/esm/models/tableOperationsMappers.js +0 -9
- package/esm/models/tableOperationsMappers.js.map +0 -1
- package/esm/models/tableServicesMappers.d.ts +0 -2
- package/esm/models/tableServicesMappers.d.ts.map +0 -1
- package/esm/models/tableServicesMappers.js +0 -9
- package/esm/models/tableServicesMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js.map +0 -1
- package/src/models/blobContainersMappers.ts +0 -106
- package/src/models/blobInventoryPoliciesMappers.ts +0 -99
- package/src/models/blobServicesMappers.ts +0 -98
- package/src/models/deletedAccountsMappers.ts +0 -99
- package/src/models/encryptionScopesMappers.ts +0 -100
- package/src/models/fileServicesMappers.ts +0 -98
- package/src/models/fileSharesMappers.ts +0 -99
- package/src/models/managementPoliciesMappers.ts +0 -97
- package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
- package/src/models/privateEndpointConnectionsMappers.ts +0 -100
- package/src/models/privateLinkResourcesMappers.ts +0 -98
- package/src/models/queueMappers.ts +0 -98
- package/src/models/queueServicesMappers.ts +0 -98
- package/src/models/storageAccountsMappers.ts +0 -109
- package/src/models/tableOperationsMappers.ts +0 -98
- package/src/models/tableServicesMappers.ts +0 -98
|
@@ -3,640 +3,744 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { LroEngine } from "../lro";
|
|
14
|
+
import { CoreClientLro } from "../coreClientLro";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
16
|
/** Class representing a StorageAccounts. */
|
|
14
|
-
|
|
17
|
+
export class StorageAccountsImpl {
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param
|
|
19
|
+
* Initialize a new instance of the class StorageAccounts class.
|
|
20
|
+
* @param client Reference to the service client
|
|
18
21
|
*/
|
|
19
|
-
|
|
22
|
+
constructor(client) {
|
|
20
23
|
this.client = client;
|
|
21
24
|
}
|
|
22
|
-
StorageAccounts.prototype.checkNameAvailability = function (name, options, callback) {
|
|
23
|
-
return this.client.sendOperationRequest({
|
|
24
|
-
name: name,
|
|
25
|
-
options: options
|
|
26
|
-
}, checkNameAvailabilityOperationSpec, callback);
|
|
27
|
-
};
|
|
28
25
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
* Lists all the storage accounts available under the subscription. Note that storage keys are not
|
|
27
|
+
* returned; use the ListKeys operation for this.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(options) {
|
|
31
|
+
const iter = this.listPagingAll(options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listPagingPage(options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._list(options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listPagingAll(options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Lists all the storage accounts available under the given resource group. Note that storage keys are
|
|
76
|
+
* not returned; use the ListKeys operation for this.
|
|
77
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
78
|
+
* case insensitive.
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
82
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
83
|
+
return {
|
|
84
|
+
next() {
|
|
85
|
+
return iter.next();
|
|
86
|
+
},
|
|
87
|
+
[Symbol.asyncIterator]() {
|
|
88
|
+
return this;
|
|
89
|
+
},
|
|
90
|
+
byPage: () => {
|
|
91
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
96
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
97
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
98
|
+
yield yield __await(result.value || []);
|
|
99
|
+
let continuationToken = result.nextLink;
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
yield yield __await(result.value || []);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
108
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
109
|
+
var e_2, _a;
|
|
110
|
+
try {
|
|
111
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
112
|
+
const page = _c.value;
|
|
113
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
117
|
+
finally {
|
|
118
|
+
try {
|
|
119
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
120
|
+
}
|
|
121
|
+
finally { if (e_2) throw e_2.error; }
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Checks that the storage account name is valid and is not already in use.
|
|
127
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
128
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
129
|
+
* only.
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
checkNameAvailability(accountName, options) {
|
|
133
|
+
return this.client.sendOperationRequest({ accountName, options }, checkNameAvailabilityOperationSpec);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Asynchronously creates a new storage account with the specified parameters. If an account is already
|
|
137
|
+
* created and a subsequent create request is issued with different properties, the account properties
|
|
138
|
+
* will be updated. If an account is already created and a subsequent create or update request is
|
|
139
|
+
* issued with the exact same set of properties, the request will succeed.
|
|
140
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
141
|
+
* case insensitive.
|
|
35
142
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
36
|
-
*
|
|
37
|
-
*
|
|
143
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
144
|
+
* only.
|
|
38
145
|
* @param parameters The parameters to provide for the created account.
|
|
39
|
-
* @param
|
|
40
|
-
* @returns Promise<Models.StorageAccountsCreateResponse>
|
|
146
|
+
* @param options The options parameters.
|
|
41
147
|
*/
|
|
42
|
-
|
|
43
|
-
return this
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
options: options
|
|
71
|
-
}, listOperationSpec, callback);
|
|
72
|
-
};
|
|
73
|
-
StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
|
|
74
|
-
return this.client.sendOperationRequest({
|
|
75
|
-
resourceGroupName: resourceGroupName,
|
|
76
|
-
options: options
|
|
77
|
-
}, listByResourceGroupOperationSpec, callback);
|
|
78
|
-
};
|
|
79
|
-
StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, options, callback) {
|
|
80
|
-
return this.client.sendOperationRequest({
|
|
81
|
-
resourceGroupName: resourceGroupName,
|
|
82
|
-
accountName: accountName,
|
|
83
|
-
options: options
|
|
84
|
-
}, listKeysOperationSpec, callback);
|
|
85
|
-
};
|
|
86
|
-
StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountName, keyName, options, callback) {
|
|
87
|
-
return this.client.sendOperationRequest({
|
|
88
|
-
resourceGroupName: resourceGroupName,
|
|
89
|
-
accountName: accountName,
|
|
90
|
-
keyName: keyName,
|
|
91
|
-
options: options
|
|
92
|
-
}, regenerateKeyOperationSpec, callback);
|
|
93
|
-
};
|
|
94
|
-
StorageAccounts.prototype.listAccountSAS = function (resourceGroupName, accountName, parameters, options, callback) {
|
|
95
|
-
return this.client.sendOperationRequest({
|
|
96
|
-
resourceGroupName: resourceGroupName,
|
|
97
|
-
accountName: accountName,
|
|
98
|
-
parameters: parameters,
|
|
99
|
-
options: options
|
|
100
|
-
}, listAccountSASOperationSpec, callback);
|
|
101
|
-
};
|
|
102
|
-
StorageAccounts.prototype.listServiceSAS = function (resourceGroupName, accountName, parameters, options, callback) {
|
|
103
|
-
return this.client.sendOperationRequest({
|
|
104
|
-
resourceGroupName: resourceGroupName,
|
|
105
|
-
accountName: accountName,
|
|
106
|
-
parameters: parameters,
|
|
107
|
-
options: options
|
|
108
|
-
}, listServiceSASOperationSpec, callback);
|
|
109
|
-
};
|
|
148
|
+
beginCreate(resourceGroupName, accountName, parameters, options) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return this.client.sendOperationRequest(args, spec);
|
|
152
|
+
});
|
|
153
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
var _a;
|
|
155
|
+
let currentRawResponse = undefined;
|
|
156
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
157
|
+
const callback = (rawResponse, flatResponse) => {
|
|
158
|
+
currentRawResponse = rawResponse;
|
|
159
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
160
|
+
};
|
|
161
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
162
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
163
|
+
return {
|
|
164
|
+
flatResponse,
|
|
165
|
+
rawResponse: {
|
|
166
|
+
statusCode: currentRawResponse.status,
|
|
167
|
+
body: currentRawResponse.parsedBody,
|
|
168
|
+
headers: currentRawResponse.headers.toJSON()
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
|
|
173
|
+
return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
|
|
174
|
+
});
|
|
175
|
+
}
|
|
110
176
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
177
|
+
* Asynchronously creates a new storage account with the specified parameters. If an account is already
|
|
178
|
+
* created and a subsequent create request is issued with different properties, the account properties
|
|
179
|
+
* will be updated. If an account is already created and a subsequent create or update request is
|
|
180
|
+
* issued with the exact same set of properties, the request will succeed.
|
|
181
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
182
|
+
* case insensitive.
|
|
116
183
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* @param
|
|
120
|
-
* @
|
|
184
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
185
|
+
* only.
|
|
186
|
+
* @param parameters The parameters to provide for the created account.
|
|
187
|
+
* @param options The options parameters.
|
|
121
188
|
*/
|
|
122
|
-
|
|
123
|
-
return this
|
|
124
|
-
|
|
125
|
-
|
|
189
|
+
beginCreateAndWait(resourceGroupName, accountName, parameters, options) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
|
|
192
|
+
return poller.pollUntilDone();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
126
195
|
/**
|
|
127
|
-
*
|
|
128
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
129
|
-
*
|
|
196
|
+
* Deletes a storage account in Microsoft Azure.
|
|
197
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
198
|
+
* case insensitive.
|
|
130
199
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* @param
|
|
134
|
-
* @param blobRanges Blob ranges to restore.
|
|
135
|
-
* @param [options] The optional parameters
|
|
136
|
-
* @returns Promise<Models.StorageAccountsRestoreBlobRangesResponse>
|
|
200
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
201
|
+
* only.
|
|
202
|
+
* @param options The options parameters.
|
|
137
203
|
*/
|
|
138
|
-
|
|
139
|
-
return this.
|
|
140
|
-
|
|
141
|
-
};
|
|
142
|
-
StorageAccounts.prototype.revokeUserDelegationKeys = function (resourceGroupName, accountName, options, callback) {
|
|
143
|
-
return this.client.sendOperationRequest({
|
|
144
|
-
resourceGroupName: resourceGroupName,
|
|
145
|
-
accountName: accountName,
|
|
146
|
-
options: options
|
|
147
|
-
}, revokeUserDelegationKeysOperationSpec, callback);
|
|
148
|
-
};
|
|
204
|
+
delete(resourceGroupName, accountName, options) {
|
|
205
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
|
|
206
|
+
}
|
|
149
207
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
155
|
-
* is case insensitive.
|
|
208
|
+
* Returns the properties for the specified storage account including but not limited to name, SKU
|
|
209
|
+
* name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
210
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
211
|
+
* case insensitive.
|
|
156
212
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* @param
|
|
160
|
-
* @param [options] The optional parameters
|
|
161
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
213
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
214
|
+
* only.
|
|
215
|
+
* @param options The options parameters.
|
|
162
216
|
*/
|
|
163
|
-
|
|
164
|
-
return this.client.
|
|
165
|
-
|
|
166
|
-
accountName: accountName,
|
|
167
|
-
parameters: parameters,
|
|
168
|
-
options: options
|
|
169
|
-
}, beginCreateOperationSpec, options);
|
|
170
|
-
};
|
|
217
|
+
getProperties(resourceGroupName, accountName, options) {
|
|
218
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getPropertiesOperationSpec);
|
|
219
|
+
}
|
|
171
220
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* is
|
|
221
|
+
* The update operation can be used to update the SKU, encryption, access tier, or tags for a storage
|
|
222
|
+
* account. It can also be used to map the account to a custom domain. Only one custom domain is
|
|
223
|
+
* supported per storage account; the replacement/change of custom domain is not supported. In order to
|
|
224
|
+
* replace an old custom domain, the old value must be cleared/unregistered before a new value can be
|
|
225
|
+
* set. The update of multiple properties is supported. This call does not change the storage keys for
|
|
226
|
+
* the account. If you want to change the storage account keys, use the regenerate keys operation. The
|
|
227
|
+
* location and name of the storage account cannot be changed after creation.
|
|
228
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
229
|
+
* case insensitive.
|
|
177
230
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* @param
|
|
181
|
-
* @
|
|
231
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
232
|
+
* only.
|
|
233
|
+
* @param parameters The parameters to provide for the updated account.
|
|
234
|
+
* @param options The options parameters.
|
|
182
235
|
*/
|
|
183
|
-
|
|
184
|
-
return this.client.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
236
|
+
update(resourceGroupName, accountName, parameters, options) {
|
|
237
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Lists all the storage accounts available under the subscription. Note that storage keys are not
|
|
241
|
+
* returned; use the ListKeys operation for this.
|
|
242
|
+
* @param options The options parameters.
|
|
243
|
+
*/
|
|
244
|
+
_list(options) {
|
|
245
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Lists all the storage accounts available under the given resource group. Note that storage keys are
|
|
249
|
+
* not returned; use the ListKeys operation for this.
|
|
250
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
251
|
+
* case insensitive.
|
|
252
|
+
* @param options The options parameters.
|
|
253
|
+
*/
|
|
254
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
255
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
|
|
259
|
+
* account.
|
|
260
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
261
|
+
* case insensitive.
|
|
262
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
263
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
264
|
+
* only.
|
|
265
|
+
* @param options The options parameters.
|
|
266
|
+
*/
|
|
267
|
+
listKeys(resourceGroupName, accountName, options) {
|
|
268
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
|
272
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
273
|
+
* case insensitive.
|
|
274
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
275
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
276
|
+
* only.
|
|
277
|
+
* @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,
|
|
278
|
+
* kerb2.
|
|
279
|
+
* @param options The options parameters.
|
|
280
|
+
*/
|
|
281
|
+
regenerateKey(resourceGroupName, accountName, regenerateKey, options) {
|
|
282
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerateKey, options }, regenerateKeyOperationSpec);
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* List SAS credentials of a storage account.
|
|
286
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
287
|
+
* case insensitive.
|
|
288
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
289
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
290
|
+
* only.
|
|
291
|
+
* @param parameters The parameters to provide to list SAS credentials for the storage account.
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
listAccountSAS(resourceGroupName, accountName, parameters, options) {
|
|
295
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listAccountSASOperationSpec);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* List service SAS credentials of a specific resource.
|
|
299
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
300
|
+
* case insensitive.
|
|
301
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
302
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
303
|
+
* only.
|
|
304
|
+
* @param parameters The parameters to provide to list service SAS credentials.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
listServiceSAS(resourceGroupName, accountName, parameters, options) {
|
|
308
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listServiceSASOperationSpec);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Failover request can be triggered for a storage account in case of availability issues. The failover
|
|
312
|
+
* occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
|
|
313
|
+
* secondary cluster will become primary after failover.
|
|
314
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
315
|
+
* case insensitive.
|
|
316
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
317
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
318
|
+
* only.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
beginFailover(resourceGroupName, accountName, options) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
return this.client.sendOperationRequest(args, spec);
|
|
325
|
+
});
|
|
326
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
var _a;
|
|
328
|
+
let currentRawResponse = undefined;
|
|
329
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
330
|
+
const callback = (rawResponse, flatResponse) => {
|
|
331
|
+
currentRawResponse = rawResponse;
|
|
332
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
333
|
+
};
|
|
334
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
335
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
336
|
+
return {
|
|
337
|
+
flatResponse,
|
|
338
|
+
rawResponse: {
|
|
339
|
+
statusCode: currentRawResponse.status,
|
|
340
|
+
body: currentRawResponse.parsedBody,
|
|
341
|
+
headers: currentRawResponse.headers.toJSON()
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
});
|
|
345
|
+
const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec, "location");
|
|
346
|
+
return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Failover request can be triggered for a storage account in case of availability issues. The failover
|
|
351
|
+
* occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
|
|
352
|
+
* secondary cluster will become primary after failover.
|
|
353
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
354
|
+
* case insensitive.
|
|
355
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
356
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
357
|
+
* only.
|
|
358
|
+
* @param options The options parameters.
|
|
359
|
+
*/
|
|
360
|
+
beginFailoverAndWait(resourceGroupName, accountName, options) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
const poller = yield this.beginFailover(resourceGroupName, accountName, options);
|
|
363
|
+
return poller.pollUntilDone();
|
|
364
|
+
});
|
|
365
|
+
}
|
|
190
366
|
/**
|
|
191
367
|
* Restore blobs in the specified blob ranges
|
|
192
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
193
|
-
*
|
|
368
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
369
|
+
* case insensitive.
|
|
194
370
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* @param
|
|
198
|
-
* @param
|
|
199
|
-
* @param [options] The optional parameters
|
|
200
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
371
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
372
|
+
* only.
|
|
373
|
+
* @param parameters The parameters to provide for restore blob ranges.
|
|
374
|
+
* @param options The options parameters.
|
|
201
375
|
*/
|
|
202
|
-
|
|
203
|
-
return this
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
|
|
376
|
+
beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
378
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
379
|
+
return this.client.sendOperationRequest(args, spec);
|
|
380
|
+
});
|
|
381
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
var _a;
|
|
383
|
+
let currentRawResponse = undefined;
|
|
384
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
385
|
+
const callback = (rawResponse, flatResponse) => {
|
|
386
|
+
currentRawResponse = rawResponse;
|
|
387
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
388
|
+
};
|
|
389
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
390
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
391
|
+
return {
|
|
392
|
+
flatResponse,
|
|
393
|
+
rawResponse: {
|
|
394
|
+
statusCode: currentRawResponse.status,
|
|
395
|
+
body: currentRawResponse.parsedBody,
|
|
396
|
+
headers: currentRawResponse.headers.toJSON()
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
});
|
|
400
|
+
const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec, "location");
|
|
401
|
+
return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Restore blobs in the specified blob ranges
|
|
406
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
407
|
+
* case insensitive.
|
|
408
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
409
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
410
|
+
* only.
|
|
411
|
+
* @param parameters The parameters to provide for restore blob ranges.
|
|
412
|
+
* @param options The options parameters.
|
|
413
|
+
*/
|
|
414
|
+
beginRestoreBlobRangesAndWait(resourceGroupName, accountName, parameters, options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
|
|
417
|
+
return poller.pollUntilDone();
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Revoke user delegation keys.
|
|
422
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
423
|
+
* case insensitive.
|
|
424
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
425
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
426
|
+
* only.
|
|
427
|
+
* @param options The options parameters.
|
|
428
|
+
*/
|
|
429
|
+
revokeUserDelegationKeys(resourceGroupName, accountName, options) {
|
|
430
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, revokeUserDelegationKeysOperationSpec);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* ListNext
|
|
434
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
435
|
+
* @param options The options parameters.
|
|
436
|
+
*/
|
|
437
|
+
_listNext(nextLink, options) {
|
|
438
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* ListByResourceGroupNext
|
|
442
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
443
|
+
* case insensitive.
|
|
444
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
445
|
+
* @param options The options parameters.
|
|
446
|
+
*/
|
|
447
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
448
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
226
451
|
// Operation Specifications
|
|
227
|
-
|
|
228
|
-
|
|
452
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
453
|
+
const checkNameAvailabilityOperationSpec = {
|
|
454
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
|
|
229
455
|
httpMethod: "POST",
|
|
230
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
|
|
231
|
-
urlParameters: [
|
|
232
|
-
Parameters.subscriptionId
|
|
233
|
-
],
|
|
234
|
-
queryParameters: [
|
|
235
|
-
Parameters.apiVersion
|
|
236
|
-
],
|
|
237
|
-
headerParameters: [
|
|
238
|
-
Parameters.acceptLanguage
|
|
239
|
-
],
|
|
240
|
-
requestBody: {
|
|
241
|
-
parameterPath: {
|
|
242
|
-
name: "name"
|
|
243
|
-
},
|
|
244
|
-
mapper: __assign(__assign({}, Mappers.StorageAccountCheckNameAvailabilityParameters), { required: true })
|
|
245
|
-
},
|
|
246
456
|
responses: {
|
|
247
457
|
200: {
|
|
248
458
|
bodyMapper: Mappers.CheckNameAvailabilityResult
|
|
249
|
-
},
|
|
250
|
-
default: {
|
|
251
|
-
bodyMapper: Mappers.CloudError
|
|
252
459
|
}
|
|
253
460
|
},
|
|
254
|
-
|
|
461
|
+
requestBody: Parameters.accountName,
|
|
462
|
+
queryParameters: [Parameters.apiVersion],
|
|
463
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
464
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
465
|
+
mediaType: "json",
|
|
466
|
+
serializer
|
|
255
467
|
};
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
urlParameters: [
|
|
260
|
-
Parameters.resourceGroupName,
|
|
261
|
-
Parameters.accountName,
|
|
262
|
-
Parameters.subscriptionId
|
|
263
|
-
],
|
|
264
|
-
queryParameters: [
|
|
265
|
-
Parameters.apiVersion
|
|
266
|
-
],
|
|
267
|
-
headerParameters: [
|
|
268
|
-
Parameters.acceptLanguage
|
|
269
|
-
],
|
|
468
|
+
const createOperationSpec = {
|
|
469
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
470
|
+
httpMethod: "PUT",
|
|
270
471
|
responses: {
|
|
271
|
-
200: {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
472
|
+
200: {
|
|
473
|
+
bodyMapper: Mappers.StorageAccount
|
|
474
|
+
},
|
|
475
|
+
201: {
|
|
476
|
+
bodyMapper: Mappers.StorageAccount
|
|
477
|
+
},
|
|
478
|
+
202: {
|
|
479
|
+
bodyMapper: Mappers.StorageAccount
|
|
480
|
+
},
|
|
481
|
+
204: {
|
|
482
|
+
bodyMapper: Mappers.StorageAccount
|
|
275
483
|
}
|
|
276
484
|
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
var getPropertiesOperationSpec = {
|
|
280
|
-
httpMethod: "GET",
|
|
281
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
485
|
+
requestBody: Parameters.parameters,
|
|
486
|
+
queryParameters: [Parameters.apiVersion],
|
|
282
487
|
urlParameters: [
|
|
488
|
+
Parameters.$host,
|
|
489
|
+
Parameters.subscriptionId,
|
|
283
490
|
Parameters.resourceGroupName,
|
|
284
|
-
Parameters.
|
|
285
|
-
Parameters.subscriptionId
|
|
491
|
+
Parameters.accountName1
|
|
286
492
|
],
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
493
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
494
|
+
mediaType: "json",
|
|
495
|
+
serializer
|
|
496
|
+
};
|
|
497
|
+
const deleteOperationSpec = {
|
|
498
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
499
|
+
httpMethod: "DELETE",
|
|
500
|
+
responses: { 200: {}, 204: {} },
|
|
501
|
+
queryParameters: [Parameters.apiVersion],
|
|
502
|
+
urlParameters: [
|
|
503
|
+
Parameters.$host,
|
|
504
|
+
Parameters.subscriptionId,
|
|
505
|
+
Parameters.resourceGroupName,
|
|
506
|
+
Parameters.accountName1
|
|
293
507
|
],
|
|
508
|
+
serializer
|
|
509
|
+
};
|
|
510
|
+
const getPropertiesOperationSpec = {
|
|
511
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
512
|
+
httpMethod: "GET",
|
|
294
513
|
responses: {
|
|
295
514
|
200: {
|
|
296
515
|
bodyMapper: Mappers.StorageAccount
|
|
297
|
-
},
|
|
298
|
-
default: {
|
|
299
|
-
bodyMapper: Mappers.CloudError
|
|
300
516
|
}
|
|
301
517
|
},
|
|
302
|
-
|
|
303
|
-
};
|
|
304
|
-
var updateOperationSpec = {
|
|
305
|
-
httpMethod: "PATCH",
|
|
306
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
518
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
307
519
|
urlParameters: [
|
|
520
|
+
Parameters.$host,
|
|
521
|
+
Parameters.subscriptionId,
|
|
308
522
|
Parameters.resourceGroupName,
|
|
309
|
-
Parameters.
|
|
310
|
-
Parameters.subscriptionId
|
|
523
|
+
Parameters.accountName1
|
|
311
524
|
],
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
requestBody: {
|
|
319
|
-
parameterPath: "parameters",
|
|
320
|
-
mapper: __assign(__assign({}, Mappers.StorageAccountUpdateParameters), { required: true })
|
|
321
|
-
},
|
|
525
|
+
headerParameters: [Parameters.accept],
|
|
526
|
+
serializer
|
|
527
|
+
};
|
|
528
|
+
const updateOperationSpec = {
|
|
529
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
530
|
+
httpMethod: "PATCH",
|
|
322
531
|
responses: {
|
|
323
532
|
200: {
|
|
324
533
|
bodyMapper: Mappers.StorageAccount
|
|
325
|
-
},
|
|
326
|
-
default: {
|
|
327
|
-
bodyMapper: Mappers.CloudError
|
|
328
534
|
}
|
|
329
535
|
},
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
var listOperationSpec = {
|
|
333
|
-
httpMethod: "GET",
|
|
334
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
|
|
536
|
+
requestBody: Parameters.parameters1,
|
|
537
|
+
queryParameters: [Parameters.apiVersion],
|
|
335
538
|
urlParameters: [
|
|
336
|
-
Parameters
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
Parameters.
|
|
340
|
-
],
|
|
341
|
-
headerParameters: [
|
|
342
|
-
Parameters.acceptLanguage
|
|
539
|
+
Parameters.$host,
|
|
540
|
+
Parameters.subscriptionId,
|
|
541
|
+
Parameters.resourceGroupName,
|
|
542
|
+
Parameters.accountName1
|
|
343
543
|
],
|
|
544
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
545
|
+
mediaType: "json",
|
|
546
|
+
serializer
|
|
547
|
+
};
|
|
548
|
+
const listOperationSpec = {
|
|
549
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
|
|
550
|
+
httpMethod: "GET",
|
|
344
551
|
responses: {
|
|
345
552
|
200: {
|
|
346
553
|
bodyMapper: Mappers.StorageAccountListResult
|
|
347
|
-
},
|
|
348
|
-
default: {
|
|
349
|
-
bodyMapper: Mappers.CloudError
|
|
350
554
|
}
|
|
351
555
|
},
|
|
352
|
-
|
|
556
|
+
queryParameters: [Parameters.apiVersion],
|
|
557
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
558
|
+
headerParameters: [Parameters.accept],
|
|
559
|
+
serializer
|
|
353
560
|
};
|
|
354
|
-
|
|
561
|
+
const listByResourceGroupOperationSpec = {
|
|
562
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
|
|
355
563
|
httpMethod: "GET",
|
|
356
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
|
|
357
|
-
urlParameters: [
|
|
358
|
-
Parameters.resourceGroupName,
|
|
359
|
-
Parameters.subscriptionId
|
|
360
|
-
],
|
|
361
|
-
queryParameters: [
|
|
362
|
-
Parameters.apiVersion
|
|
363
|
-
],
|
|
364
|
-
headerParameters: [
|
|
365
|
-
Parameters.acceptLanguage
|
|
366
|
-
],
|
|
367
564
|
responses: {
|
|
368
565
|
200: {
|
|
369
566
|
bodyMapper: Mappers.StorageAccountListResult
|
|
370
|
-
},
|
|
371
|
-
default: {
|
|
372
|
-
bodyMapper: Mappers.CloudError
|
|
373
567
|
}
|
|
374
568
|
},
|
|
375
|
-
|
|
376
|
-
};
|
|
377
|
-
var listKeysOperationSpec = {
|
|
378
|
-
httpMethod: "POST",
|
|
379
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
|
|
569
|
+
queryParameters: [Parameters.apiVersion],
|
|
380
570
|
urlParameters: [
|
|
381
|
-
Parameters
|
|
382
|
-
Parameters.
|
|
383
|
-
Parameters.
|
|
384
|
-
],
|
|
385
|
-
queryParameters: [
|
|
386
|
-
Parameters.apiVersion,
|
|
387
|
-
Parameters.expand1
|
|
388
|
-
],
|
|
389
|
-
headerParameters: [
|
|
390
|
-
Parameters.acceptLanguage
|
|
571
|
+
Parameters.$host,
|
|
572
|
+
Parameters.subscriptionId,
|
|
573
|
+
Parameters.resourceGroupName
|
|
391
574
|
],
|
|
575
|
+
headerParameters: [Parameters.accept],
|
|
576
|
+
serializer
|
|
577
|
+
};
|
|
578
|
+
const listKeysOperationSpec = {
|
|
579
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
|
|
580
|
+
httpMethod: "POST",
|
|
392
581
|
responses: {
|
|
393
582
|
200: {
|
|
394
583
|
bodyMapper: Mappers.StorageAccountListKeysResult
|
|
395
|
-
},
|
|
396
|
-
default: {
|
|
397
|
-
bodyMapper: Mappers.CloudError
|
|
398
584
|
}
|
|
399
585
|
},
|
|
400
|
-
|
|
401
|
-
};
|
|
402
|
-
var regenerateKeyOperationSpec = {
|
|
403
|
-
httpMethod: "POST",
|
|
404
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
|
|
586
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand1],
|
|
405
587
|
urlParameters: [
|
|
588
|
+
Parameters.$host,
|
|
589
|
+
Parameters.subscriptionId,
|
|
406
590
|
Parameters.resourceGroupName,
|
|
407
|
-
Parameters.
|
|
408
|
-
Parameters.subscriptionId
|
|
591
|
+
Parameters.accountName1
|
|
409
592
|
],
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
requestBody: {
|
|
417
|
-
parameterPath: {
|
|
418
|
-
keyName: "keyName"
|
|
419
|
-
},
|
|
420
|
-
mapper: __assign(__assign({}, Mappers.StorageAccountRegenerateKeyParameters), { required: true })
|
|
421
|
-
},
|
|
593
|
+
headerParameters: [Parameters.accept],
|
|
594
|
+
serializer
|
|
595
|
+
};
|
|
596
|
+
const regenerateKeyOperationSpec = {
|
|
597
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
|
|
598
|
+
httpMethod: "POST",
|
|
422
599
|
responses: {
|
|
423
600
|
200: {
|
|
424
601
|
bodyMapper: Mappers.StorageAccountListKeysResult
|
|
425
|
-
},
|
|
426
|
-
default: {
|
|
427
|
-
bodyMapper: Mappers.CloudError
|
|
428
602
|
}
|
|
429
603
|
},
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
var listAccountSASOperationSpec = {
|
|
433
|
-
httpMethod: "POST",
|
|
434
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
|
|
604
|
+
requestBody: Parameters.regenerateKey,
|
|
605
|
+
queryParameters: [Parameters.apiVersion],
|
|
435
606
|
urlParameters: [
|
|
607
|
+
Parameters.$host,
|
|
608
|
+
Parameters.subscriptionId,
|
|
436
609
|
Parameters.resourceGroupName,
|
|
437
|
-
Parameters.
|
|
438
|
-
Parameters.subscriptionId
|
|
439
|
-
],
|
|
440
|
-
queryParameters: [
|
|
441
|
-
Parameters.apiVersion
|
|
610
|
+
Parameters.accountName1
|
|
442
611
|
],
|
|
443
|
-
headerParameters: [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
612
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
613
|
+
mediaType: "json",
|
|
614
|
+
serializer
|
|
615
|
+
};
|
|
616
|
+
const listAccountSASOperationSpec = {
|
|
617
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
|
|
618
|
+
httpMethod: "POST",
|
|
450
619
|
responses: {
|
|
451
620
|
200: {
|
|
452
621
|
bodyMapper: Mappers.ListAccountSasResponse
|
|
453
|
-
},
|
|
454
|
-
default: {
|
|
455
|
-
bodyMapper: Mappers.CloudError
|
|
456
622
|
}
|
|
457
623
|
},
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
var listServiceSASOperationSpec = {
|
|
461
|
-
httpMethod: "POST",
|
|
462
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
|
|
624
|
+
requestBody: Parameters.parameters2,
|
|
625
|
+
queryParameters: [Parameters.apiVersion],
|
|
463
626
|
urlParameters: [
|
|
627
|
+
Parameters.$host,
|
|
628
|
+
Parameters.subscriptionId,
|
|
464
629
|
Parameters.resourceGroupName,
|
|
465
|
-
Parameters.
|
|
466
|
-
Parameters.subscriptionId
|
|
630
|
+
Parameters.accountName1
|
|
467
631
|
],
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
headerParameters: [
|
|
472
|
-
Parameters.acceptLanguage
|
|
473
|
-
],
|
|
474
|
-
requestBody: {
|
|
475
|
-
parameterPath: "parameters",
|
|
476
|
-
mapper: __assign(__assign({}, Mappers.ServiceSasParameters), { required: true })
|
|
477
|
-
},
|
|
478
|
-
responses: {
|
|
479
|
-
200: {
|
|
480
|
-
bodyMapper: Mappers.ListServiceSasResponse
|
|
481
|
-
},
|
|
482
|
-
default: {
|
|
483
|
-
bodyMapper: Mappers.CloudError
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
serializer: serializer
|
|
632
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
633
|
+
mediaType: "json",
|
|
634
|
+
serializer
|
|
487
635
|
};
|
|
488
|
-
|
|
636
|
+
const listServiceSASOperationSpec = {
|
|
637
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
|
|
489
638
|
httpMethod: "POST",
|
|
490
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
|
|
491
|
-
urlParameters: [
|
|
492
|
-
Parameters.resourceGroupName,
|
|
493
|
-
Parameters.accountName,
|
|
494
|
-
Parameters.subscriptionId
|
|
495
|
-
],
|
|
496
|
-
queryParameters: [
|
|
497
|
-
Parameters.apiVersion
|
|
498
|
-
],
|
|
499
|
-
headerParameters: [
|
|
500
|
-
Parameters.acceptLanguage
|
|
501
|
-
],
|
|
502
639
|
responses: {
|
|
503
|
-
200: {
|
|
504
|
-
|
|
505
|
-
bodyMapper: Mappers.CloudError
|
|
640
|
+
200: {
|
|
641
|
+
bodyMapper: Mappers.ListServiceSasResponse
|
|
506
642
|
}
|
|
507
643
|
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
var beginCreateOperationSpec = {
|
|
511
|
-
httpMethod: "PUT",
|
|
512
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
|
|
644
|
+
requestBody: Parameters.parameters3,
|
|
645
|
+
queryParameters: [Parameters.apiVersion],
|
|
513
646
|
urlParameters: [
|
|
647
|
+
Parameters.$host,
|
|
648
|
+
Parameters.subscriptionId,
|
|
514
649
|
Parameters.resourceGroupName,
|
|
515
|
-
Parameters.
|
|
516
|
-
Parameters.subscriptionId
|
|
517
|
-
],
|
|
518
|
-
queryParameters: [
|
|
519
|
-
Parameters.apiVersion
|
|
520
|
-
],
|
|
521
|
-
headerParameters: [
|
|
522
|
-
Parameters.acceptLanguage
|
|
650
|
+
Parameters.accountName1
|
|
523
651
|
],
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
},
|
|
528
|
-
responses: {
|
|
529
|
-
200: {
|
|
530
|
-
bodyMapper: Mappers.StorageAccount
|
|
531
|
-
},
|
|
532
|
-
202: {},
|
|
533
|
-
default: {
|
|
534
|
-
bodyMapper: Mappers.CloudError
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
serializer: serializer
|
|
652
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
653
|
+
mediaType: "json",
|
|
654
|
+
serializer
|
|
538
655
|
};
|
|
539
|
-
|
|
656
|
+
const failoverOperationSpec = {
|
|
657
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
|
|
540
658
|
httpMethod: "POST",
|
|
541
|
-
|
|
659
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
660
|
+
queryParameters: [Parameters.apiVersion],
|
|
542
661
|
urlParameters: [
|
|
662
|
+
Parameters.$host,
|
|
663
|
+
Parameters.subscriptionId,
|
|
543
664
|
Parameters.resourceGroupName,
|
|
544
|
-
Parameters.
|
|
545
|
-
Parameters.subscriptionId
|
|
665
|
+
Parameters.accountName1
|
|
546
666
|
],
|
|
547
|
-
|
|
548
|
-
Parameters.apiVersion
|
|
549
|
-
],
|
|
550
|
-
headerParameters: [
|
|
551
|
-
Parameters.acceptLanguage
|
|
552
|
-
],
|
|
553
|
-
responses: {
|
|
554
|
-
200: {},
|
|
555
|
-
202: {},
|
|
556
|
-
default: {
|
|
557
|
-
bodyMapper: Mappers.CloudError
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
serializer: serializer
|
|
667
|
+
serializer
|
|
561
668
|
};
|
|
562
|
-
|
|
669
|
+
const restoreBlobRangesOperationSpec = {
|
|
670
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
|
|
563
671
|
httpMethod: "POST",
|
|
564
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
|
|
565
|
-
urlParameters: [
|
|
566
|
-
Parameters.resourceGroupName,
|
|
567
|
-
Parameters.accountName,
|
|
568
|
-
Parameters.subscriptionId
|
|
569
|
-
],
|
|
570
|
-
queryParameters: [
|
|
571
|
-
Parameters.apiVersion
|
|
572
|
-
],
|
|
573
|
-
headerParameters: [
|
|
574
|
-
Parameters.acceptLanguage
|
|
575
|
-
],
|
|
576
|
-
requestBody: {
|
|
577
|
-
parameterPath: {
|
|
578
|
-
timeToRestore: "timeToRestore",
|
|
579
|
-
blobRanges: "blobRanges"
|
|
580
|
-
},
|
|
581
|
-
mapper: __assign(__assign({}, Mappers.BlobRestoreParameters), { required: true })
|
|
582
|
-
},
|
|
583
672
|
responses: {
|
|
584
673
|
200: {
|
|
585
674
|
bodyMapper: Mappers.BlobRestoreStatus
|
|
586
675
|
},
|
|
676
|
+
201: {
|
|
677
|
+
bodyMapper: Mappers.BlobRestoreStatus
|
|
678
|
+
},
|
|
587
679
|
202: {
|
|
588
680
|
bodyMapper: Mappers.BlobRestoreStatus
|
|
589
681
|
},
|
|
590
|
-
|
|
591
|
-
bodyMapper: Mappers.
|
|
682
|
+
204: {
|
|
683
|
+
bodyMapper: Mappers.BlobRestoreStatus
|
|
592
684
|
}
|
|
593
685
|
},
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
var listNextOperationSpec = {
|
|
597
|
-
httpMethod: "GET",
|
|
598
|
-
baseUrl: "https://management.azure.com",
|
|
599
|
-
path: "{nextLink}",
|
|
686
|
+
requestBody: Parameters.parameters4,
|
|
687
|
+
queryParameters: [Parameters.apiVersion],
|
|
600
688
|
urlParameters: [
|
|
601
|
-
Parameters
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
Parameters.
|
|
689
|
+
Parameters.$host,
|
|
690
|
+
Parameters.subscriptionId,
|
|
691
|
+
Parameters.resourceGroupName,
|
|
692
|
+
Parameters.accountName1
|
|
605
693
|
],
|
|
606
|
-
headerParameters: [
|
|
607
|
-
|
|
694
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
695
|
+
mediaType: "json",
|
|
696
|
+
serializer
|
|
697
|
+
};
|
|
698
|
+
const revokeUserDelegationKeysOperationSpec = {
|
|
699
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
|
|
700
|
+
httpMethod: "POST",
|
|
701
|
+
responses: { 200: {} },
|
|
702
|
+
queryParameters: [Parameters.apiVersion],
|
|
703
|
+
urlParameters: [
|
|
704
|
+
Parameters.$host,
|
|
705
|
+
Parameters.subscriptionId,
|
|
706
|
+
Parameters.resourceGroupName,
|
|
707
|
+
Parameters.accountName1
|
|
608
708
|
],
|
|
709
|
+
serializer
|
|
710
|
+
};
|
|
711
|
+
const listNextOperationSpec = {
|
|
712
|
+
path: "{nextLink}",
|
|
713
|
+
httpMethod: "GET",
|
|
609
714
|
responses: {
|
|
610
715
|
200: {
|
|
611
716
|
bodyMapper: Mappers.StorageAccountListResult
|
|
612
|
-
},
|
|
613
|
-
default: {
|
|
614
|
-
bodyMapper: Mappers.CloudError
|
|
615
717
|
}
|
|
616
718
|
},
|
|
617
|
-
|
|
618
|
-
};
|
|
619
|
-
var listByResourceGroupNextOperationSpec = {
|
|
620
|
-
httpMethod: "GET",
|
|
621
|
-
baseUrl: "https://management.azure.com",
|
|
622
|
-
path: "{nextLink}",
|
|
719
|
+
queryParameters: [Parameters.apiVersion],
|
|
623
720
|
urlParameters: [
|
|
624
|
-
Parameters
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
Parameters.apiVersion
|
|
628
|
-
],
|
|
629
|
-
headerParameters: [
|
|
630
|
-
Parameters.acceptLanguage
|
|
721
|
+
Parameters.$host,
|
|
722
|
+
Parameters.subscriptionId,
|
|
723
|
+
Parameters.nextLink
|
|
631
724
|
],
|
|
725
|
+
headerParameters: [Parameters.accept],
|
|
726
|
+
serializer
|
|
727
|
+
};
|
|
728
|
+
const listByResourceGroupNextOperationSpec = {
|
|
729
|
+
path: "{nextLink}",
|
|
730
|
+
httpMethod: "GET",
|
|
632
731
|
responses: {
|
|
633
732
|
200: {
|
|
634
733
|
bodyMapper: Mappers.StorageAccountListResult
|
|
635
|
-
},
|
|
636
|
-
default: {
|
|
637
|
-
bodyMapper: Mappers.CloudError
|
|
638
734
|
}
|
|
639
735
|
},
|
|
640
|
-
|
|
736
|
+
queryParameters: [Parameters.apiVersion],
|
|
737
|
+
urlParameters: [
|
|
738
|
+
Parameters.$host,
|
|
739
|
+
Parameters.subscriptionId,
|
|
740
|
+
Parameters.resourceGroupName,
|
|
741
|
+
Parameters.nextLink
|
|
742
|
+
],
|
|
743
|
+
headerParameters: [Parameters.accept],
|
|
744
|
+
serializer
|
|
641
745
|
};
|
|
642
746
|
//# sourceMappingURL=storageAccounts.js.map
|