@azure/arm-storage 16.1.1 → 17.0.0-alpha.20211111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +63 -80
- package/dist/index.js +10964 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/coreClientLro.d.ts +26 -0
- package/esm/coreClientLro.d.ts.map +1 -0
- package/esm/coreClientLro.js +186 -0
- package/esm/coreClientLro.js.map +1 -0
- package/esm/index.d.ts +5002 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/lro/azureAsyncPolling.d.ts +3 -0
- package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
- package/esm/lro/azureAsyncPolling.js +67 -0
- package/esm/lro/azureAsyncPolling.js.map +1 -0
- package/esm/lro/bodyPolling.d.ts +8 -0
- package/esm/lro/bodyPolling.d.ts.map +1 -0
- package/esm/lro/bodyPolling.js +37 -0
- package/esm/lro/bodyPolling.js.map +1 -0
- package/esm/lro/index.d.ts +4 -0
- package/esm/lro/index.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → esm/lro/index.js} +5 -10
- package/esm/lro/index.js.map +1 -0
- package/esm/lro/locationPolling.d.ts +3 -0
- package/esm/lro/locationPolling.d.ts.map +1 -0
- package/esm/lro/locationPolling.js +19 -0
- package/esm/lro/locationPolling.js.map +1 -0
- package/esm/lro/lroEngine.d.ts +14 -0
- package/esm/lro/lroEngine.d.ts.map +1 -0
- package/esm/lro/lroEngine.js +41 -0
- package/esm/lro/lroEngine.js.map +1 -0
- package/esm/lro/models.d.ts +138 -0
- package/esm/lro/models.d.ts.map +1 -0
- package/esm/lro/models.js +14 -0
- package/esm/lro/models.js.map +1 -0
- package/esm/lro/operation.d.ts +36 -0
- package/esm/lro/operation.d.ts.map +1 -0
- package/esm/lro/operation.js +82 -0
- package/esm/lro/operation.js.map +1 -0
- package/esm/lro/passthrough.d.ts +3 -0
- package/esm/lro/passthrough.d.ts.map +1 -0
- package/esm/{models/operationsMappers.js → lro/passthrough.js} +8 -2
- package/esm/lro/passthrough.js.map +1 -0
- package/esm/lro/requestUtils.d.ts +16 -0
- package/esm/lro/requestUtils.d.ts.map +1 -0
- package/esm/lro/requestUtils.js +73 -0
- package/esm/lro/requestUtils.js.map +1 -0
- package/esm/lro/stateMachine.d.ts +18 -0
- package/esm/lro/stateMachine.d.ts.map +1 -0
- package/esm/lro/stateMachine.js +84 -0
- package/esm/lro/stateMachine.js.map +1 -0
- package/esm/models/index.d.ts +2673 -4395
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +331 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +146 -138
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +2734 -2563
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +59 -33
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +267 -159
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/blobContainers.d.ts +213 -561
- package/esm/operations/blobContainers.d.ts.map +1 -1
- package/esm/operations/blobContainers.js +578 -429
- package/esm/operations/blobContainers.js.map +1 -1
- package/esm/operations/blobInventoryPolicies.d.ts +47 -109
- package/esm/operations/blobInventoryPolicies.d.ts.map +1 -1
- package/esm/operations/blobInventoryPolicies.js +163 -105
- package/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/esm/operations/blobServices.d.ts +39 -89
- package/esm/operations/blobServices.d.ts.map +1 -1
- package/esm/operations/blobServices.js +133 -89
- package/esm/operations/blobServices.js.map +1 -1
- package/esm/operations/deletedAccounts.d.ts +20 -47
- package/esm/operations/deletedAccounts.d.ts.map +1 -1
- package/esm/operations/deletedAccounts.js +111 -69
- package/esm/operations/deletedAccounts.js.map +1 -1
- package/esm/operations/encryptionScopes.d.ts +65 -166
- package/esm/operations/encryptionScopes.d.ts.map +1 -1
- package/esm/operations/encryptionScopes.js +211 -131
- package/esm/operations/encryptionScopes.js.map +1 -1
- package/esm/operations/fileServices.d.ts +25 -89
- package/esm/operations/fileServices.d.ts.map +1 -1
- package/esm/operations/fileServices.js +86 -83
- package/esm/operations/fileServices.js.map +1 -1
- package/esm/operations/fileShares.d.ts +100 -256
- package/esm/operations/fileShares.d.ts.map +1 -1
- package/esm/operations/fileShares.js +316 -164
- package/esm/operations/fileShares.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +1 -2
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementPolicies.d.ts +30 -89
- package/esm/operations/managementPolicies.d.ts.map +1 -1
- package/esm/operations/managementPolicies.js +89 -92
- package/esm/operations/managementPolicies.js.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts +54 -130
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.js +170 -102
- package/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/esm/operations/operations.d.ts +14 -15
- package/esm/operations/operations.d.ts.map +1 -1
- package/esm/operations/operations.js +67 -29
- package/esm/operations/operations.js.map +1 -1
- package/esm/operations/privateEndpointConnections.d.ts +46 -126
- package/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/esm/operations/privateEndpointConnections.js +171 -103
- package/esm/operations/privateEndpointConnections.js.map +1 -1
- package/esm/operations/privateLinkResources.d.ts +11 -31
- package/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/esm/operations/privateLinkResources.js +32 -36
- package/esm/operations/privateLinkResources.js.map +1 -1
- package/esm/operations/queue.d.ts +69 -196
- package/esm/operations/queue.d.ts.map +1 -1
- package/esm/operations/queue.js +230 -162
- package/esm/operations/queue.js.map +1 -1
- package/esm/operations/queueServices.d.ts +29 -87
- package/esm/operations/queueServices.d.ts.map +1 -1
- package/esm/operations/queueServices.js +86 -87
- package/esm/operations/queueServices.js.map +1 -1
- package/esm/operations/skus.d.ts +14 -15
- package/esm/operations/skus.d.ts.map +1 -1
- package/esm/operations/skus.js +67 -32
- package/esm/operations/skus.js.map +1 -1
- package/esm/operations/storageAccounts.d.ts +163 -381
- package/esm/operations/storageAccounts.d.ts.map +1 -1
- package/esm/operations/storageAccounts.js +605 -501
- package/esm/operations/storageAccounts.js.map +1 -1
- package/esm/operations/tableOperations.d.ts +67 -184
- package/esm/operations/tableOperations.d.ts.map +1 -1
- package/esm/operations/tableOperations.js +220 -143
- package/esm/operations/tableOperations.js.map +1 -1
- package/esm/operations/tableServices.d.ts +29 -87
- package/esm/operations/tableServices.d.ts.map +1 -1
- package/esm/operations/tableServices.js +86 -87
- package/esm/operations/tableServices.js.map +1 -1
- package/esm/operations/usages.d.ts +15 -18
- package/esm/operations/usages.d.ts.map +1 -1
- package/esm/operations/usages.js +73 -34
- package/esm/operations/usages.js.map +1 -1
- package/esm/operationsInterfaces/blobContainers.d.ts +247 -0
- package/esm/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/{src/models/usagesMappers.ts → esm/operationsInterfaces/blobContainers.js} +2 -7
- package/esm/operationsInterfaces/blobContainers.js.map +1 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts +54 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/esm/{models/usagesMappers.js → operationsInterfaces/blobInventoryPolicies.js} +2 -2
- package/esm/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/esm/operationsInterfaces/blobServices.d.ts +41 -0
- package/esm/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/{src/models/skusMappers.ts → esm/operationsInterfaces/blobServices.js} +2 -8
- package/esm/operationsInterfaces/blobServices.js.map +1 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts +19 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/esm/{models/skusMappers.js → operationsInterfaces/deletedAccounts.js} +2 -2
- package/esm/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts +64 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.js +9 -0
- package/esm/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/esm/operationsInterfaces/fileServices.d.ts +39 -0
- package/esm/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileServices.js +9 -0
- package/esm/operationsInterfaces/fileServices.js.map +1 -0
- package/esm/operationsInterfaces/fileShares.d.ts +102 -0
- package/esm/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileShares.js +9 -0
- package/esm/operationsInterfaces/fileShares.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +20 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +27 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts +42 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.js +9 -0
- package/esm/operationsInterfaces/managementPolicies.js.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +61 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/esm/operationsInterfaces/operations.d.ts +12 -0
- package/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/esm/operationsInterfaces/operations.js +9 -0
- package/esm/operationsInterfaces/operations.js.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/esm/operationsInterfaces/queue.d.ts +71 -0
- package/esm/operationsInterfaces/queue.d.ts.map +1 -0
- package/esm/operationsInterfaces/queue.js +9 -0
- package/esm/operationsInterfaces/queue.js.map +1 -0
- package/esm/operationsInterfaces/queueServices.d.ts +39 -0
- package/esm/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/queueServices.js +9 -0
- package/esm/operationsInterfaces/queueServices.js.map +1 -0
- package/esm/operationsInterfaces/skus.d.ts +12 -0
- package/esm/operationsInterfaces/skus.d.ts.map +1 -0
- package/esm/operationsInterfaces/skus.js +9 -0
- package/esm/operationsInterfaces/skus.js.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts +197 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.js +9 -0
- package/esm/operationsInterfaces/storageAccounts.js.map +1 -0
- package/esm/operationsInterfaces/tableOperations.d.ts +69 -0
- package/esm/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableOperations.js +9 -0
- package/esm/operationsInterfaces/tableOperations.js.map +1 -0
- package/esm/operationsInterfaces/tableServices.d.ts +39 -0
- package/esm/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableServices.js +9 -0
- package/esm/operationsInterfaces/tableServices.js.map +1 -0
- package/esm/operationsInterfaces/usages.d.ts +13 -0
- package/esm/operationsInterfaces/usages.d.ts.map +1 -0
- package/esm/operationsInterfaces/usages.js +9 -0
- package/esm/operationsInterfaces/usages.js.map +1 -0
- package/esm/storageManagementClient.d.ts +26 -35
- package/esm/storageManagementClient.d.ts.map +1 -1
- package/esm/storageManagementClient.js +27 -42
- package/esm/storageManagementClient.js.map +1 -1
- package/esm/storageManagementClientContext.d.ts +10 -16
- package/esm/storageManagementClientContext.d.ts.map +1 -1
- package/esm/storageManagementClientContext.js +32 -44
- package/esm/storageManagementClientContext.js.map +1 -1
- package/package.json +57 -18
- package/review/arm-storage.api.md +2659 -0
- package/rollup.config.js +181 -30
- package/src/coreClientLro.ts +323 -0
- package/src/index.ts +13 -0
- package/src/lro/azureAsyncPolling.ts +96 -0
- package/src/lro/bodyPolling.ts +54 -0
- package/src/lro/index.ts +26 -0
- package/src/lro/locationPolling.ts +30 -0
- package/src/lro/lroEngine.ts +61 -0
- package/src/lro/models.ts +173 -0
- package/src/lro/operation.ts +120 -0
- package/src/lro/passthrough.ts +23 -0
- package/src/lro/requestUtils.ts +105 -0
- package/src/lro/stateMachine.ts +138 -0
- package/src/models/index.ts +2813 -4492
- package/src/models/mappers.ts +2745 -2553
- package/src/models/parameters.ts +354 -160
- package/src/operations/blobContainers.ts +719 -1037
- package/src/operations/blobInventoryPolicies.ts +182 -211
- package/src/operations/blobServices.ts +150 -177
- package/src/operations/deletedAccounts.ts +111 -112
- package/src/operations/encryptionScopes.ts +233 -291
- package/src/operations/fileServices.ts +99 -171
- package/src/operations/fileShares.ts +335 -560
- package/src/operations/index.ts +1 -2
- package/src/operations/managementPolicies.ts +102 -175
- package/src/operations/objectReplicationPoliciesOperations.ts +187 -227
- package/src/operations/operations.ts +61 -38
- package/src/operations/privateEndpointConnections.ts +177 -214
- package/src/operations/privateLinkResources.ts +37 -60
- package/src/operations/queue.ts +269 -365
- package/src/operations/queueServices.ts +103 -173
- package/src/operations/skus.ts +59 -41
- package/src/operations/storageAccounts.ts +779 -872
- package/src/operations/tableOperations.ts +255 -328
- package/src/operations/tableServices.ts +103 -173
- package/src/operations/usages.ts +73 -45
- package/src/operationsInterfaces/blobContainers.ts +366 -0
- package/src/operationsInterfaces/blobInventoryPolicies.ts +92 -0
- package/src/operationsInterfaces/blobServices.ts +70 -0
- package/src/operationsInterfaces/deletedAccounts.ts +39 -0
- package/src/operationsInterfaces/encryptionScopes.ts +103 -0
- package/src/operationsInterfaces/fileServices.ts +68 -0
- package/src/operationsInterfaces/fileShares.ts +163 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/managementPolicies.ts +74 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +98 -0
- package/src/operationsInterfaces/operations.ts +23 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +91 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/operationsInterfaces/queue.ts +117 -0
- package/src/operationsInterfaces/queueServices.ts +68 -0
- package/src/operationsInterfaces/skus.ts +23 -0
- package/src/operationsInterfaces/storageAccounts.ts +320 -0
- package/src/operationsInterfaces/tableOperations.ts +112 -0
- package/src/operationsInterfaces/tableServices.ts +68 -0
- package/src/operationsInterfaces/usages.ts +25 -0
- package/src/storageManagementClient.ts +94 -67
- package/src/storageManagementClientContext.ts +42 -46
- package/tsconfig.json +2 -1
- package/dist/arm-storage.js +0 -10687
- package/dist/arm-storage.js.map +0 -1
- package/dist/arm-storage.min.js +0 -1
- package/dist/arm-storage.min.js.map +0 -1
- package/esm/models/blobContainersMappers.d.ts +0 -2
- package/esm/models/blobContainersMappers.d.ts.map +0 -1
- package/esm/models/blobContainersMappers.js +0 -9
- package/esm/models/blobContainersMappers.js.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
- package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.js +0 -9
- package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
- package/esm/models/blobServicesMappers.d.ts +0 -2
- package/esm/models/blobServicesMappers.d.ts.map +0 -1
- package/esm/models/blobServicesMappers.js +0 -9
- package/esm/models/blobServicesMappers.js.map +0 -1
- package/esm/models/deletedAccountsMappers.d.ts +0 -2
- package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
- package/esm/models/deletedAccountsMappers.js +0 -9
- package/esm/models/deletedAccountsMappers.js.map +0 -1
- package/esm/models/encryptionScopesMappers.d.ts +0 -2
- package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
- package/esm/models/encryptionScopesMappers.js +0 -9
- package/esm/models/encryptionScopesMappers.js.map +0 -1
- package/esm/models/fileServicesMappers.d.ts +0 -2
- package/esm/models/fileServicesMappers.d.ts.map +0 -1
- package/esm/models/fileServicesMappers.js +0 -9
- package/esm/models/fileServicesMappers.js.map +0 -1
- package/esm/models/fileSharesMappers.d.ts +0 -2
- package/esm/models/fileSharesMappers.d.ts.map +0 -1
- package/esm/models/fileSharesMappers.js +0 -9
- package/esm/models/fileSharesMappers.js.map +0 -1
- package/esm/models/managementPoliciesMappers.d.ts +0 -2
- package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/managementPoliciesMappers.js +0 -9
- package/esm/models/managementPoliciesMappers.js.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
- package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/queueMappers.d.ts +0 -2
- package/esm/models/queueMappers.d.ts.map +0 -1
- package/esm/models/queueMappers.js +0 -9
- package/esm/models/queueMappers.js.map +0 -1
- package/esm/models/queueServicesMappers.d.ts +0 -2
- package/esm/models/queueServicesMappers.d.ts.map +0 -1
- package/esm/models/queueServicesMappers.js +0 -9
- package/esm/models/queueServicesMappers.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/models/tableOperationsMappers.d.ts +0 -2
- package/esm/models/tableOperationsMappers.d.ts.map +0 -1
- package/esm/models/tableOperationsMappers.js +0 -9
- package/esm/models/tableOperationsMappers.js.map +0 -1
- package/esm/models/tableServicesMappers.d.ts +0 -2
- package/esm/models/tableServicesMappers.d.ts.map +0 -1
- package/esm/models/tableServicesMappers.js +0 -9
- package/esm/models/tableServicesMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js.map +0 -1
- package/src/models/blobContainersMappers.ts +0 -106
- package/src/models/blobInventoryPoliciesMappers.ts +0 -99
- package/src/models/blobServicesMappers.ts +0 -98
- package/src/models/deletedAccountsMappers.ts +0 -99
- package/src/models/encryptionScopesMappers.ts +0 -100
- package/src/models/fileServicesMappers.ts +0 -98
- package/src/models/fileSharesMappers.ts +0 -99
- package/src/models/managementPoliciesMappers.ts +0 -97
- package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
- package/src/models/privateEndpointConnectionsMappers.ts +0 -100
- package/src/models/privateLinkResourcesMappers.ts +0 -98
- package/src/models/queueMappers.ts +0 -98
- package/src/models/queueServicesMappers.ts +0 -98
- package/src/models/storageAccountsMappers.ts +0 -109
- package/src/models/tableOperationsMappers.ts +0 -98
- package/src/models/tableServicesMappers.ts +0 -98
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
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
9
|
export * from "./operations";
|
|
@@ -3,23 +3,31 @@
|
|
|
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 * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { ManagementPolicies } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
13
|
import { StorageManagementClientContext } from "../storageManagementClientContext";
|
|
14
|
+
import {
|
|
15
|
+
ManagementPolicyName,
|
|
16
|
+
ManagementPoliciesGetOptionalParams,
|
|
17
|
+
ManagementPoliciesGetResponse,
|
|
18
|
+
ManagementPolicy,
|
|
19
|
+
ManagementPoliciesCreateOrUpdateOptionalParams,
|
|
20
|
+
ManagementPoliciesCreateOrUpdateResponse,
|
|
21
|
+
ManagementPoliciesDeleteOptionalParams
|
|
22
|
+
} from "../models";
|
|
15
23
|
|
|
16
24
|
/** Class representing a ManagementPolicies. */
|
|
17
|
-
export class ManagementPolicies {
|
|
25
|
+
export class ManagementPoliciesImpl implements ManagementPolicies {
|
|
18
26
|
private readonly client: StorageManagementClientContext;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class ManagementPolicies class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
32
|
constructor(client: StorageManagementClientContext) {
|
|
25
33
|
this.client = client;
|
|
@@ -27,219 +35,138 @@ export class ManagementPolicies {
|
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* Gets the managementpolicy associated with the specified storage account.
|
|
30
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
31
|
-
*
|
|
38
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
39
|
+
* case insensitive.
|
|
32
40
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param
|
|
36
|
-
*
|
|
41
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
42
|
+
* only.
|
|
43
|
+
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be
|
|
44
|
+
* 'default'
|
|
45
|
+
* @param options The options parameters.
|
|
37
46
|
*/
|
|
38
|
-
get(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* letters only.
|
|
45
|
-
* @param callback The callback
|
|
46
|
-
*/
|
|
47
|
-
get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ManagementPolicy>): void;
|
|
48
|
-
/**
|
|
49
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
50
|
-
* is case insensitive.
|
|
51
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
52
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
53
|
-
* letters only.
|
|
54
|
-
* @param options The optional parameters
|
|
55
|
-
* @param callback The callback
|
|
56
|
-
*/
|
|
57
|
-
get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementPolicy>): void;
|
|
58
|
-
get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ManagementPolicy>, callback?: msRest.ServiceCallback<Models.ManagementPolicy>): Promise<Models.ManagementPoliciesGetResponse> {
|
|
47
|
+
get(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
accountName: string,
|
|
50
|
+
managementPolicyName: ManagementPolicyName,
|
|
51
|
+
options?: ManagementPoliciesGetOptionalParams
|
|
52
|
+
): Promise<ManagementPoliciesGetResponse> {
|
|
59
53
|
return this.client.sendOperationRequest(
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
options
|
|
64
|
-
},
|
|
65
|
-
getOperationSpec,
|
|
66
|
-
callback) as Promise<Models.ManagementPoliciesGetResponse>;
|
|
54
|
+
{ resourceGroupName, accountName, managementPolicyName, options },
|
|
55
|
+
getOperationSpec
|
|
56
|
+
);
|
|
67
57
|
}
|
|
68
58
|
|
|
69
59
|
/**
|
|
70
60
|
* Sets the managementpolicy to the specified storage account.
|
|
71
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
72
|
-
*
|
|
73
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
74
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
75
|
-
* letters only.
|
|
76
|
-
* @param policy The Storage Account ManagementPolicy, in JSON format. See more details in:
|
|
77
|
-
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
|
|
78
|
-
* @param [options] The optional parameters
|
|
79
|
-
* @returns Promise<Models.ManagementPoliciesCreateOrUpdateResponse>
|
|
80
|
-
*/
|
|
81
|
-
createOrUpdate(resourceGroupName: string, accountName: string, policy: Models.ManagementPolicySchema, options?: msRest.RequestOptionsBase): Promise<Models.ManagementPoliciesCreateOrUpdateResponse>;
|
|
82
|
-
/**
|
|
83
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
84
|
-
* is case insensitive.
|
|
85
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
86
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
87
|
-
* letters only.
|
|
88
|
-
* @param policy The Storage Account ManagementPolicy, in JSON format. See more details in:
|
|
89
|
-
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
|
|
90
|
-
* @param callback The callback
|
|
91
|
-
*/
|
|
92
|
-
createOrUpdate(resourceGroupName: string, accountName: string, policy: Models.ManagementPolicySchema, callback: msRest.ServiceCallback<Models.ManagementPolicy>): void;
|
|
93
|
-
/**
|
|
94
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
95
|
-
* is case insensitive.
|
|
61
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
62
|
+
* case insensitive.
|
|
96
63
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* @param
|
|
100
|
-
*
|
|
101
|
-
* @param
|
|
102
|
-
* @param
|
|
64
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
65
|
+
* only.
|
|
66
|
+
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be
|
|
67
|
+
* 'default'
|
|
68
|
+
* @param properties The ManagementPolicy set to a storage account.
|
|
69
|
+
* @param options The options parameters.
|
|
103
70
|
*/
|
|
104
|
-
createOrUpdate(
|
|
105
|
-
|
|
71
|
+
createOrUpdate(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
accountName: string,
|
|
74
|
+
managementPolicyName: ManagementPolicyName,
|
|
75
|
+
properties: ManagementPolicy,
|
|
76
|
+
options?: ManagementPoliciesCreateOrUpdateOptionalParams
|
|
77
|
+
): Promise<ManagementPoliciesCreateOrUpdateResponse> {
|
|
106
78
|
return this.client.sendOperationRequest(
|
|
107
79
|
{
|
|
108
80
|
resourceGroupName,
|
|
109
81
|
accountName,
|
|
110
|
-
|
|
82
|
+
managementPolicyName,
|
|
83
|
+
properties,
|
|
111
84
|
options
|
|
112
85
|
},
|
|
113
|
-
createOrUpdateOperationSpec
|
|
114
|
-
|
|
86
|
+
createOrUpdateOperationSpec
|
|
87
|
+
);
|
|
115
88
|
}
|
|
116
89
|
|
|
117
90
|
/**
|
|
118
91
|
* Deletes the managementpolicy associated with the specified storage account.
|
|
119
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
120
|
-
*
|
|
121
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
122
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
123
|
-
* letters only.
|
|
124
|
-
* @param [options] The optional parameters
|
|
125
|
-
* @returns Promise<msRest.RestResponse>
|
|
126
|
-
*/
|
|
127
|
-
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
128
|
-
/**
|
|
129
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
130
|
-
* is case insensitive.
|
|
92
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
93
|
+
* case insensitive.
|
|
131
94
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* @param
|
|
95
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
96
|
+
* only.
|
|
97
|
+
* @param managementPolicyName The name of the Storage Account Management Policy. It should always be
|
|
98
|
+
* 'default'
|
|
99
|
+
* @param options The options parameters.
|
|
135
100
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
* letters only.
|
|
143
|
-
* @param options The optional parameters
|
|
144
|
-
* @param callback The callback
|
|
145
|
-
*/
|
|
146
|
-
deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
147
|
-
deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
101
|
+
delete(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
accountName: string,
|
|
104
|
+
managementPolicyName: ManagementPolicyName,
|
|
105
|
+
options?: ManagementPoliciesDeleteOptionalParams
|
|
106
|
+
): Promise<void> {
|
|
148
107
|
return this.client.sendOperationRequest(
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
options
|
|
153
|
-
},
|
|
154
|
-
deleteMethodOperationSpec,
|
|
155
|
-
callback);
|
|
108
|
+
{ resourceGroupName, accountName, managementPolicyName, options },
|
|
109
|
+
deleteOperationSpec
|
|
110
|
+
);
|
|
156
111
|
}
|
|
157
112
|
}
|
|
158
|
-
|
|
159
113
|
// Operation Specifications
|
|
160
|
-
const serializer =
|
|
161
|
-
|
|
114
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
115
|
+
|
|
116
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
117
|
+
path:
|
|
118
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
|
|
162
119
|
httpMethod: "GET",
|
|
163
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
|
|
164
|
-
urlParameters: [
|
|
165
|
-
Parameters.resourceGroupName,
|
|
166
|
-
Parameters.accountName,
|
|
167
|
-
Parameters.subscriptionId,
|
|
168
|
-
Parameters.managementPolicyName
|
|
169
|
-
],
|
|
170
|
-
queryParameters: [
|
|
171
|
-
Parameters.apiVersion
|
|
172
|
-
],
|
|
173
|
-
headerParameters: [
|
|
174
|
-
Parameters.acceptLanguage
|
|
175
|
-
],
|
|
176
120
|
responses: {
|
|
177
121
|
200: {
|
|
178
122
|
bodyMapper: Mappers.ManagementPolicy
|
|
179
|
-
},
|
|
180
|
-
default: {
|
|
181
|
-
bodyMapper: Mappers.CloudError
|
|
182
123
|
}
|
|
183
124
|
},
|
|
184
|
-
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
188
|
-
httpMethod: "PUT",
|
|
189
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
|
|
125
|
+
queryParameters: [Parameters.apiVersion],
|
|
190
126
|
urlParameters: [
|
|
191
|
-
Parameters
|
|
192
|
-
Parameters.accountName,
|
|
127
|
+
Parameters.$host,
|
|
193
128
|
Parameters.subscriptionId,
|
|
129
|
+
Parameters.resourceGroupName,
|
|
130
|
+
Parameters.accountName1,
|
|
194
131
|
Parameters.managementPolicyName
|
|
195
132
|
],
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
parameterPath: {
|
|
204
|
-
policy: "policy"
|
|
205
|
-
},
|
|
206
|
-
mapper: {
|
|
207
|
-
...Mappers.ManagementPolicy,
|
|
208
|
-
required: true
|
|
209
|
-
}
|
|
210
|
-
},
|
|
133
|
+
headerParameters: [Parameters.accept],
|
|
134
|
+
serializer
|
|
135
|
+
};
|
|
136
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
137
|
+
path:
|
|
138
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
|
|
139
|
+
httpMethod: "PUT",
|
|
211
140
|
responses: {
|
|
212
141
|
200: {
|
|
213
142
|
bodyMapper: Mappers.ManagementPolicy
|
|
214
|
-
},
|
|
215
|
-
default: {
|
|
216
|
-
bodyMapper: Mappers.CloudError
|
|
217
143
|
}
|
|
218
144
|
},
|
|
145
|
+
requestBody: Parameters.properties,
|
|
146
|
+
queryParameters: [Parameters.apiVersion],
|
|
147
|
+
urlParameters: [
|
|
148
|
+
Parameters.$host,
|
|
149
|
+
Parameters.subscriptionId,
|
|
150
|
+
Parameters.resourceGroupName,
|
|
151
|
+
Parameters.accountName1,
|
|
152
|
+
Parameters.managementPolicyName
|
|
153
|
+
],
|
|
154
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
155
|
+
mediaType: "json",
|
|
219
156
|
serializer
|
|
220
157
|
};
|
|
221
|
-
|
|
222
|
-
|
|
158
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
159
|
+
path:
|
|
160
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
|
|
223
161
|
httpMethod: "DELETE",
|
|
224
|
-
|
|
162
|
+
responses: { 200: {}, 204: {} },
|
|
163
|
+
queryParameters: [Parameters.apiVersion],
|
|
225
164
|
urlParameters: [
|
|
226
|
-
Parameters
|
|
227
|
-
Parameters.accountName,
|
|
165
|
+
Parameters.$host,
|
|
228
166
|
Parameters.subscriptionId,
|
|
167
|
+
Parameters.resourceGroupName,
|
|
168
|
+
Parameters.accountName1,
|
|
229
169
|
Parameters.managementPolicyName
|
|
230
170
|
],
|
|
231
|
-
queryParameters: [
|
|
232
|
-
Parameters.apiVersion
|
|
233
|
-
],
|
|
234
|
-
headerParameters: [
|
|
235
|
-
Parameters.acceptLanguage
|
|
236
|
-
],
|
|
237
|
-
responses: {
|
|
238
|
-
200: {},
|
|
239
|
-
204: {},
|
|
240
|
-
default: {
|
|
241
|
-
bodyMapper: Mappers.CloudError
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
171
|
serializer
|
|
245
172
|
};
|