@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,567 +3,716 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { LroEngine } from "../lro";
|
|
14
|
+
import { CoreClientLro } from "../coreClientLro";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
16
|
/** Class representing a BlobContainers. */
|
|
14
|
-
|
|
17
|
+
export class BlobContainersImpl {
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param
|
|
19
|
+
* Initialize a new instance of the class BlobContainers class.
|
|
20
|
+
* @param client Reference to the service client
|
|
18
21
|
*/
|
|
19
|
-
|
|
22
|
+
constructor(client) {
|
|
20
23
|
this.client = client;
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
|
|
27
|
+
* continuation token.
|
|
28
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
29
|
+
* case insensitive.
|
|
30
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
31
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
32
|
+
* only.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
list(resourceGroupName, accountName, options) {
|
|
36
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
37
|
+
return {
|
|
38
|
+
next() {
|
|
39
|
+
return iter.next();
|
|
40
|
+
},
|
|
41
|
+
[Symbol.asyncIterator]() {
|
|
42
|
+
return this;
|
|
43
|
+
},
|
|
44
|
+
byPage: () => {
|
|
45
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
listPagingPage(resourceGroupName, accountName, options) {
|
|
50
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
51
|
+
let result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
let continuationToken = result.nextLink;
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
yield yield __await(result.value || []);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
62
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
63
|
+
var e_1, _a;
|
|
64
|
+
try {
|
|
65
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
66
|
+
const page = _c.value;
|
|
67
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
+
finally {
|
|
72
|
+
try {
|
|
73
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
74
|
+
}
|
|
75
|
+
finally { if (e_1) throw e_1.error; }
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
|
|
81
|
+
* continuation token.
|
|
82
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
83
|
+
* case insensitive.
|
|
84
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
85
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
86
|
+
* only.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
_list(resourceGroupName, accountName, options) {
|
|
90
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates a new container under the specified account as described by request body. The container
|
|
94
|
+
* resource includes metadata and properties for that container. It does not include a list of the
|
|
95
|
+
* blobs contained by the container.
|
|
96
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
97
|
+
* case insensitive.
|
|
98
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
99
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
100
|
+
* only.
|
|
101
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
102
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
103
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
104
|
+
* number.
|
|
105
|
+
* @param blobContainer Properties of the blob container to create.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
create(resourceGroupName, accountName, containerName, blobContainer, options) {
|
|
109
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, createOperationSpec);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Updates container properties as specified in request body. Properties not mentioned in the request
|
|
113
|
+
* will be unchanged. Update fails if the specified container doesn't already exist.
|
|
114
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
115
|
+
* case insensitive.
|
|
116
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
117
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
118
|
+
* only.
|
|
119
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
120
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
121
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
122
|
+
* number.
|
|
123
|
+
* @param blobContainer Properties to update for the blob container.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
update(resourceGroupName, accountName, containerName, blobContainer, options) {
|
|
127
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, updateOperationSpec);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Gets properties of a specified container.
|
|
131
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
132
|
+
* case insensitive.
|
|
133
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
134
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
135
|
+
* only.
|
|
136
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
137
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
138
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
139
|
+
* number.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
get(resourceGroupName, accountName, containerName, options) {
|
|
143
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getOperationSpec);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Deletes specified container under its account.
|
|
147
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
148
|
+
* case insensitive.
|
|
149
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
150
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
151
|
+
* only.
|
|
152
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
153
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
154
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
155
|
+
* number.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
delete(resourceGroupName, accountName, containerName, options) {
|
|
159
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, deleteOperationSpec);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows
|
|
163
|
+
* an append pattern and does not clear out the existing tags that are not specified in the request.
|
|
164
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
165
|
+
* case insensitive.
|
|
166
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
167
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
168
|
+
* only.
|
|
169
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
170
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
171
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
172
|
+
* number.
|
|
173
|
+
* @param legalHold The LegalHold property that will be set to a blob container.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
setLegalHold(resourceGroupName, accountName, containerName, legalHold, options) {
|
|
177
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, setLegalHoldOperationSpec);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.
|
|
181
|
+
* ClearLegalHold clears out only the specified tags in the request.
|
|
182
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
183
|
+
* case insensitive.
|
|
184
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
185
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
186
|
+
* only.
|
|
187
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
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.
|
|
191
|
+
* @param legalHold The LegalHold property that will be clear from a blob container.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
clearLegalHold(resourceGroupName, accountName, containerName, legalHold, options) {
|
|
195
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, clearLegalHoldOperationSpec);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not
|
|
199
|
+
* required for this operation.
|
|
200
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
201
|
+
* case insensitive.
|
|
202
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
203
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
204
|
+
* only.
|
|
205
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
206
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
207
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
208
|
+
* number.
|
|
209
|
+
* @param options The options parameters.
|
|
210
|
+
*/
|
|
211
|
+
createOrUpdateImmutabilityPolicy(resourceGroupName, accountName, containerName, options) {
|
|
212
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, createOrUpdateImmutabilityPolicyOperationSpec);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Gets the existing immutability policy along with the corresponding ETag in response headers and
|
|
216
|
+
* body.
|
|
217
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
218
|
+
* case insensitive.
|
|
219
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
220
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
221
|
+
* only.
|
|
222
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
223
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
224
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
225
|
+
* number.
|
|
226
|
+
* @param options The options parameters.
|
|
227
|
+
*/
|
|
228
|
+
getImmutabilityPolicy(resourceGroupName, accountName, containerName, options) {
|
|
229
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getImmutabilityPolicyOperationSpec);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Aborts an unlocked immutability policy. The response of delete has
|
|
233
|
+
* immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.
|
|
234
|
+
* Deleting a locked immutability policy is not allowed, the only way is to delete the container after
|
|
235
|
+
* deleting all expired blobs inside the policy locked container.
|
|
236
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
237
|
+
* case insensitive.
|
|
238
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
239
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
240
|
+
* only.
|
|
241
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
242
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
243
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
244
|
+
* number.
|
|
245
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
246
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
247
|
+
* operation will always be applied.
|
|
248
|
+
* @param options The options parameters.
|
|
249
|
+
*/
|
|
250
|
+
deleteImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
|
|
251
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, deleteImmutabilityPolicyOperationSpec);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
|
|
255
|
+
* ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
|
|
256
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
257
|
+
* case insensitive.
|
|
258
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
259
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
260
|
+
* only.
|
|
261
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
262
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
263
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
264
|
+
* number.
|
|
265
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
266
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
267
|
+
* operation will always be applied.
|
|
268
|
+
* @param options The options parameters.
|
|
269
|
+
*/
|
|
270
|
+
lockImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
|
|
271
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, lockImmutabilityPolicyOperationSpec);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action
|
|
275
|
+
* allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
|
|
276
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
277
|
+
* case insensitive.
|
|
278
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
279
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
280
|
+
* only.
|
|
281
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
282
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
283
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
284
|
+
* number.
|
|
285
|
+
* @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
|
|
286
|
+
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
|
|
287
|
+
* operation will always be applied.
|
|
288
|
+
* @param options The options parameters.
|
|
289
|
+
*/
|
|
290
|
+
extendImmutabilityPolicy(resourceGroupName, accountName, containerName, ifMatch, options) {
|
|
291
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, extendImmutabilityPolicyOperationSpec);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The Lease Container operation establishes and manages a lock on a container for delete operations.
|
|
295
|
+
* The lock duration can be 15 to 60 seconds, or can be infinite.
|
|
296
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
297
|
+
* case insensitive.
|
|
298
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
299
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
300
|
+
* only.
|
|
301
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
302
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
303
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
304
|
+
* number.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
lease(resourceGroupName, accountName, containerName, options) {
|
|
308
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, leaseOperationSpec);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* This operation migrates a blob container from container level WORM to object level immutability
|
|
312
|
+
* enabled container. Prerequisites require a container level immutability policy either in locked or
|
|
313
|
+
* unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
|
|
314
|
+
* container.
|
|
315
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
316
|
+
* case insensitive.
|
|
317
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
318
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
319
|
+
* only.
|
|
320
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
321
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
322
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
323
|
+
* number.
|
|
324
|
+
* @param options The options parameters.
|
|
325
|
+
*/
|
|
326
|
+
beginObjectLevelWorm(resourceGroupName, accountName, containerName, options) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
return this.client.sendOperationRequest(args, spec);
|
|
330
|
+
});
|
|
331
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
var _a;
|
|
333
|
+
let currentRawResponse = undefined;
|
|
334
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
335
|
+
const callback = (rawResponse, flatResponse) => {
|
|
336
|
+
currentRawResponse = rawResponse;
|
|
337
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
338
|
+
};
|
|
339
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
340
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
341
|
+
return {
|
|
342
|
+
flatResponse,
|
|
343
|
+
rawResponse: {
|
|
344
|
+
statusCode: currentRawResponse.status,
|
|
345
|
+
body: currentRawResponse.parsedBody,
|
|
346
|
+
headers: currentRawResponse.headers.toJSON()
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
const lro = new CoreClientLro(sendOperation, { resourceGroupName, accountName, containerName, options }, objectLevelWormOperationSpec, "location");
|
|
351
|
+
return new LroEngine(lro, { intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs });
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* This operation migrates a blob container from container level WORM to object level immutability
|
|
356
|
+
* enabled container. Prerequisites require a container level immutability policy either in locked or
|
|
357
|
+
* unlocked state, Account level versioning must be enabled and there should be no Legal hold on the
|
|
358
|
+
* container.
|
|
359
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
360
|
+
* case insensitive.
|
|
361
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
362
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
363
|
+
* only.
|
|
364
|
+
* @param containerName The name of the blob container within the specified storage account. Blob
|
|
365
|
+
* container names must be between 3 and 63 characters in length and use numbers, lower-case letters
|
|
366
|
+
* and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
367
|
+
* number.
|
|
368
|
+
* @param options The options parameters.
|
|
369
|
+
*/
|
|
370
|
+
beginObjectLevelWormAndWait(resourceGroupName, accountName, containerName, options) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
const poller = yield this.beginObjectLevelWorm(resourceGroupName, accountName, containerName, options);
|
|
373
|
+
return poller.pollUntilDone();
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* ListNext
|
|
378
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
379
|
+
* case insensitive.
|
|
380
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
381
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
382
|
+
* only.
|
|
383
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
384
|
+
* @param options The options parameters.
|
|
385
|
+
*/
|
|
386
|
+
_listNext(resourceGroupName, accountName, nextLink, options) {
|
|
387
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
141
390
|
// Operation Specifications
|
|
142
|
-
|
|
143
|
-
|
|
391
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
392
|
+
const listOperationSpec = {
|
|
393
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers",
|
|
144
394
|
httpMethod: "GET",
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
],
|
|
395
|
+
responses: {
|
|
396
|
+
200: {
|
|
397
|
+
bodyMapper: Mappers.ListContainerItems
|
|
398
|
+
}
|
|
399
|
+
},
|
|
151
400
|
queryParameters: [
|
|
152
401
|
Parameters.apiVersion,
|
|
153
402
|
Parameters.maxpagesize,
|
|
154
403
|
Parameters.filter,
|
|
155
404
|
Parameters.include
|
|
156
405
|
],
|
|
157
|
-
headerParameters: [
|
|
158
|
-
Parameters.acceptLanguage
|
|
159
|
-
],
|
|
160
|
-
responses: {
|
|
161
|
-
200: {
|
|
162
|
-
bodyMapper: Mappers.ListContainerItems
|
|
163
|
-
},
|
|
164
|
-
default: {
|
|
165
|
-
bodyMapper: Mappers.CloudError
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
serializer: serializer
|
|
169
|
-
};
|
|
170
|
-
var createOperationSpec = {
|
|
171
|
-
httpMethod: "PUT",
|
|
172
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
173
406
|
urlParameters: [
|
|
407
|
+
Parameters.$host,
|
|
408
|
+
Parameters.subscriptionId,
|
|
174
409
|
Parameters.resourceGroupName,
|
|
175
|
-
Parameters.
|
|
176
|
-
Parameters.containerName,
|
|
177
|
-
Parameters.subscriptionId
|
|
178
|
-
],
|
|
179
|
-
queryParameters: [
|
|
180
|
-
Parameters.apiVersion
|
|
181
|
-
],
|
|
182
|
-
headerParameters: [
|
|
183
|
-
Parameters.acceptLanguage
|
|
410
|
+
Parameters.accountName1
|
|
184
411
|
],
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
412
|
+
headerParameters: [Parameters.accept],
|
|
413
|
+
serializer
|
|
414
|
+
};
|
|
415
|
+
const createOperationSpec = {
|
|
416
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
417
|
+
httpMethod: "PUT",
|
|
189
418
|
responses: {
|
|
190
419
|
200: {
|
|
191
420
|
bodyMapper: Mappers.BlobContainer
|
|
192
421
|
},
|
|
193
422
|
201: {
|
|
194
423
|
bodyMapper: Mappers.BlobContainer
|
|
195
|
-
},
|
|
196
|
-
default: {
|
|
197
|
-
bodyMapper: Mappers.CloudError
|
|
198
424
|
}
|
|
199
425
|
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
var updateOperationSpec = {
|
|
203
|
-
httpMethod: "PATCH",
|
|
204
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
426
|
+
requestBody: Parameters.blobContainer,
|
|
427
|
+
queryParameters: [Parameters.apiVersion],
|
|
205
428
|
urlParameters: [
|
|
429
|
+
Parameters.$host,
|
|
430
|
+
Parameters.subscriptionId,
|
|
206
431
|
Parameters.resourceGroupName,
|
|
207
|
-
Parameters.
|
|
208
|
-
Parameters.containerName
|
|
209
|
-
Parameters.subscriptionId
|
|
432
|
+
Parameters.accountName1,
|
|
433
|
+
Parameters.containerName
|
|
210
434
|
],
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
parameterPath: "blobContainer",
|
|
219
|
-
mapper: __assign(__assign({}, Mappers.BlobContainer), { required: true })
|
|
220
|
-
},
|
|
435
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
436
|
+
mediaType: "json",
|
|
437
|
+
serializer
|
|
438
|
+
};
|
|
439
|
+
const updateOperationSpec = {
|
|
440
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
441
|
+
httpMethod: "PATCH",
|
|
221
442
|
responses: {
|
|
222
443
|
200: {
|
|
223
444
|
bodyMapper: Mappers.BlobContainer
|
|
224
|
-
},
|
|
225
|
-
default: {
|
|
226
|
-
bodyMapper: Mappers.CloudError
|
|
227
445
|
}
|
|
228
446
|
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
var getOperationSpec = {
|
|
232
|
-
httpMethod: "GET",
|
|
233
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
447
|
+
requestBody: Parameters.blobContainer,
|
|
448
|
+
queryParameters: [Parameters.apiVersion],
|
|
234
449
|
urlParameters: [
|
|
450
|
+
Parameters.$host,
|
|
451
|
+
Parameters.subscriptionId,
|
|
235
452
|
Parameters.resourceGroupName,
|
|
236
|
-
Parameters.
|
|
237
|
-
Parameters.containerName
|
|
238
|
-
Parameters.subscriptionId
|
|
239
|
-
],
|
|
240
|
-
queryParameters: [
|
|
241
|
-
Parameters.apiVersion
|
|
242
|
-
],
|
|
243
|
-
headerParameters: [
|
|
244
|
-
Parameters.acceptLanguage
|
|
453
|
+
Parameters.accountName1,
|
|
454
|
+
Parameters.containerName
|
|
245
455
|
],
|
|
456
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
457
|
+
mediaType: "json",
|
|
458
|
+
serializer
|
|
459
|
+
};
|
|
460
|
+
const getOperationSpec = {
|
|
461
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
462
|
+
httpMethod: "GET",
|
|
246
463
|
responses: {
|
|
247
464
|
200: {
|
|
248
465
|
bodyMapper: Mappers.BlobContainer
|
|
249
|
-
},
|
|
250
|
-
default: {
|
|
251
|
-
bodyMapper: Mappers.CloudError
|
|
252
466
|
}
|
|
253
467
|
},
|
|
254
|
-
|
|
255
|
-
};
|
|
256
|
-
var deleteMethodOperationSpec = {
|
|
257
|
-
httpMethod: "DELETE",
|
|
258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
468
|
+
queryParameters: [Parameters.apiVersion],
|
|
259
469
|
urlParameters: [
|
|
470
|
+
Parameters.$host,
|
|
471
|
+
Parameters.subscriptionId,
|
|
260
472
|
Parameters.resourceGroupName,
|
|
261
|
-
Parameters.
|
|
262
|
-
Parameters.containerName
|
|
263
|
-
Parameters.subscriptionId
|
|
264
|
-
],
|
|
265
|
-
queryParameters: [
|
|
266
|
-
Parameters.apiVersion
|
|
267
|
-
],
|
|
268
|
-
headerParameters: [
|
|
269
|
-
Parameters.acceptLanguage
|
|
473
|
+
Parameters.accountName1,
|
|
474
|
+
Parameters.containerName
|
|
270
475
|
],
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
204: {},
|
|
274
|
-
default: {
|
|
275
|
-
bodyMapper: Mappers.CloudError
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
serializer: serializer
|
|
476
|
+
headerParameters: [Parameters.accept],
|
|
477
|
+
serializer
|
|
279
478
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
479
|
+
const deleteOperationSpec = {
|
|
480
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
|
|
481
|
+
httpMethod: "DELETE",
|
|
482
|
+
responses: { 200: {}, 204: {} },
|
|
483
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
484
|
urlParameters: [
|
|
485
|
+
Parameters.$host,
|
|
486
|
+
Parameters.subscriptionId,
|
|
284
487
|
Parameters.resourceGroupName,
|
|
285
|
-
Parameters.
|
|
286
|
-
Parameters.containerName
|
|
287
|
-
Parameters.subscriptionId
|
|
488
|
+
Parameters.accountName1,
|
|
489
|
+
Parameters.containerName
|
|
288
490
|
],
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
],
|
|
295
|
-
requestBody: {
|
|
296
|
-
parameterPath: {
|
|
297
|
-
tags: "tags"
|
|
298
|
-
},
|
|
299
|
-
mapper: __assign(__assign({}, Mappers.LegalHold), { required: true })
|
|
300
|
-
},
|
|
491
|
+
serializer
|
|
492
|
+
};
|
|
493
|
+
const setLegalHoldOperationSpec = {
|
|
494
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
|
|
495
|
+
httpMethod: "POST",
|
|
301
496
|
responses: {
|
|
302
497
|
200: {
|
|
303
498
|
bodyMapper: Mappers.LegalHold
|
|
304
|
-
},
|
|
305
|
-
default: {
|
|
306
|
-
bodyMapper: Mappers.CloudError
|
|
307
499
|
}
|
|
308
500
|
},
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
var clearLegalHoldOperationSpec = {
|
|
312
|
-
httpMethod: "POST",
|
|
313
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
|
|
501
|
+
requestBody: Parameters.legalHold,
|
|
502
|
+
queryParameters: [Parameters.apiVersion],
|
|
314
503
|
urlParameters: [
|
|
504
|
+
Parameters.$host,
|
|
505
|
+
Parameters.subscriptionId,
|
|
315
506
|
Parameters.resourceGroupName,
|
|
316
|
-
Parameters.
|
|
317
|
-
Parameters.containerName
|
|
318
|
-
Parameters.subscriptionId
|
|
319
|
-
],
|
|
320
|
-
queryParameters: [
|
|
321
|
-
Parameters.apiVersion
|
|
507
|
+
Parameters.accountName1,
|
|
508
|
+
Parameters.containerName
|
|
322
509
|
],
|
|
323
|
-
headerParameters: [
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
mapper: __assign(__assign({}, Mappers.LegalHold), { required: true })
|
|
331
|
-
},
|
|
510
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
511
|
+
mediaType: "json",
|
|
512
|
+
serializer
|
|
513
|
+
};
|
|
514
|
+
const clearLegalHoldOperationSpec = {
|
|
515
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
|
|
516
|
+
httpMethod: "POST",
|
|
332
517
|
responses: {
|
|
333
518
|
200: {
|
|
334
519
|
bodyMapper: Mappers.LegalHold
|
|
335
|
-
},
|
|
336
|
-
default: {
|
|
337
|
-
bodyMapper: Mappers.CloudError
|
|
338
520
|
}
|
|
339
521
|
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
var createOrUpdateImmutabilityPolicyOperationSpec = {
|
|
343
|
-
httpMethod: "PUT",
|
|
344
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
522
|
+
requestBody: Parameters.legalHold,
|
|
523
|
+
queryParameters: [Parameters.apiVersion],
|
|
345
524
|
urlParameters: [
|
|
525
|
+
Parameters.$host,
|
|
526
|
+
Parameters.subscriptionId,
|
|
346
527
|
Parameters.resourceGroupName,
|
|
347
|
-
Parameters.
|
|
348
|
-
Parameters.containerName
|
|
349
|
-
Parameters.immutabilityPolicyName,
|
|
350
|
-
Parameters.subscriptionId
|
|
351
|
-
],
|
|
352
|
-
queryParameters: [
|
|
353
|
-
Parameters.apiVersion
|
|
354
|
-
],
|
|
355
|
-
headerParameters: [
|
|
356
|
-
Parameters.ifMatch0,
|
|
357
|
-
Parameters.acceptLanguage
|
|
528
|
+
Parameters.accountName1,
|
|
529
|
+
Parameters.containerName
|
|
358
530
|
],
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
"options",
|
|
367
|
-
"allowProtectedAppendWrites"
|
|
368
|
-
]
|
|
369
|
-
},
|
|
370
|
-
mapper: Mappers.ImmutabilityPolicy
|
|
371
|
-
},
|
|
531
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
532
|
+
mediaType: "json",
|
|
533
|
+
serializer
|
|
534
|
+
};
|
|
535
|
+
const createOrUpdateImmutabilityPolicyOperationSpec = {
|
|
536
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
537
|
+
httpMethod: "PUT",
|
|
372
538
|
responses: {
|
|
373
539
|
200: {
|
|
374
540
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
375
541
|
headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
|
|
376
|
-
},
|
|
377
|
-
default: {
|
|
378
|
-
bodyMapper: Mappers.CloudError,
|
|
379
|
-
headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
|
|
380
542
|
}
|
|
381
543
|
},
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
var getImmutabilityPolicyOperationSpec = {
|
|
385
|
-
httpMethod: "GET",
|
|
386
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
544
|
+
requestBody: Parameters.parameters6,
|
|
545
|
+
queryParameters: [Parameters.apiVersion],
|
|
387
546
|
urlParameters: [
|
|
547
|
+
Parameters.$host,
|
|
548
|
+
Parameters.subscriptionId,
|
|
388
549
|
Parameters.resourceGroupName,
|
|
389
|
-
Parameters.
|
|
550
|
+
Parameters.accountName1,
|
|
390
551
|
Parameters.containerName,
|
|
391
|
-
Parameters.immutabilityPolicyName
|
|
392
|
-
Parameters.subscriptionId
|
|
393
|
-
],
|
|
394
|
-
queryParameters: [
|
|
395
|
-
Parameters.apiVersion
|
|
552
|
+
Parameters.immutabilityPolicyName
|
|
396
553
|
],
|
|
397
554
|
headerParameters: [
|
|
398
|
-
Parameters.
|
|
399
|
-
Parameters.
|
|
555
|
+
Parameters.accept,
|
|
556
|
+
Parameters.contentType,
|
|
557
|
+
Parameters.ifMatch
|
|
400
558
|
],
|
|
559
|
+
mediaType: "json",
|
|
560
|
+
serializer
|
|
561
|
+
};
|
|
562
|
+
const getImmutabilityPolicyOperationSpec = {
|
|
563
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
564
|
+
httpMethod: "GET",
|
|
401
565
|
responses: {
|
|
402
566
|
200: {
|
|
403
567
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
404
568
|
headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
|
|
405
|
-
},
|
|
406
|
-
default: {
|
|
407
|
-
bodyMapper: Mappers.CloudError,
|
|
408
|
-
headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
|
|
409
569
|
}
|
|
410
570
|
},
|
|
411
|
-
|
|
412
|
-
};
|
|
413
|
-
var deleteImmutabilityPolicyOperationSpec = {
|
|
414
|
-
httpMethod: "DELETE",
|
|
415
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
571
|
+
queryParameters: [Parameters.apiVersion],
|
|
416
572
|
urlParameters: [
|
|
573
|
+
Parameters.$host,
|
|
574
|
+
Parameters.subscriptionId,
|
|
417
575
|
Parameters.resourceGroupName,
|
|
418
|
-
Parameters.
|
|
576
|
+
Parameters.accountName1,
|
|
419
577
|
Parameters.containerName,
|
|
420
|
-
Parameters.immutabilityPolicyName
|
|
421
|
-
Parameters.subscriptionId
|
|
422
|
-
],
|
|
423
|
-
queryParameters: [
|
|
424
|
-
Parameters.apiVersion
|
|
425
|
-
],
|
|
426
|
-
headerParameters: [
|
|
427
|
-
Parameters.ifMatch1,
|
|
428
|
-
Parameters.acceptLanguage
|
|
578
|
+
Parameters.immutabilityPolicyName
|
|
429
579
|
],
|
|
580
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch],
|
|
581
|
+
serializer
|
|
582
|
+
};
|
|
583
|
+
const deleteImmutabilityPolicyOperationSpec = {
|
|
584
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
|
|
585
|
+
httpMethod: "DELETE",
|
|
430
586
|
responses: {
|
|
431
587
|
200: {
|
|
432
588
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
433
589
|
headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
|
|
434
|
-
},
|
|
435
|
-
default: {
|
|
436
|
-
bodyMapper: Mappers.CloudError,
|
|
437
|
-
headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
|
|
438
590
|
}
|
|
439
591
|
},
|
|
440
|
-
|
|
441
|
-
};
|
|
442
|
-
var lockImmutabilityPolicyOperationSpec = {
|
|
443
|
-
httpMethod: "POST",
|
|
444
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
|
|
592
|
+
queryParameters: [Parameters.apiVersion],
|
|
445
593
|
urlParameters: [
|
|
594
|
+
Parameters.$host,
|
|
595
|
+
Parameters.subscriptionId,
|
|
446
596
|
Parameters.resourceGroupName,
|
|
447
|
-
Parameters.
|
|
597
|
+
Parameters.accountName1,
|
|
448
598
|
Parameters.containerName,
|
|
449
|
-
Parameters.
|
|
450
|
-
],
|
|
451
|
-
queryParameters: [
|
|
452
|
-
Parameters.apiVersion
|
|
453
|
-
],
|
|
454
|
-
headerParameters: [
|
|
455
|
-
Parameters.ifMatch1,
|
|
456
|
-
Parameters.acceptLanguage
|
|
599
|
+
Parameters.immutabilityPolicyName
|
|
457
600
|
],
|
|
601
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch1],
|
|
602
|
+
serializer
|
|
603
|
+
};
|
|
604
|
+
const lockImmutabilityPolicyOperationSpec = {
|
|
605
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
|
|
606
|
+
httpMethod: "POST",
|
|
458
607
|
responses: {
|
|
459
608
|
200: {
|
|
460
609
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
461
610
|
headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
|
|
462
|
-
},
|
|
463
|
-
default: {
|
|
464
|
-
bodyMapper: Mappers.CloudError,
|
|
465
|
-
headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
|
|
466
611
|
}
|
|
467
612
|
},
|
|
468
|
-
|
|
469
|
-
};
|
|
470
|
-
var extendImmutabilityPolicyOperationSpec = {
|
|
471
|
-
httpMethod: "POST",
|
|
472
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
|
|
613
|
+
queryParameters: [Parameters.apiVersion],
|
|
473
614
|
urlParameters: [
|
|
615
|
+
Parameters.$host,
|
|
616
|
+
Parameters.subscriptionId,
|
|
474
617
|
Parameters.resourceGroupName,
|
|
475
|
-
Parameters.
|
|
476
|
-
Parameters.containerName
|
|
477
|
-
Parameters.subscriptionId
|
|
478
|
-
],
|
|
479
|
-
queryParameters: [
|
|
480
|
-
Parameters.apiVersion
|
|
618
|
+
Parameters.accountName1,
|
|
619
|
+
Parameters.containerName
|
|
481
620
|
],
|
|
482
|
-
headerParameters: [
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
immutabilityPeriodSinceCreationInDays: [
|
|
489
|
-
"options",
|
|
490
|
-
"immutabilityPeriodSinceCreationInDays"
|
|
491
|
-
],
|
|
492
|
-
allowProtectedAppendWrites: [
|
|
493
|
-
"options",
|
|
494
|
-
"allowProtectedAppendWrites"
|
|
495
|
-
]
|
|
496
|
-
},
|
|
497
|
-
mapper: Mappers.ImmutabilityPolicy
|
|
498
|
-
},
|
|
621
|
+
headerParameters: [Parameters.accept, Parameters.ifMatch1],
|
|
622
|
+
serializer
|
|
623
|
+
};
|
|
624
|
+
const extendImmutabilityPolicyOperationSpec = {
|
|
625
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
|
|
626
|
+
httpMethod: "POST",
|
|
499
627
|
responses: {
|
|
500
628
|
200: {
|
|
501
629
|
bodyMapper: Mappers.ImmutabilityPolicy,
|
|
502
630
|
headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
|
|
503
|
-
},
|
|
504
|
-
default: {
|
|
505
|
-
bodyMapper: Mappers.CloudError,
|
|
506
|
-
headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
|
|
507
631
|
}
|
|
508
632
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
var leaseOperationSpec = {
|
|
512
|
-
httpMethod: "POST",
|
|
513
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
|
|
633
|
+
requestBody: Parameters.parameters6,
|
|
634
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
635
|
urlParameters: [
|
|
636
|
+
Parameters.$host,
|
|
637
|
+
Parameters.subscriptionId,
|
|
515
638
|
Parameters.resourceGroupName,
|
|
516
|
-
Parameters.
|
|
517
|
-
Parameters.containerName
|
|
518
|
-
Parameters.subscriptionId
|
|
519
|
-
],
|
|
520
|
-
queryParameters: [
|
|
521
|
-
Parameters.apiVersion
|
|
639
|
+
Parameters.accountName1,
|
|
640
|
+
Parameters.containerName
|
|
522
641
|
],
|
|
523
642
|
headerParameters: [
|
|
524
|
-
Parameters.
|
|
643
|
+
Parameters.accept,
|
|
644
|
+
Parameters.contentType,
|
|
645
|
+
Parameters.ifMatch1
|
|
525
646
|
],
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
},
|
|
647
|
+
mediaType: "json",
|
|
648
|
+
serializer
|
|
649
|
+
};
|
|
650
|
+
const leaseOperationSpec = {
|
|
651
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
|
|
652
|
+
httpMethod: "POST",
|
|
533
653
|
responses: {
|
|
534
654
|
200: {
|
|
535
655
|
bodyMapper: Mappers.LeaseContainerResponse
|
|
536
|
-
}
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
requestBody: Parameters.parameters7,
|
|
659
|
+
queryParameters: [Parameters.apiVersion],
|
|
660
|
+
urlParameters: [
|
|
661
|
+
Parameters.$host,
|
|
662
|
+
Parameters.subscriptionId,
|
|
663
|
+
Parameters.resourceGroupName,
|
|
664
|
+
Parameters.accountName1,
|
|
665
|
+
Parameters.containerName
|
|
666
|
+
],
|
|
667
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
668
|
+
mediaType: "json",
|
|
669
|
+
serializer
|
|
670
|
+
};
|
|
671
|
+
const objectLevelWormOperationSpec = {
|
|
672
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate",
|
|
673
|
+
httpMethod: "POST",
|
|
674
|
+
responses: {
|
|
675
|
+
200: {},
|
|
676
|
+
201: {},
|
|
677
|
+
202: {},
|
|
678
|
+
204: {},
|
|
537
679
|
default: {
|
|
538
680
|
bodyMapper: Mappers.CloudError
|
|
539
681
|
}
|
|
540
682
|
},
|
|
541
|
-
|
|
542
|
-
};
|
|
543
|
-
var listNextOperationSpec = {
|
|
544
|
-
httpMethod: "GET",
|
|
545
|
-
baseUrl: "https://management.azure.com",
|
|
546
|
-
path: "{nextLink}",
|
|
683
|
+
queryParameters: [Parameters.apiVersion],
|
|
547
684
|
urlParameters: [
|
|
548
|
-
Parameters
|
|
685
|
+
Parameters.$host,
|
|
686
|
+
Parameters.subscriptionId,
|
|
687
|
+
Parameters.resourceGroupName,
|
|
688
|
+
Parameters.accountName1,
|
|
689
|
+
Parameters.containerName
|
|
549
690
|
],
|
|
691
|
+
headerParameters: [Parameters.accept],
|
|
692
|
+
serializer
|
|
693
|
+
};
|
|
694
|
+
const listNextOperationSpec = {
|
|
695
|
+
path: "{nextLink}",
|
|
696
|
+
httpMethod: "GET",
|
|
697
|
+
responses: {
|
|
698
|
+
200: {
|
|
699
|
+
bodyMapper: Mappers.ListContainerItems
|
|
700
|
+
}
|
|
701
|
+
},
|
|
550
702
|
queryParameters: [
|
|
551
703
|
Parameters.apiVersion,
|
|
552
704
|
Parameters.maxpagesize,
|
|
553
705
|
Parameters.filter,
|
|
554
706
|
Parameters.include
|
|
555
707
|
],
|
|
556
|
-
|
|
557
|
-
Parameters
|
|
708
|
+
urlParameters: [
|
|
709
|
+
Parameters.$host,
|
|
710
|
+
Parameters.subscriptionId,
|
|
711
|
+
Parameters.resourceGroupName,
|
|
712
|
+
Parameters.accountName1,
|
|
713
|
+
Parameters.nextLink
|
|
558
714
|
],
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
bodyMapper: Mappers.ListContainerItems
|
|
562
|
-
},
|
|
563
|
-
default: {
|
|
564
|
-
bodyMapper: Mappers.CloudError
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
serializer: serializer
|
|
715
|
+
headerParameters: [Parameters.accept],
|
|
716
|
+
serializer
|
|
568
717
|
};
|
|
569
718
|
//# sourceMappingURL=blobContainers.js.map
|