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