@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,1265 +3,947 @@
|
|
|
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
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { BlobContainers } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { StorageManagementClientContext } from "../storageManagementClientContext";
|
|
16
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
17
|
+
import { LroEngine } from "../lro";
|
|
18
|
+
import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
|
|
19
|
+
import {
|
|
20
|
+
ListContainerItem,
|
|
21
|
+
BlobContainersListNextOptionalParams,
|
|
22
|
+
BlobContainersListOptionalParams,
|
|
23
|
+
BlobContainersListResponse,
|
|
24
|
+
BlobContainer,
|
|
25
|
+
BlobContainersCreateOptionalParams,
|
|
26
|
+
BlobContainersCreateResponse,
|
|
27
|
+
BlobContainersUpdateOptionalParams,
|
|
28
|
+
BlobContainersUpdateResponse,
|
|
29
|
+
BlobContainersGetOptionalParams,
|
|
30
|
+
BlobContainersGetResponse,
|
|
31
|
+
BlobContainersDeleteOptionalParams,
|
|
32
|
+
LegalHold,
|
|
33
|
+
BlobContainersSetLegalHoldOptionalParams,
|
|
34
|
+
BlobContainersSetLegalHoldResponse,
|
|
35
|
+
BlobContainersClearLegalHoldOptionalParams,
|
|
36
|
+
BlobContainersClearLegalHoldResponse,
|
|
37
|
+
BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,
|
|
38
|
+
BlobContainersCreateOrUpdateImmutabilityPolicyResponse,
|
|
39
|
+
BlobContainersGetImmutabilityPolicyOptionalParams,
|
|
40
|
+
BlobContainersGetImmutabilityPolicyResponse,
|
|
41
|
+
BlobContainersDeleteImmutabilityPolicyOptionalParams,
|
|
42
|
+
BlobContainersDeleteImmutabilityPolicyResponse,
|
|
43
|
+
BlobContainersLockImmutabilityPolicyOptionalParams,
|
|
44
|
+
BlobContainersLockImmutabilityPolicyResponse,
|
|
45
|
+
BlobContainersExtendImmutabilityPolicyOptionalParams,
|
|
46
|
+
BlobContainersExtendImmutabilityPolicyResponse,
|
|
47
|
+
BlobContainersLeaseOptionalParams,
|
|
48
|
+
BlobContainersLeaseResponse,
|
|
49
|
+
BlobContainersObjectLevelWormOptionalParams,
|
|
50
|
+
BlobContainersListNextResponse
|
|
51
|
+
} from "../models";
|
|
15
52
|
|
|
53
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
54
|
/** Class representing a BlobContainers. */
|
|
17
|
-
export class BlobContainers {
|
|
55
|
+
export class BlobContainersImpl implements BlobContainers {
|
|
18
56
|
private readonly client: StorageManagementClientContext;
|
|
19
57
|
|
|
20
58
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
59
|
+
* Initialize a new instance of the class BlobContainers class.
|
|
60
|
+
* @param client Reference to the service client
|
|
23
61
|
*/
|
|
24
62
|
constructor(client: StorageManagementClientContext) {
|
|
25
63
|
this.client = client;
|
|
26
64
|
}
|
|
27
65
|
|
|
28
66
|
/**
|
|
29
|
-
* Lists all containers and does not support a prefix like data plane. Also SRP today does not
|
|
30
|
-
*
|
|
31
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
32
|
-
*
|
|
33
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
67
|
+
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
|
|
68
|
+
* continuation token.
|
|
69
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
70
|
+
* case insensitive.
|
|
71
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
72
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
73
|
+
* only.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
public list(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
accountName: string,
|
|
79
|
+
options?: BlobContainersListOptionalParams
|
|
80
|
+
): PagedAsyncIterableIterator<ListContainerItem> {
|
|
81
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
82
|
+
return {
|
|
83
|
+
next() {
|
|
84
|
+
return iter.next();
|
|
85
|
+
},
|
|
86
|
+
[Symbol.asyncIterator]() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
byPage: () => {
|
|
90
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private async *listPagingPage(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
accountName: string,
|
|
98
|
+
options?: BlobContainersListOptionalParams
|
|
99
|
+
): AsyncIterableIterator<ListContainerItem[]> {
|
|
100
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
101
|
+
yield result.value || [];
|
|
102
|
+
let continuationToken = result.nextLink;
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listNext(
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
accountName,
|
|
107
|
+
continuationToken,
|
|
108
|
+
options
|
|
109
|
+
);
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
yield result.value || [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
private async *listPagingAll(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
accountName: string,
|
|
118
|
+
options?: BlobContainersListOptionalParams
|
|
119
|
+
): AsyncIterableIterator<ListContainerItem> {
|
|
120
|
+
for await (const page of this.listPagingPage(
|
|
121
|
+
resourceGroupName,
|
|
122
|
+
accountName,
|
|
123
|
+
options
|
|
124
|
+
)) {
|
|
125
|
+
yield* page;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
49
129
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
130
|
+
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
|
|
131
|
+
* continuation token.
|
|
132
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
133
|
+
* case insensitive.
|
|
52
134
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @param options The
|
|
56
|
-
* @param callback The callback
|
|
135
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
136
|
+
* only.
|
|
137
|
+
* @param options The options parameters.
|
|
57
138
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
139
|
+
private _list(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
accountName: string,
|
|
142
|
+
options?: BlobContainersListOptionalParams
|
|
143
|
+
): Promise<BlobContainersListResponse> {
|
|
60
144
|
return this.client.sendOperationRequest(
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
options
|
|
65
|
-
},
|
|
66
|
-
listOperationSpec,
|
|
67
|
-
callback) as Promise<Models.BlobContainersListResponse>;
|
|
145
|
+
{ resourceGroupName, accountName, options },
|
|
146
|
+
listOperationSpec
|
|
147
|
+
);
|
|
68
148
|
}
|
|
69
149
|
|
|
70
150
|
/**
|
|
71
151
|
* Creates a new container under the specified account as described by request body. The container
|
|
72
152
|
* resource includes metadata and properties for that container. It does not include a list of the
|
|
73
153
|
* blobs contained by the container.
|
|
74
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
75
|
-
*
|
|
76
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
77
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
78
|
-
* letters only.
|
|
79
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
80
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
81
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
82
|
-
* a letter or number.
|
|
83
|
-
* @param blobContainer Properties of the blob container to create.
|
|
84
|
-
* @param [options] The optional parameters
|
|
85
|
-
* @returns Promise<Models.BlobContainersCreateResponse>
|
|
86
|
-
*/
|
|
87
|
-
create(resourceGroupName: string, accountName: string, containerName: string, blobContainer: Models.BlobContainer, options?: msRest.RequestOptionsBase): Promise<Models.BlobContainersCreateResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
90
|
-
* is case insensitive.
|
|
91
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
92
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
93
|
-
* letters only.
|
|
94
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
95
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
96
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
97
|
-
* a letter or number.
|
|
98
|
-
* @param blobContainer Properties of the blob container to create.
|
|
99
|
-
* @param callback The callback
|
|
100
|
-
*/
|
|
101
|
-
create(resourceGroupName: string, accountName: string, containerName: string, blobContainer: Models.BlobContainer, callback: msRest.ServiceCallback<Models.BlobContainer>): void;
|
|
102
|
-
/**
|
|
103
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
104
|
-
* is case insensitive.
|
|
154
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
155
|
+
* case insensitive.
|
|
105
156
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
106
|
-
*
|
|
107
|
-
*
|
|
157
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
158
|
+
* only.
|
|
108
159
|
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
160
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
161
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
162
|
+
* number.
|
|
112
163
|
* @param blobContainer Properties of the blob container to create.
|
|
113
|
-
* @param options The
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
164
|
+
* @param options The options parameters.
|
|
165
|
+
*/
|
|
166
|
+
create(
|
|
167
|
+
resourceGroupName: string,
|
|
168
|
+
accountName: string,
|
|
169
|
+
containerName: string,
|
|
170
|
+
blobContainer: BlobContainer,
|
|
171
|
+
options?: BlobContainersCreateOptionalParams
|
|
172
|
+
): Promise<BlobContainersCreateResponse> {
|
|
118
173
|
return this.client.sendOperationRequest(
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
containerName,
|
|
123
|
-
blobContainer,
|
|
124
|
-
options
|
|
125
|
-
},
|
|
126
|
-
createOperationSpec,
|
|
127
|
-
callback) as Promise<Models.BlobContainersCreateResponse>;
|
|
174
|
+
{ resourceGroupName, accountName, containerName, blobContainer, options },
|
|
175
|
+
createOperationSpec
|
|
176
|
+
);
|
|
128
177
|
}
|
|
129
178
|
|
|
130
179
|
/**
|
|
131
|
-
* Updates container properties as specified in request body. Properties not mentioned in the
|
|
132
|
-
*
|
|
133
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
134
|
-
*
|
|
135
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
136
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
137
|
-
* letters only.
|
|
138
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
139
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
140
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
141
|
-
* a letter or number.
|
|
142
|
-
* @param blobContainer Properties to update for the blob container.
|
|
143
|
-
* @param [options] The optional parameters
|
|
144
|
-
* @returns Promise<Models.BlobContainersUpdateResponse>
|
|
145
|
-
*/
|
|
146
|
-
update(resourceGroupName: string, accountName: string, containerName: string, blobContainer: Models.BlobContainer, options?: msRest.RequestOptionsBase): Promise<Models.BlobContainersUpdateResponse>;
|
|
147
|
-
/**
|
|
148
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
149
|
-
* is case insensitive.
|
|
180
|
+
* Updates container properties as specified in request body. Properties not mentioned in the request
|
|
181
|
+
* will be unchanged. Update fails if the specified container doesn't already exist.
|
|
182
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
183
|
+
* case insensitive.
|
|
150
184
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
151
|
-
*
|
|
152
|
-
*
|
|
185
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
186
|
+
* only.
|
|
153
187
|
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
188
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
189
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
190
|
+
* number.
|
|
157
191
|
* @param blobContainer Properties to update for the blob container.
|
|
158
|
-
* @param
|
|
159
|
-
*/
|
|
160
|
-
update(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
168
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
169
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
170
|
-
* a letter or number.
|
|
171
|
-
* @param blobContainer Properties to update for the blob container.
|
|
172
|
-
* @param options The optional parameters
|
|
173
|
-
* @param callback The callback
|
|
174
|
-
*/
|
|
175
|
-
update(resourceGroupName: string, accountName: string, containerName: string, blobContainer: Models.BlobContainer, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BlobContainer>): void;
|
|
176
|
-
update(resourceGroupName: string, accountName: string, containerName: string, blobContainer: Models.BlobContainer, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BlobContainer>, callback?: msRest.ServiceCallback<Models.BlobContainer>): Promise<Models.BlobContainersUpdateResponse> {
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
update(
|
|
195
|
+
resourceGroupName: string,
|
|
196
|
+
accountName: string,
|
|
197
|
+
containerName: string,
|
|
198
|
+
blobContainer: BlobContainer,
|
|
199
|
+
options?: BlobContainersUpdateOptionalParams
|
|
200
|
+
): Promise<BlobContainersUpdateResponse> {
|
|
177
201
|
return this.client.sendOperationRequest(
|
|
178
|
-
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
containerName,
|
|
182
|
-
blobContainer,
|
|
183
|
-
options
|
|
184
|
-
},
|
|
185
|
-
updateOperationSpec,
|
|
186
|
-
callback) as Promise<Models.BlobContainersUpdateResponse>;
|
|
202
|
+
{ resourceGroupName, accountName, containerName, blobContainer, options },
|
|
203
|
+
updateOperationSpec
|
|
204
|
+
);
|
|
187
205
|
}
|
|
188
206
|
|
|
189
207
|
/**
|
|
190
208
|
* Gets properties of a specified container.
|
|
191
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
192
|
-
*
|
|
193
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* @param
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
209
|
-
* letters only.
|
|
210
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
211
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
212
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
213
|
-
* a letter or number.
|
|
214
|
-
* @param callback The callback
|
|
215
|
-
*/
|
|
216
|
-
get(resourceGroupName: string, accountName: string, containerName: string, callback: msRest.ServiceCallback<Models.BlobContainer>): void;
|
|
217
|
-
/**
|
|
218
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
219
|
-
* is case insensitive.
|
|
220
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
221
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
222
|
-
* letters only.
|
|
223
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
224
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
225
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
226
|
-
* a letter or number.
|
|
227
|
-
* @param options The optional parameters
|
|
228
|
-
* @param callback The callback
|
|
229
|
-
*/
|
|
230
|
-
get(resourceGroupName: string, accountName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.BlobContainer>): void;
|
|
231
|
-
get(resourceGroupName: string, accountName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.BlobContainer>, callback?: msRest.ServiceCallback<Models.BlobContainer>): Promise<Models.BlobContainersGetResponse> {
|
|
209
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
210
|
+
* case insensitive.
|
|
211
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
212
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
213
|
+
* only.
|
|
214
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
215
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
216
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
217
|
+
* number.
|
|
218
|
+
* @param options The options parameters.
|
|
219
|
+
*/
|
|
220
|
+
get(
|
|
221
|
+
resourceGroupName: string,
|
|
222
|
+
accountName: string,
|
|
223
|
+
containerName: string,
|
|
224
|
+
options?: BlobContainersGetOptionalParams
|
|
225
|
+
): Promise<BlobContainersGetResponse> {
|
|
232
226
|
return this.client.sendOperationRequest(
|
|
233
|
-
{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
containerName,
|
|
237
|
-
options
|
|
238
|
-
},
|
|
239
|
-
getOperationSpec,
|
|
240
|
-
callback) as Promise<Models.BlobContainersGetResponse>;
|
|
227
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
228
|
+
getOperationSpec
|
|
229
|
+
);
|
|
241
230
|
}
|
|
242
231
|
|
|
243
232
|
/**
|
|
244
233
|
* Deletes specified container under its account.
|
|
245
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
246
|
-
*
|
|
247
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* @param
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
263
|
-
* letters only.
|
|
264
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
265
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
266
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
267
|
-
* a letter or number.
|
|
268
|
-
* @param callback The callback
|
|
269
|
-
*/
|
|
270
|
-
deleteMethod(resourceGroupName: string, accountName: string, containerName: string, callback: msRest.ServiceCallback<void>): void;
|
|
271
|
-
/**
|
|
272
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
273
|
-
* is 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
|
|
276
|
-
* letters only.
|
|
277
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
278
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
279
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
280
|
-
* a letter or number.
|
|
281
|
-
* @param options The optional parameters
|
|
282
|
-
* @param callback The callback
|
|
283
|
-
*/
|
|
284
|
-
deleteMethod(resourceGroupName: string, accountName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
285
|
-
deleteMethod(resourceGroupName: string, accountName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
234
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
235
|
+
* case insensitive.
|
|
236
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
237
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
238
|
+
* only.
|
|
239
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
240
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
241
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
242
|
+
* number.
|
|
243
|
+
* @param options The options parameters.
|
|
244
|
+
*/
|
|
245
|
+
delete(
|
|
246
|
+
resourceGroupName: string,
|
|
247
|
+
accountName: string,
|
|
248
|
+
containerName: string,
|
|
249
|
+
options?: BlobContainersDeleteOptionalParams
|
|
250
|
+
): Promise<void> {
|
|
286
251
|
return this.client.sendOperationRequest(
|
|
287
|
-
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
containerName,
|
|
291
|
-
options
|
|
292
|
-
},
|
|
293
|
-
deleteMethodOperationSpec,
|
|
294
|
-
callback);
|
|
252
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
253
|
+
deleteOperationSpec
|
|
254
|
+
);
|
|
295
255
|
}
|
|
296
256
|
|
|
297
257
|
/**
|
|
298
|
-
* Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
* a
|
|
310
|
-
* @param
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
320
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
321
|
-
* letters only.
|
|
322
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
323
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
324
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
325
|
-
* a letter or number.
|
|
326
|
-
* @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case
|
|
327
|
-
* at SRP.
|
|
328
|
-
* @param callback The callback
|
|
329
|
-
*/
|
|
330
|
-
setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], callback: msRest.ServiceCallback<Models.LegalHold>): void;
|
|
331
|
-
/**
|
|
332
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
333
|
-
* is case insensitive.
|
|
334
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
335
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
336
|
-
* letters only.
|
|
337
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
338
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
339
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
340
|
-
* a letter or number.
|
|
341
|
-
* @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case
|
|
342
|
-
* at SRP.
|
|
343
|
-
* @param options The optional parameters
|
|
344
|
-
* @param callback The callback
|
|
345
|
-
*/
|
|
346
|
-
setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.LegalHold>): void;
|
|
347
|
-
setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.LegalHold>, callback?: msRest.ServiceCallback<Models.LegalHold>): Promise<Models.BlobContainersSetLegalHoldResponse> {
|
|
258
|
+
* Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows
|
|
259
|
+
* an append pattern and does not clear out the existing tags that are not specified in the request.
|
|
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 containerName The name of the blob container within the specified storage account. Blob
|
|
266
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
267
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
268
|
+
* number.
|
|
269
|
+
* @param legalHold The LegalHold property that will be set to a blob container.
|
|
270
|
+
* @param options The options parameters.
|
|
271
|
+
*/
|
|
272
|
+
setLegalHold(
|
|
273
|
+
resourceGroupName: string,
|
|
274
|
+
accountName: string,
|
|
275
|
+
containerName: string,
|
|
276
|
+
legalHold: LegalHold,
|
|
277
|
+
options?: BlobContainersSetLegalHoldOptionalParams
|
|
278
|
+
): Promise<BlobContainersSetLegalHoldResponse> {
|
|
348
279
|
return this.client.sendOperationRequest(
|
|
349
|
-
{
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
containerName,
|
|
353
|
-
tags,
|
|
354
|
-
options
|
|
355
|
-
},
|
|
356
|
-
setLegalHoldOperationSpec,
|
|
357
|
-
callback) as Promise<Models.BlobContainersSetLegalHoldResponse>;
|
|
280
|
+
{ resourceGroupName, accountName, containerName, legalHold, options },
|
|
281
|
+
setLegalHoldOperationSpec
|
|
282
|
+
);
|
|
358
283
|
}
|
|
359
284
|
|
|
360
285
|
/**
|
|
361
|
-
* Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent
|
|
362
|
-
*
|
|
363
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
364
|
-
*
|
|
365
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* @param
|
|
373
|
-
*
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
383
|
-
* letters only.
|
|
384
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
385
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
386
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
387
|
-
* a letter or number.
|
|
388
|
-
* @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case
|
|
389
|
-
* at SRP.
|
|
390
|
-
* @param callback The callback
|
|
391
|
-
*/
|
|
392
|
-
clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], callback: msRest.ServiceCallback<Models.LegalHold>): void;
|
|
393
|
-
/**
|
|
394
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
395
|
-
* is case insensitive.
|
|
396
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
397
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
398
|
-
* letters only.
|
|
399
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
400
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
401
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
402
|
-
* a letter or number.
|
|
403
|
-
* @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case
|
|
404
|
-
* at SRP.
|
|
405
|
-
* @param options The optional parameters
|
|
406
|
-
* @param callback The callback
|
|
407
|
-
*/
|
|
408
|
-
clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.LegalHold>): void;
|
|
409
|
-
clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.LegalHold>, callback?: msRest.ServiceCallback<Models.LegalHold>): Promise<Models.BlobContainersClearLegalHoldResponse> {
|
|
286
|
+
* Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.
|
|
287
|
+
* ClearLegalHold clears out only the specified tags in the request.
|
|
288
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
289
|
+
* case insensitive.
|
|
290
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
291
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
292
|
+
* only.
|
|
293
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
294
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
295
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
296
|
+
* number.
|
|
297
|
+
* @param legalHold The LegalHold property that will be clear from a blob container.
|
|
298
|
+
* @param options The options parameters.
|
|
299
|
+
*/
|
|
300
|
+
clearLegalHold(
|
|
301
|
+
resourceGroupName: string,
|
|
302
|
+
accountName: string,
|
|
303
|
+
containerName: string,
|
|
304
|
+
legalHold: LegalHold,
|
|
305
|
+
options?: BlobContainersClearLegalHoldOptionalParams
|
|
306
|
+
): Promise<BlobContainersClearLegalHoldResponse> {
|
|
410
307
|
return this.client.sendOperationRequest(
|
|
411
|
-
{
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
containerName,
|
|
415
|
-
tags,
|
|
416
|
-
options
|
|
417
|
-
},
|
|
418
|
-
clearLegalHoldOperationSpec,
|
|
419
|
-
callback) as Promise<Models.BlobContainersClearLegalHoldResponse>;
|
|
308
|
+
{ resourceGroupName, accountName, containerName, legalHold, options },
|
|
309
|
+
clearLegalHoldOperationSpec
|
|
310
|
+
);
|
|
420
311
|
}
|
|
421
312
|
|
|
422
313
|
/**
|
|
423
314
|
* Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not
|
|
424
315
|
* required for this operation.
|
|
425
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
426
|
-
*
|
|
427
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
* @param
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
443
|
-
* letters only.
|
|
444
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
445
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
446
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
447
|
-
* a letter or number.
|
|
448
|
-
* @param callback The callback
|
|
449
|
-
*/
|
|
450
|
-
createOrUpdateImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
451
|
-
/**
|
|
452
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
453
|
-
* is case insensitive.
|
|
454
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
455
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
456
|
-
* letters only.
|
|
457
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
458
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
459
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
460
|
-
* a letter or number.
|
|
461
|
-
* @param options The optional parameters
|
|
462
|
-
* @param callback The callback
|
|
463
|
-
*/
|
|
464
|
-
createOrUpdateImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, options: Models.BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
465
|
-
createOrUpdateImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, options?: Models.BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams | msRest.ServiceCallback<Models.ImmutabilityPolicy>, callback?: msRest.ServiceCallback<Models.ImmutabilityPolicy>): Promise<Models.BlobContainersCreateOrUpdateImmutabilityPolicyResponse> {
|
|
316
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
317
|
+
* case insensitive.
|
|
318
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
319
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
320
|
+
* only.
|
|
321
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
322
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
323
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
324
|
+
* number.
|
|
325
|
+
* @param options The options parameters.
|
|
326
|
+
*/
|
|
327
|
+
createOrUpdateImmutabilityPolicy(
|
|
328
|
+
resourceGroupName: string,
|
|
329
|
+
accountName: string,
|
|
330
|
+
containerName: string,
|
|
331
|
+
options?: BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams
|
|
332
|
+
): Promise<BlobContainersCreateOrUpdateImmutabilityPolicyResponse> {
|
|
466
333
|
return this.client.sendOperationRequest(
|
|
467
|
-
{
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
containerName,
|
|
471
|
-
options
|
|
472
|
-
},
|
|
473
|
-
createOrUpdateImmutabilityPolicyOperationSpec,
|
|
474
|
-
callback) as Promise<Models.BlobContainersCreateOrUpdateImmutabilityPolicyResponse>;
|
|
334
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
335
|
+
createOrUpdateImmutabilityPolicyOperationSpec
|
|
336
|
+
);
|
|
475
337
|
}
|
|
476
338
|
|
|
477
339
|
/**
|
|
478
340
|
* Gets the existing immutability policy along with the corresponding ETag in response headers and
|
|
479
341
|
* body.
|
|
480
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
481
|
-
*
|
|
482
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
* @param
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
498
|
-
* letters only.
|
|
499
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
500
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
501
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
502
|
-
* a letter or number.
|
|
503
|
-
* @param callback The callback
|
|
504
|
-
*/
|
|
505
|
-
getImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
506
|
-
/**
|
|
507
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
508
|
-
* is case insensitive.
|
|
509
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
510
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
511
|
-
* letters only.
|
|
512
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
513
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
514
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
515
|
-
* a letter or number.
|
|
516
|
-
* @param options The optional parameters
|
|
517
|
-
* @param callback The callback
|
|
518
|
-
*/
|
|
519
|
-
getImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, options: Models.BlobContainersGetImmutabilityPolicyOptionalParams, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
520
|
-
getImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, options?: Models.BlobContainersGetImmutabilityPolicyOptionalParams | msRest.ServiceCallback<Models.ImmutabilityPolicy>, callback?: msRest.ServiceCallback<Models.ImmutabilityPolicy>): Promise<Models.BlobContainersGetImmutabilityPolicyResponse> {
|
|
342
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
343
|
+
* case insensitive.
|
|
344
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
345
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
346
|
+
* only.
|
|
347
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
348
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
349
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
350
|
+
* number.
|
|
351
|
+
* @param options The options parameters.
|
|
352
|
+
*/
|
|
353
|
+
getImmutabilityPolicy(
|
|
354
|
+
resourceGroupName: string,
|
|
355
|
+
accountName: string,
|
|
356
|
+
containerName: string,
|
|
357
|
+
options?: BlobContainersGetImmutabilityPolicyOptionalParams
|
|
358
|
+
): Promise<BlobContainersGetImmutabilityPolicyResponse> {
|
|
521
359
|
return this.client.sendOperationRequest(
|
|
522
|
-
{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
containerName,
|
|
526
|
-
options
|
|
527
|
-
},
|
|
528
|
-
getImmutabilityPolicyOperationSpec,
|
|
529
|
-
callback) as Promise<Models.BlobContainersGetImmutabilityPolicyResponse>;
|
|
360
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
361
|
+
getImmutabilityPolicyOperationSpec
|
|
362
|
+
);
|
|
530
363
|
}
|
|
531
364
|
|
|
532
365
|
/**
|
|
533
366
|
* Aborts an unlocked immutability policy. The response of delete has
|
|
534
367
|
* immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.
|
|
535
|
-
* Deleting a locked immutability policy is not allowed, the only way is to delete the container
|
|
536
|
-
*
|
|
537
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
538
|
-
*
|
|
539
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
* @param
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
* letters only.
|
|
559
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
560
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
561
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
562
|
-
* a letter or number.
|
|
563
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
564
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
565
|
-
* omitted, this operation will always be applied.
|
|
566
|
-
* @param callback The callback
|
|
567
|
-
*/
|
|
568
|
-
deleteImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
569
|
-
/**
|
|
570
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
571
|
-
* is case insensitive.
|
|
572
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
573
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
574
|
-
* letters only.
|
|
575
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
576
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
577
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
578
|
-
* a letter or number.
|
|
579
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
580
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
581
|
-
* omitted, this operation will always be applied.
|
|
582
|
-
* @param options The optional parameters
|
|
583
|
-
* @param callback The callback
|
|
584
|
-
*/
|
|
585
|
-
deleteImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
586
|
-
deleteImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ImmutabilityPolicy>, callback?: msRest.ServiceCallback<Models.ImmutabilityPolicy>): Promise<Models.BlobContainersDeleteImmutabilityPolicyResponse> {
|
|
368
|
+
* Deleting a locked immutability policy is not allowed, the only way is to delete the container after
|
|
369
|
+
* deleting all expired blobs inside the policy locked container.
|
|
370
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
371
|
+
* case insensitive.
|
|
372
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
373
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
374
|
+
* only.
|
|
375
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
376
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
377
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
378
|
+
* number.
|
|
379
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
380
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
381
|
+
* operation will always be applied.
|
|
382
|
+
* @param options The options parameters.
|
|
383
|
+
*/
|
|
384
|
+
deleteImmutabilityPolicy(
|
|
385
|
+
resourceGroupName: string,
|
|
386
|
+
accountName: string,
|
|
387
|
+
containerName: string,
|
|
388
|
+
ifMatch: string,
|
|
389
|
+
options?: BlobContainersDeleteImmutabilityPolicyOptionalParams
|
|
390
|
+
): Promise<BlobContainersDeleteImmutabilityPolicyResponse> {
|
|
587
391
|
return this.client.sendOperationRequest(
|
|
588
|
-
{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
containerName,
|
|
592
|
-
ifMatch,
|
|
593
|
-
options
|
|
594
|
-
},
|
|
595
|
-
deleteImmutabilityPolicyOperationSpec,
|
|
596
|
-
callback) as Promise<Models.BlobContainersDeleteImmutabilityPolicyResponse>;
|
|
392
|
+
{ resourceGroupName, accountName, containerName, ifMatch, options },
|
|
393
|
+
deleteImmutabilityPolicyOperationSpec
|
|
394
|
+
);
|
|
597
395
|
}
|
|
598
396
|
|
|
599
397
|
/**
|
|
600
398
|
* Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
|
|
601
399
|
* ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
|
|
602
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
603
|
-
*
|
|
604
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
608
|
-
*
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
* @param
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
* letters only.
|
|
624
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
625
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
626
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
627
|
-
* a letter or number.
|
|
628
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
629
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
630
|
-
* omitted, this operation will always be applied.
|
|
631
|
-
* @param callback The callback
|
|
632
|
-
*/
|
|
633
|
-
lockImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
634
|
-
/**
|
|
635
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
636
|
-
* is case insensitive.
|
|
637
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
638
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
639
|
-
* letters only.
|
|
640
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
641
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
642
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
643
|
-
* a letter or number.
|
|
644
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
645
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
646
|
-
* omitted, this operation will always be applied.
|
|
647
|
-
* @param options The optional parameters
|
|
648
|
-
* @param callback The callback
|
|
649
|
-
*/
|
|
650
|
-
lockImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
651
|
-
lockImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ImmutabilityPolicy>, callback?: msRest.ServiceCallback<Models.ImmutabilityPolicy>): Promise<Models.BlobContainersLockImmutabilityPolicyResponse> {
|
|
400
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
401
|
+
* case insensitive.
|
|
402
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
403
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
404
|
+
* only.
|
|
405
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
406
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
407
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
408
|
+
* number.
|
|
409
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
410
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
411
|
+
* operation will always be applied.
|
|
412
|
+
* @param options The options parameters.
|
|
413
|
+
*/
|
|
414
|
+
lockImmutabilityPolicy(
|
|
415
|
+
resourceGroupName: string,
|
|
416
|
+
accountName: string,
|
|
417
|
+
containerName: string,
|
|
418
|
+
ifMatch: string,
|
|
419
|
+
options?: BlobContainersLockImmutabilityPolicyOptionalParams
|
|
420
|
+
): Promise<BlobContainersLockImmutabilityPolicyResponse> {
|
|
652
421
|
return this.client.sendOperationRequest(
|
|
653
|
-
{
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
containerName,
|
|
657
|
-
ifMatch,
|
|
658
|
-
options
|
|
659
|
-
},
|
|
660
|
-
lockImmutabilityPolicyOperationSpec,
|
|
661
|
-
callback) as Promise<Models.BlobContainersLockImmutabilityPolicyResponse>;
|
|
422
|
+
{ resourceGroupName, accountName, containerName, ifMatch, options },
|
|
423
|
+
lockImmutabilityPolicyOperationSpec
|
|
424
|
+
);
|
|
662
425
|
}
|
|
663
426
|
|
|
664
427
|
/**
|
|
665
|
-
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only
|
|
666
|
-
*
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
689
|
-
* letters only.
|
|
690
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
691
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
692
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
693
|
-
* a letter or number.
|
|
694
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
695
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
696
|
-
* omitted, this operation will always be applied.
|
|
697
|
-
* @param callback The callback
|
|
698
|
-
*/
|
|
699
|
-
extendImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
700
|
-
/**
|
|
701
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
702
|
-
* is case insensitive.
|
|
703
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
704
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
705
|
-
* letters only.
|
|
706
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
707
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
708
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
709
|
-
* a letter or number.
|
|
710
|
-
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of
|
|
711
|
-
* "*" can be used to apply the operation only if the immutability policy already exists. If
|
|
712
|
-
* omitted, this operation will always be applied.
|
|
713
|
-
* @param options The optional parameters
|
|
714
|
-
* @param callback The callback
|
|
715
|
-
*/
|
|
716
|
-
extendImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options: Models.BlobContainersExtendImmutabilityPolicyOptionalParams, callback: msRest.ServiceCallback<Models.ImmutabilityPolicy>): void;
|
|
717
|
-
extendImmutabilityPolicy(resourceGroupName: string, accountName: string, containerName: string, ifMatch: string, options?: Models.BlobContainersExtendImmutabilityPolicyOptionalParams | msRest.ServiceCallback<Models.ImmutabilityPolicy>, callback?: msRest.ServiceCallback<Models.ImmutabilityPolicy>): Promise<Models.BlobContainersExtendImmutabilityPolicyResponse> {
|
|
428
|
+
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action
|
|
429
|
+
* allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
|
|
430
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
431
|
+
* case insensitive.
|
|
432
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
433
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
434
|
+
* only.
|
|
435
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
436
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
437
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
438
|
+
* number.
|
|
439
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
440
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
441
|
+
* operation will always be applied.
|
|
442
|
+
* @param options The options parameters.
|
|
443
|
+
*/
|
|
444
|
+
extendImmutabilityPolicy(
|
|
445
|
+
resourceGroupName: string,
|
|
446
|
+
accountName: string,
|
|
447
|
+
containerName: string,
|
|
448
|
+
ifMatch: string,
|
|
449
|
+
options?: BlobContainersExtendImmutabilityPolicyOptionalParams
|
|
450
|
+
): Promise<BlobContainersExtendImmutabilityPolicyResponse> {
|
|
718
451
|
return this.client.sendOperationRequest(
|
|
719
|
-
{
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
containerName,
|
|
723
|
-
ifMatch,
|
|
724
|
-
options
|
|
725
|
-
},
|
|
726
|
-
extendImmutabilityPolicyOperationSpec,
|
|
727
|
-
callback) as Promise<Models.BlobContainersExtendImmutabilityPolicyResponse>;
|
|
452
|
+
{ resourceGroupName, accountName, containerName, ifMatch, options },
|
|
453
|
+
extendImmutabilityPolicyOperationSpec
|
|
454
|
+
);
|
|
728
455
|
}
|
|
729
456
|
|
|
730
457
|
/**
|
|
731
|
-
* The Lease Container operation establishes and manages a lock on a container for delete
|
|
732
|
-
*
|
|
733
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
734
|
-
*
|
|
735
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
739
|
-
*
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
* @param
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
751
|
-
* letters only.
|
|
752
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
753
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
754
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
755
|
-
* a letter or number.
|
|
756
|
-
* @param callback The callback
|
|
757
|
-
*/
|
|
758
|
-
lease(resourceGroupName: string, accountName: string, containerName: string, callback: msRest.ServiceCallback<Models.LeaseContainerResponse>): void;
|
|
759
|
-
/**
|
|
760
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
761
|
-
* is case insensitive.
|
|
762
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
763
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
764
|
-
* letters only.
|
|
765
|
-
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
766
|
-
* container names must be between 3 and 63 characters in length and use numbers, lower-case
|
|
767
|
-
* letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
|
|
768
|
-
* a letter or number.
|
|
769
|
-
* @param options The optional parameters
|
|
770
|
-
* @param callback The callback
|
|
771
|
-
*/
|
|
772
|
-
lease(resourceGroupName: string, accountName: string, containerName: string, options: Models.BlobContainersLeaseOptionalParams, callback: msRest.ServiceCallback<Models.LeaseContainerResponse>): void;
|
|
773
|
-
lease(resourceGroupName: string, accountName: string, containerName: string, options?: Models.BlobContainersLeaseOptionalParams | msRest.ServiceCallback<Models.LeaseContainerResponse>, callback?: msRest.ServiceCallback<Models.LeaseContainerResponse>): Promise<Models.BlobContainersLeaseResponse> {
|
|
458
|
+
* The Lease Container operation establishes and manages a lock on a container for delete operations.
|
|
459
|
+
* The lock duration can be 15 to 60 seconds, or can be infinite.
|
|
460
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
461
|
+
* case insensitive.
|
|
462
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
463
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
464
|
+
* only.
|
|
465
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
466
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
467
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
468
|
+
* number.
|
|
469
|
+
* @param options The options parameters.
|
|
470
|
+
*/
|
|
471
|
+
lease(
|
|
472
|
+
resourceGroupName: string,
|
|
473
|
+
accountName: string,
|
|
474
|
+
containerName: string,
|
|
475
|
+
options?: BlobContainersLeaseOptionalParams
|
|
476
|
+
): Promise<BlobContainersLeaseResponse> {
|
|
774
477
|
return this.client.sendOperationRequest(
|
|
775
|
-
{
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
containerName,
|
|
779
|
-
options
|
|
780
|
-
},
|
|
781
|
-
leaseOperationSpec,
|
|
782
|
-
callback) as Promise<Models.BlobContainersLeaseResponse>;
|
|
478
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
479
|
+
leaseOperationSpec
|
|
480
|
+
);
|
|
783
481
|
}
|
|
784
482
|
|
|
785
483
|
/**
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* @
|
|
791
|
-
|
|
792
|
-
|
|
484
|
+
* This operation migrates a blob container from container level WORM to object level immutability
|
|
485
|
+
* enabled container. Prerequisites require a container level immutability policy either in locked or
|
|
486
|
+
* unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
|
|
487
|
+
* container.
|
|
488
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
489
|
+
* case insensitive.
|
|
490
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
491
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
492
|
+
* only.
|
|
493
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
494
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
495
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
496
|
+
* number.
|
|
497
|
+
* @param options The options parameters.
|
|
498
|
+
*/
|
|
499
|
+
async beginObjectLevelWorm(
|
|
500
|
+
resourceGroupName: string,
|
|
501
|
+
accountName: string,
|
|
502
|
+
containerName: string,
|
|
503
|
+
options?: BlobContainersObjectLevelWormOptionalParams
|
|
504
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
505
|
+
const directSendOperation = async (
|
|
506
|
+
args: coreClient.OperationArguments,
|
|
507
|
+
spec: coreClient.OperationSpec
|
|
508
|
+
): Promise<void> => {
|
|
509
|
+
return this.client.sendOperationRequest(args, spec);
|
|
510
|
+
};
|
|
511
|
+
const sendOperation = async (
|
|
512
|
+
args: coreClient.OperationArguments,
|
|
513
|
+
spec: coreClient.OperationSpec
|
|
514
|
+
) => {
|
|
515
|
+
let currentRawResponse:
|
|
516
|
+
| coreClient.FullOperationResponse
|
|
517
|
+
| undefined = undefined;
|
|
518
|
+
const providedCallback = args.options?.onResponse;
|
|
519
|
+
const callback: coreClient.RawResponseCallback = (
|
|
520
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
521
|
+
flatResponse: unknown
|
|
522
|
+
) => {
|
|
523
|
+
currentRawResponse = rawResponse;
|
|
524
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
525
|
+
};
|
|
526
|
+
const updatedArgs = {
|
|
527
|
+
...args,
|
|
528
|
+
options: {
|
|
529
|
+
...args.options,
|
|
530
|
+
onResponse: callback
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
534
|
+
return {
|
|
535
|
+
flatResponse,
|
|
536
|
+
rawResponse: {
|
|
537
|
+
statusCode: currentRawResponse!.status,
|
|
538
|
+
body: currentRawResponse!.parsedBody,
|
|
539
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
const lro = new CoreClientLro(
|
|
545
|
+
sendOperation,
|
|
546
|
+
{ resourceGroupName, accountName, containerName, options },
|
|
547
|
+
objectLevelWormOperationSpec,
|
|
548
|
+
"location"
|
|
549
|
+
);
|
|
550
|
+
return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
|
|
551
|
+
}
|
|
552
|
+
|
|
793
553
|
/**
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
|
|
797
|
-
|
|
554
|
+
* This operation migrates a blob container from container level WORM to object level immutability
|
|
555
|
+
* enabled container. Prerequisites require a container level immutability policy either in locked or
|
|
556
|
+
* unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
|
|
557
|
+
* container.
|
|
558
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
559
|
+
* case insensitive.
|
|
560
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
561
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
562
|
+
* only.
|
|
563
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
564
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
565
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
566
|
+
* number.
|
|
567
|
+
* @param options The options parameters.
|
|
568
|
+
*/
|
|
569
|
+
async beginObjectLevelWormAndWait(
|
|
570
|
+
resourceGroupName: string,
|
|
571
|
+
accountName: string,
|
|
572
|
+
containerName: string,
|
|
573
|
+
options?: BlobContainersObjectLevelWormOptionalParams
|
|
574
|
+
): Promise<void> {
|
|
575
|
+
const poller = await this.beginObjectLevelWorm(
|
|
576
|
+
resourceGroupName,
|
|
577
|
+
accountName,
|
|
578
|
+
containerName,
|
|
579
|
+
options
|
|
580
|
+
);
|
|
581
|
+
return poller.pollUntilDone();
|
|
582
|
+
}
|
|
583
|
+
|
|
798
584
|
/**
|
|
799
|
-
*
|
|
800
|
-
* @param
|
|
801
|
-
*
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
585
|
+
* ListNext
|
|
586
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
587
|
+
* case insensitive.
|
|
588
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
589
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
590
|
+
* only.
|
|
591
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
592
|
+
* @param options The options parameters.
|
|
593
|
+
*/
|
|
594
|
+
private _listNext(
|
|
595
|
+
resourceGroupName: string,
|
|
596
|
+
accountName: string,
|
|
597
|
+
nextLink: string,
|
|
598
|
+
options?: BlobContainersListNextOptionalParams
|
|
599
|
+
): Promise<BlobContainersListNextResponse> {
|
|
805
600
|
return this.client.sendOperationRequest(
|
|
806
|
-
{
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
},
|
|
810
|
-
listNextOperationSpec,
|
|
811
|
-
callback) as Promise<Models.BlobContainersListNextResponse>;
|
|
601
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
602
|
+
listNextOperationSpec
|
|
603
|
+
);
|
|
812
604
|
}
|
|
813
605
|
}
|
|
814
|
-
|
|
815
606
|
// Operation Specifications
|
|
816
|
-
const serializer =
|
|
817
|
-
|
|
607
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
608
|
+
|
|
609
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
610
|
+
path:
|
|
611
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers",
|
|
818
612
|
httpMethod: "GET",
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
],
|
|
613
|
+
responses: {
|
|
614
|
+
200: {
|
|
615
|
+
bodyMapper: Mappers.ListContainerItems
|
|
616
|
+
}
|
|
617
|
+
},
|
|
825
618
|
queryParameters: [
|
|
826
619
|
Parameters.apiVersion,
|
|
827
620
|
Parameters.maxpagesize,
|
|
828
621
|
Parameters.filter,
|
|
829
622
|
Parameters.include
|
|
830
623
|
],
|
|
831
|
-
|
|
832
|
-
Parameters
|
|
624
|
+
urlParameters: [
|
|
625
|
+
Parameters.$host,
|
|
626
|
+
Parameters.subscriptionId,
|
|
627
|
+
Parameters.resourceGroupName,
|
|
628
|
+
Parameters.accountName1
|
|
833
629
|
],
|
|
834
|
-
|
|
835
|
-
200: {
|
|
836
|
-
bodyMapper: Mappers.ListContainerItems
|
|
837
|
-
},
|
|
838
|
-
default: {
|
|
839
|
-
bodyMapper: Mappers.CloudError
|
|
840
|
-
}
|
|
841
|
-
},
|
|
630
|
+
headerParameters: [Parameters.accept],
|
|
842
631
|
serializer
|
|
843
632
|
};
|
|
844
|
-
|
|
845
|
-
|
|
633
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
634
|
+
path:
|
|
635
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
846
636
|
httpMethod: "PUT",
|
|
847
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
848
|
-
urlParameters: [
|
|
849
|
-
Parameters.resourceGroupName,
|
|
850
|
-
Parameters.accountName,
|
|
851
|
-
Parameters.containerName,
|
|
852
|
-
Parameters.subscriptionId
|
|
853
|
-
],
|
|
854
|
-
queryParameters: [
|
|
855
|
-
Parameters.apiVersion
|
|
856
|
-
],
|
|
857
|
-
headerParameters: [
|
|
858
|
-
Parameters.acceptLanguage
|
|
859
|
-
],
|
|
860
|
-
requestBody: {
|
|
861
|
-
parameterPath: "blobContainer",
|
|
862
|
-
mapper: {
|
|
863
|
-
...Mappers.BlobContainer,
|
|
864
|
-
required: true
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
637
|
responses: {
|
|
868
638
|
200: {
|
|
869
639
|
bodyMapper: Mappers.BlobContainer
|
|
870
640
|
},
|
|
871
641
|
201: {
|
|
872
642
|
bodyMapper: Mappers.BlobContainer
|
|
873
|
-
},
|
|
874
|
-
default: {
|
|
875
|
-
bodyMapper: Mappers.CloudError
|
|
876
643
|
}
|
|
877
644
|
},
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
882
|
-
httpMethod: "PATCH",
|
|
883
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
645
|
+
requestBody: Parameters.blobContainer,
|
|
646
|
+
queryParameters: [Parameters.apiVersion],
|
|
884
647
|
urlParameters: [
|
|
648
|
+
Parameters.$host,
|
|
649
|
+
Parameters.subscriptionId,
|
|
885
650
|
Parameters.resourceGroupName,
|
|
886
|
-
Parameters.
|
|
887
|
-
Parameters.containerName
|
|
888
|
-
Parameters.subscriptionId
|
|
651
|
+
Parameters.accountName1,
|
|
652
|
+
Parameters.containerName
|
|
889
653
|
],
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
mapper: {
|
|
899
|
-
...Mappers.BlobContainer,
|
|
900
|
-
required: true
|
|
901
|
-
}
|
|
902
|
-
},
|
|
654
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
655
|
+
mediaType: "json",
|
|
656
|
+
serializer
|
|
657
|
+
};
|
|
658
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
659
|
+
path:
|
|
660
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
661
|
+
httpMethod: "PATCH",
|
|
903
662
|
responses: {
|
|
904
663
|
200: {
|
|
905
664
|
bodyMapper: Mappers.BlobContainer
|
|
906
|
-
},
|
|
907
|
-
default: {
|
|
908
|
-
bodyMapper: Mappers.CloudError
|
|
909
665
|
}
|
|
910
666
|
},
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
915
|
-
httpMethod: "GET",
|
|
916
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
667
|
+
requestBody: Parameters.blobContainer,
|
|
668
|
+
queryParameters: [Parameters.apiVersion],
|
|
917
669
|
urlParameters: [
|
|
670
|
+
Parameters.$host,
|
|
671
|
+
Parameters.subscriptionId,
|
|
918
672
|
Parameters.resourceGroupName,
|
|
919
|
-
Parameters.
|
|
920
|
-
Parameters.containerName
|
|
921
|
-
Parameters.subscriptionId
|
|
922
|
-
],
|
|
923
|
-
queryParameters: [
|
|
924
|
-
Parameters.apiVersion
|
|
925
|
-
],
|
|
926
|
-
headerParameters: [
|
|
927
|
-
Parameters.acceptLanguage
|
|
673
|
+
Parameters.accountName1,
|
|
674
|
+
Parameters.containerName
|
|
928
675
|
],
|
|
676
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
677
|
+
mediaType: "json",
|
|
678
|
+
serializer
|
|
679
|
+
};
|
|
680
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
681
|
+
path:
|
|
682
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
683
|
+
httpMethod: "GET",
|
|
929
684
|
responses: {
|
|
930
685
|
200: {
|
|
931
686
|
bodyMapper: Mappers.BlobContainer
|
|
932
|
-
},
|
|
933
|
-
default: {
|
|
934
|
-
bodyMapper: Mappers.CloudError
|
|
935
687
|
}
|
|
936
688
|
},
|
|
689
|
+
queryParameters: [Parameters.apiVersion],
|
|
690
|
+
urlParameters: [
|
|
691
|
+
Parameters.$host,
|
|
692
|
+
Parameters.subscriptionId,
|
|
693
|
+
Parameters.resourceGroupName,
|
|
694
|
+
Parameters.accountName1,
|
|
695
|
+
Parameters.containerName
|
|
696
|
+
],
|
|
697
|
+
headerParameters: [Parameters.accept],
|
|
937
698
|
serializer
|
|
938
699
|
};
|
|
939
|
-
|
|
940
|
-
|
|
700
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
701
|
+
path:
|
|
702
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
941
703
|
httpMethod: "DELETE",
|
|
942
|
-
|
|
704
|
+
responses: { 200: {}, 204: {} },
|
|
705
|
+
queryParameters: [Parameters.apiVersion],
|
|
943
706
|
urlParameters: [
|
|
707
|
+
Parameters.$host,
|
|
708
|
+
Parameters.subscriptionId,
|
|
944
709
|
Parameters.resourceGroupName,
|
|
945
|
-
Parameters.
|
|
946
|
-
Parameters.containerName
|
|
947
|
-
Parameters.subscriptionId
|
|
948
|
-
],
|
|
949
|
-
queryParameters: [
|
|
950
|
-
Parameters.apiVersion
|
|
951
|
-
],
|
|
952
|
-
headerParameters: [
|
|
953
|
-
Parameters.acceptLanguage
|
|
710
|
+
Parameters.accountName1,
|
|
711
|
+
Parameters.containerName
|
|
954
712
|
],
|
|
955
|
-
responses: {
|
|
956
|
-
200: {},
|
|
957
|
-
204: {},
|
|
958
|
-
default: {
|
|
959
|
-
bodyMapper: Mappers.CloudError
|
|
960
|
-
}
|
|
961
|
-
},
|
|
962
713
|
serializer
|
|
963
714
|
};
|
|
964
|
-
|
|
965
|
-
|
|
715
|
+
const setLegalHoldOperationSpec: coreClient.OperationSpec = {
|
|
716
|
+
path:
|
|
717
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
|
|
966
718
|
httpMethod: "POST",
|
|
967
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
|
|
968
|
-
urlParameters: [
|
|
969
|
-
Parameters.resourceGroupName,
|
|
970
|
-
Parameters.accountName,
|
|
971
|
-
Parameters.containerName,
|
|
972
|
-
Parameters.subscriptionId
|
|
973
|
-
],
|
|
974
|
-
queryParameters: [
|
|
975
|
-
Parameters.apiVersion
|
|
976
|
-
],
|
|
977
|
-
headerParameters: [
|
|
978
|
-
Parameters.acceptLanguage
|
|
979
|
-
],
|
|
980
|
-
requestBody: {
|
|
981
|
-
parameterPath: {
|
|
982
|
-
tags: "tags"
|
|
983
|
-
},
|
|
984
|
-
mapper: {
|
|
985
|
-
...Mappers.LegalHold,
|
|
986
|
-
required: true
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
719
|
responses: {
|
|
990
720
|
200: {
|
|
991
721
|
bodyMapper: Mappers.LegalHold
|
|
992
|
-
},
|
|
993
|
-
default: {
|
|
994
|
-
bodyMapper: Mappers.CloudError
|
|
995
722
|
}
|
|
996
723
|
},
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
const clearLegalHoldOperationSpec: msRest.OperationSpec = {
|
|
1001
|
-
httpMethod: "POST",
|
|
1002
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
|
|
724
|
+
requestBody: Parameters.legalHold,
|
|
725
|
+
queryParameters: [Parameters.apiVersion],
|
|
1003
726
|
urlParameters: [
|
|
727
|
+
Parameters.$host,
|
|
728
|
+
Parameters.subscriptionId,
|
|
1004
729
|
Parameters.resourceGroupName,
|
|
1005
|
-
Parameters.
|
|
1006
|
-
Parameters.containerName
|
|
1007
|
-
Parameters.subscriptionId
|
|
730
|
+
Parameters.accountName1,
|
|
731
|
+
Parameters.containerName
|
|
1008
732
|
],
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
tags: "tags"
|
|
1018
|
-
},
|
|
1019
|
-
mapper: {
|
|
1020
|
-
...Mappers.LegalHold,
|
|
1021
|
-
required: true
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
733
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
734
|
+
mediaType: "json",
|
|
735
|
+
serializer
|
|
736
|
+
};
|
|
737
|
+
const clearLegalHoldOperationSpec: coreClient.OperationSpec = {
|
|
738
|
+
path:
|
|
739
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
|
|
740
|
+
httpMethod: "POST",
|
|
1024
741
|
responses: {
|
|
1025
742
|
200: {
|
|
1026
743
|
bodyMapper: Mappers.LegalHold
|
|
1027
|
-
},
|
|
1028
|
-
default: {
|
|
1029
|
-
bodyMapper: Mappers.CloudError
|
|
1030
744
|
}
|
|
1031
745
|
},
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
const createOrUpdateImmutabilityPolicyOperationSpec: msRest.OperationSpec = {
|
|
1036
|
-
httpMethod: "PUT",
|
|
1037
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
746
|
+
requestBody: Parameters.legalHold,
|
|
747
|
+
queryParameters: [Parameters.apiVersion],
|
|
1038
748
|
urlParameters: [
|
|
749
|
+
Parameters.$host,
|
|
750
|
+
Parameters.subscriptionId,
|
|
1039
751
|
Parameters.resourceGroupName,
|
|
1040
|
-
Parameters.
|
|
1041
|
-
Parameters.containerName
|
|
1042
|
-
Parameters.immutabilityPolicyName,
|
|
1043
|
-
Parameters.subscriptionId
|
|
1044
|
-
],
|
|
1045
|
-
queryParameters: [
|
|
1046
|
-
Parameters.apiVersion
|
|
1047
|
-
],
|
|
1048
|
-
headerParameters: [
|
|
1049
|
-
Parameters.ifMatch0,
|
|
1050
|
-
Parameters.acceptLanguage
|
|
752
|
+
Parameters.accountName1,
|
|
753
|
+
Parameters.containerName
|
|
1051
754
|
],
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
"allowProtectedAppendWrites"
|
|
1061
|
-
]
|
|
1062
|
-
},
|
|
1063
|
-
mapper: Mappers.ImmutabilityPolicy
|
|
1064
|
-
},
|
|
755
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
756
|
+
mediaType: "json",
|
|
757
|
+
serializer
|
|
758
|
+
};
|
|
759
|
+
const createOrUpdateImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {
|
|
760
|
+
path:
|
|
761
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
762
|
+
httpMethod: "PUT",
|
|
1065
763
|
responses: {
|
|
1066
764
|
200: {
|
|
1067
765
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
1068
|
-
headersMapper:
|
|
1069
|
-
|
|
1070
|
-
default: {
|
|
1071
|
-
bodyMapper: Mappers.CloudError,
|
|
1072
|
-
headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
|
|
766
|
+
headersMapper:
|
|
767
|
+
Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
|
|
1073
768
|
}
|
|
1074
769
|
},
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
const getImmutabilityPolicyOperationSpec: msRest.OperationSpec = {
|
|
1079
|
-
httpMethod: "GET",
|
|
1080
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
770
|
+
requestBody: Parameters.parameters6,
|
|
771
|
+
queryParameters: [Parameters.apiVersion],
|
|
1081
772
|
urlParameters: [
|
|
773
|
+
Parameters.$host,
|
|
774
|
+
Parameters.subscriptionId,
|
|
1082
775
|
Parameters.resourceGroupName,
|
|
1083
|
-
Parameters.
|
|
776
|
+
Parameters.accountName1,
|
|
1084
777
|
Parameters.containerName,
|
|
1085
|
-
Parameters.immutabilityPolicyName
|
|
1086
|
-
Parameters.subscriptionId
|
|
1087
|
-
],
|
|
1088
|
-
queryParameters: [
|
|
1089
|
-
Parameters.apiVersion
|
|
778
|
+
Parameters.immutabilityPolicyName
|
|
1090
779
|
],
|
|
1091
780
|
headerParameters: [
|
|
1092
|
-
Parameters.
|
|
1093
|
-
Parameters.
|
|
781
|
+
Parameters.accept,
|
|
782
|
+
Parameters.contentType,
|
|
783
|
+
Parameters.ifMatch
|
|
1094
784
|
],
|
|
785
|
+
mediaType: "json",
|
|
786
|
+
serializer
|
|
787
|
+
};
|
|
788
|
+
const getImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {
|
|
789
|
+
path:
|
|
790
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
791
|
+
httpMethod: "GET",
|
|
1095
792
|
responses: {
|
|
1096
793
|
200: {
|
|
1097
794
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
1098
795
|
headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
|
|
1099
|
-
},
|
|
1100
|
-
default: {
|
|
1101
|
-
bodyMapper: Mappers.CloudError,
|
|
1102
|
-
headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
|
|
1103
796
|
}
|
|
1104
797
|
},
|
|
1105
|
-
|
|
1106
|
-
};
|
|
1107
|
-
|
|
1108
|
-
const deleteImmutabilityPolicyOperationSpec: msRest.OperationSpec = {
|
|
1109
|
-
httpMethod: "DELETE",
|
|
1110
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
798
|
+
queryParameters: [Parameters.apiVersion],
|
|
1111
799
|
urlParameters: [
|
|
800
|
+
Parameters.$host,
|
|
801
|
+
Parameters.subscriptionId,
|
|
1112
802
|
Parameters.resourceGroupName,
|
|
1113
|
-
Parameters.
|
|
803
|
+
Parameters.accountName1,
|
|
1114
804
|
Parameters.containerName,
|
|
1115
|
-
Parameters.immutabilityPolicyName
|
|
1116
|
-
Parameters.subscriptionId
|
|
1117
|
-
],
|
|
1118
|
-
queryParameters: [
|
|
1119
|
-
Parameters.apiVersion
|
|
1120
|
-
],
|
|
1121
|
-
headerParameters: [
|
|
1122
|
-
Parameters.ifMatch1,
|
|
1123
|
-
Parameters.acceptLanguage
|
|
805
|
+
Parameters.immutabilityPolicyName
|
|
1124
806
|
],
|
|
807
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
808
|
+
serializer
|
|
809
|
+
};
|
|
810
|
+
const deleteImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {
|
|
811
|
+
path:
|
|
812
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
813
|
+
httpMethod: "DELETE",
|
|
1125
814
|
responses: {
|
|
1126
815
|
200: {
|
|
1127
816
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
1128
817
|
headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
|
|
1129
|
-
},
|
|
1130
|
-
default: {
|
|
1131
|
-
bodyMapper: Mappers.CloudError,
|
|
1132
|
-
headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
|
|
1133
818
|
}
|
|
1134
819
|
},
|
|
1135
|
-
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
const lockImmutabilityPolicyOperationSpec: msRest.OperationSpec = {
|
|
1139
|
-
httpMethod: "POST",
|
|
1140
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
|
|
820
|
+
queryParameters: [Parameters.apiVersion],
|
|
1141
821
|
urlParameters: [
|
|
822
|
+
Parameters.$host,
|
|
823
|
+
Parameters.subscriptionId,
|
|
1142
824
|
Parameters.resourceGroupName,
|
|
1143
|
-
Parameters.
|
|
825
|
+
Parameters.accountName1,
|
|
1144
826
|
Parameters.containerName,
|
|
1145
|
-
Parameters.
|
|
1146
|
-
],
|
|
1147
|
-
queryParameters: [
|
|
1148
|
-
Parameters.apiVersion
|
|
1149
|
-
],
|
|
1150
|
-
headerParameters: [
|
|
1151
|
-
Parameters.ifMatch1,
|
|
1152
|
-
Parameters.acceptLanguage
|
|
827
|
+
Parameters.immutabilityPolicyName
|
|
1153
828
|
],
|
|
829
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch1],
|
|
830
|
+
serializer
|
|
831
|
+
};
|
|
832
|
+
const lockImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {
|
|
833
|
+
path:
|
|
834
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
|
|
835
|
+
httpMethod: "POST",
|
|
1154
836
|
responses: {
|
|
1155
837
|
200: {
|
|
1156
838
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
1157
839
|
headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
|
|
1158
|
-
},
|
|
1159
|
-
default: {
|
|
1160
|
-
bodyMapper: Mappers.CloudError,
|
|
1161
|
-
headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
|
|
1162
840
|
}
|
|
1163
841
|
},
|
|
1164
|
-
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
const extendImmutabilityPolicyOperationSpec: msRest.OperationSpec = {
|
|
1168
|
-
httpMethod: "POST",
|
|
1169
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
|
|
842
|
+
queryParameters: [Parameters.apiVersion],
|
|
1170
843
|
urlParameters: [
|
|
844
|
+
Parameters.$host,
|
|
845
|
+
Parameters.subscriptionId,
|
|
1171
846
|
Parameters.resourceGroupName,
|
|
1172
|
-
Parameters.
|
|
1173
|
-
Parameters.containerName
|
|
1174
|
-
Parameters.subscriptionId
|
|
1175
|
-
],
|
|
1176
|
-
queryParameters: [
|
|
1177
|
-
Parameters.apiVersion
|
|
1178
|
-
],
|
|
1179
|
-
headerParameters: [
|
|
1180
|
-
Parameters.ifMatch1,
|
|
1181
|
-
Parameters.acceptLanguage
|
|
847
|
+
Parameters.accountName1,
|
|
848
|
+
Parameters.containerName
|
|
1182
849
|
],
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
"options",
|
|
1191
|
-
"allowProtectedAppendWrites"
|
|
1192
|
-
]
|
|
1193
|
-
},
|
|
1194
|
-
mapper: Mappers.ImmutabilityPolicy
|
|
1195
|
-
},
|
|
850
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch1],
|
|
851
|
+
serializer
|
|
852
|
+
};
|
|
853
|
+
const extendImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {
|
|
854
|
+
path:
|
|
855
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
|
|
856
|
+
httpMethod: "POST",
|
|
1196
857
|
responses: {
|
|
1197
858
|
200: {
|
|
1198
859
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
1199
860
|
headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
|
|
1200
|
-
},
|
|
1201
|
-
default: {
|
|
1202
|
-
bodyMapper: Mappers.CloudError,
|
|
1203
|
-
headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
|
|
1204
861
|
}
|
|
1205
862
|
},
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
const leaseOperationSpec: msRest.OperationSpec = {
|
|
1210
|
-
httpMethod: "POST",
|
|
1211
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
|
|
863
|
+
requestBody: Parameters.parameters6,
|
|
864
|
+
queryParameters: [Parameters.apiVersion],
|
|
1212
865
|
urlParameters: [
|
|
866
|
+
Parameters.$host,
|
|
867
|
+
Parameters.subscriptionId,
|
|
1213
868
|
Parameters.resourceGroupName,
|
|
1214
|
-
Parameters.
|
|
1215
|
-
Parameters.containerName
|
|
1216
|
-
Parameters.subscriptionId
|
|
1217
|
-
],
|
|
1218
|
-
queryParameters: [
|
|
1219
|
-
Parameters.apiVersion
|
|
869
|
+
Parameters.accountName1,
|
|
870
|
+
Parameters.containerName
|
|
1220
871
|
],
|
|
1221
872
|
headerParameters: [
|
|
1222
|
-
Parameters.
|
|
873
|
+
Parameters.accept,
|
|
874
|
+
Parameters.contentType,
|
|
875
|
+
Parameters.ifMatch1
|
|
1223
876
|
],
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
877
|
+
mediaType: "json",
|
|
878
|
+
serializer
|
|
879
|
+
};
|
|
880
|
+
const leaseOperationSpec: coreClient.OperationSpec = {
|
|
881
|
+
path:
|
|
882
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
|
|
883
|
+
httpMethod: "POST",
|
|
1231
884
|
responses: {
|
|
1232
885
|
200: {
|
|
1233
886
|
bodyMapper: Mappers.LeaseContainerResponse
|
|
1234
|
-
}
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
requestBody: Parameters.parameters7,
|
|
890
|
+
queryParameters: [Parameters.apiVersion],
|
|
891
|
+
urlParameters: [
|
|
892
|
+
Parameters.$host,
|
|
893
|
+
Parameters.subscriptionId,
|
|
894
|
+
Parameters.resourceGroupName,
|
|
895
|
+
Parameters.accountName1,
|
|
896
|
+
Parameters.containerName
|
|
897
|
+
],
|
|
898
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
899
|
+
mediaType: "json",
|
|
900
|
+
serializer
|
|
901
|
+
};
|
|
902
|
+
const objectLevelWormOperationSpec: coreClient.OperationSpec = {
|
|
903
|
+
path:
|
|
904
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate",
|
|
905
|
+
httpMethod: "POST",
|
|
906
|
+
responses: {
|
|
907
|
+
200: {},
|
|
908
|
+
201: {},
|
|
909
|
+
202: {},
|
|
910
|
+
204: {},
|
|
1235
911
|
default: {
|
|
1236
912
|
bodyMapper: Mappers.CloudError
|
|
1237
913
|
}
|
|
1238
914
|
},
|
|
915
|
+
queryParameters: [Parameters.apiVersion],
|
|
916
|
+
urlParameters: [
|
|
917
|
+
Parameters.$host,
|
|
918
|
+
Parameters.subscriptionId,
|
|
919
|
+
Parameters.resourceGroupName,
|
|
920
|
+
Parameters.accountName1,
|
|
921
|
+
Parameters.containerName
|
|
922
|
+
],
|
|
923
|
+
headerParameters: [Parameters.accept],
|
|
1239
924
|
serializer
|
|
1240
925
|
};
|
|
1241
|
-
|
|
1242
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
1243
|
-
httpMethod: "GET",
|
|
1244
|
-
baseUrl: "https://management.azure.com",
|
|
926
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1245
927
|
path: "{nextLink}",
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
928
|
+
httpMethod: "GET",
|
|
929
|
+
responses: {
|
|
930
|
+
200: {
|
|
931
|
+
bodyMapper: Mappers.ListContainerItems
|
|
932
|
+
}
|
|
933
|
+
},
|
|
1249
934
|
queryParameters: [
|
|
1250
935
|
Parameters.apiVersion,
|
|
1251
936
|
Parameters.maxpagesize,
|
|
1252
937
|
Parameters.filter,
|
|
1253
938
|
Parameters.include
|
|
1254
939
|
],
|
|
1255
|
-
|
|
1256
|
-
Parameters
|
|
940
|
+
urlParameters: [
|
|
941
|
+
Parameters.$host,
|
|
942
|
+
Parameters.subscriptionId,
|
|
943
|
+
Parameters.resourceGroupName,
|
|
944
|
+
Parameters.accountName1,
|
|
945
|
+
Parameters.nextLink
|
|
1257
946
|
],
|
|
1258
|
-
|
|
1259
|
-
200: {
|
|
1260
|
-
bodyMapper: Mappers.ListContainerItems
|
|
1261
|
-
},
|
|
1262
|
-
default: {
|
|
1263
|
-
bodyMapper: Mappers.CloudError
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
947
|
+
headerParameters: [Parameters.accept],
|
|
1266
948
|
serializer
|
|
1267
949
|
};
|