@azure/arm-storage 16.1.1 → 17.0.0-alpha.20211111.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +63 -80
- package/dist/index.js +10964 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/coreClientLro.d.ts +26 -0
- package/esm/coreClientLro.d.ts.map +1 -0
- package/esm/coreClientLro.js +186 -0
- package/esm/coreClientLro.js.map +1 -0
- package/esm/index.d.ts +5002 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/lro/azureAsyncPolling.d.ts +3 -0
- package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
- package/esm/lro/azureAsyncPolling.js +67 -0
- package/esm/lro/azureAsyncPolling.js.map +1 -0
- package/esm/lro/bodyPolling.d.ts +8 -0
- package/esm/lro/bodyPolling.d.ts.map +1 -0
- package/esm/lro/bodyPolling.js +37 -0
- package/esm/lro/bodyPolling.js.map +1 -0
- package/esm/lro/index.d.ts +4 -0
- package/esm/lro/index.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → esm/lro/index.js} +5 -10
- package/esm/lro/index.js.map +1 -0
- package/esm/lro/locationPolling.d.ts +3 -0
- package/esm/lro/locationPolling.d.ts.map +1 -0
- package/esm/lro/locationPolling.js +19 -0
- package/esm/lro/locationPolling.js.map +1 -0
- package/esm/lro/lroEngine.d.ts +14 -0
- package/esm/lro/lroEngine.d.ts.map +1 -0
- package/esm/lro/lroEngine.js +41 -0
- package/esm/lro/lroEngine.js.map +1 -0
- package/esm/lro/models.d.ts +138 -0
- package/esm/lro/models.d.ts.map +1 -0
- package/esm/lro/models.js +14 -0
- package/esm/lro/models.js.map +1 -0
- package/esm/lro/operation.d.ts +36 -0
- package/esm/lro/operation.d.ts.map +1 -0
- package/esm/lro/operation.js +82 -0
- package/esm/lro/operation.js.map +1 -0
- package/esm/lro/passthrough.d.ts +3 -0
- package/esm/lro/passthrough.d.ts.map +1 -0
- package/esm/{models/operationsMappers.js → lro/passthrough.js} +8 -2
- package/esm/lro/passthrough.js.map +1 -0
- package/esm/lro/requestUtils.d.ts +16 -0
- package/esm/lro/requestUtils.d.ts.map +1 -0
- package/esm/lro/requestUtils.js +73 -0
- package/esm/lro/requestUtils.js.map +1 -0
- package/esm/lro/stateMachine.d.ts +18 -0
- package/esm/lro/stateMachine.d.ts.map +1 -0
- package/esm/lro/stateMachine.js +84 -0
- package/esm/lro/stateMachine.js.map +1 -0
- package/esm/models/index.d.ts +2673 -4395
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +331 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +146 -138
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +2734 -2563
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +59 -33
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +267 -159
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/blobContainers.d.ts +213 -561
- package/esm/operations/blobContainers.d.ts.map +1 -1
- package/esm/operations/blobContainers.js +578 -429
- package/esm/operations/blobContainers.js.map +1 -1
- package/esm/operations/blobInventoryPolicies.d.ts +47 -109
- package/esm/operations/blobInventoryPolicies.d.ts.map +1 -1
- package/esm/operations/blobInventoryPolicies.js +163 -105
- package/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/esm/operations/blobServices.d.ts +39 -89
- package/esm/operations/blobServices.d.ts.map +1 -1
- package/esm/operations/blobServices.js +133 -89
- package/esm/operations/blobServices.js.map +1 -1
- package/esm/operations/deletedAccounts.d.ts +20 -47
- package/esm/operations/deletedAccounts.d.ts.map +1 -1
- package/esm/operations/deletedAccounts.js +111 -69
- package/esm/operations/deletedAccounts.js.map +1 -1
- package/esm/operations/encryptionScopes.d.ts +65 -166
- package/esm/operations/encryptionScopes.d.ts.map +1 -1
- package/esm/operations/encryptionScopes.js +211 -131
- package/esm/operations/encryptionScopes.js.map +1 -1
- package/esm/operations/fileServices.d.ts +25 -89
- package/esm/operations/fileServices.d.ts.map +1 -1
- package/esm/operations/fileServices.js +86 -83
- package/esm/operations/fileServices.js.map +1 -1
- package/esm/operations/fileShares.d.ts +100 -256
- package/esm/operations/fileShares.d.ts.map +1 -1
- package/esm/operations/fileShares.js +316 -164
- package/esm/operations/fileShares.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +1 -2
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementPolicies.d.ts +30 -89
- package/esm/operations/managementPolicies.d.ts.map +1 -1
- package/esm/operations/managementPolicies.js +89 -92
- package/esm/operations/managementPolicies.js.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts +54 -130
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
- package/esm/operations/objectReplicationPoliciesOperations.js +170 -102
- package/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/esm/operations/operations.d.ts +14 -15
- package/esm/operations/operations.d.ts.map +1 -1
- package/esm/operations/operations.js +67 -29
- package/esm/operations/operations.js.map +1 -1
- package/esm/operations/privateEndpointConnections.d.ts +46 -126
- package/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/esm/operations/privateEndpointConnections.js +171 -103
- package/esm/operations/privateEndpointConnections.js.map +1 -1
- package/esm/operations/privateLinkResources.d.ts +11 -31
- package/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/esm/operations/privateLinkResources.js +32 -36
- package/esm/operations/privateLinkResources.js.map +1 -1
- package/esm/operations/queue.d.ts +69 -196
- package/esm/operations/queue.d.ts.map +1 -1
- package/esm/operations/queue.js +230 -162
- package/esm/operations/queue.js.map +1 -1
- package/esm/operations/queueServices.d.ts +29 -87
- package/esm/operations/queueServices.d.ts.map +1 -1
- package/esm/operations/queueServices.js +86 -87
- package/esm/operations/queueServices.js.map +1 -1
- package/esm/operations/skus.d.ts +14 -15
- package/esm/operations/skus.d.ts.map +1 -1
- package/esm/operations/skus.js +67 -32
- package/esm/operations/skus.js.map +1 -1
- package/esm/operations/storageAccounts.d.ts +163 -381
- package/esm/operations/storageAccounts.d.ts.map +1 -1
- package/esm/operations/storageAccounts.js +605 -501
- package/esm/operations/storageAccounts.js.map +1 -1
- package/esm/operations/tableOperations.d.ts +67 -184
- package/esm/operations/tableOperations.d.ts.map +1 -1
- package/esm/operations/tableOperations.js +220 -143
- package/esm/operations/tableOperations.js.map +1 -1
- package/esm/operations/tableServices.d.ts +29 -87
- package/esm/operations/tableServices.d.ts.map +1 -1
- package/esm/operations/tableServices.js +86 -87
- package/esm/operations/tableServices.js.map +1 -1
- package/esm/operations/usages.d.ts +15 -18
- package/esm/operations/usages.d.ts.map +1 -1
- package/esm/operations/usages.js +73 -34
- package/esm/operations/usages.js.map +1 -1
- package/esm/operationsInterfaces/blobContainers.d.ts +247 -0
- package/esm/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/{src/models/usagesMappers.ts → esm/operationsInterfaces/blobContainers.js} +2 -7
- package/esm/operationsInterfaces/blobContainers.js.map +1 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts +54 -0
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/esm/{models/usagesMappers.js → operationsInterfaces/blobInventoryPolicies.js} +2 -2
- package/esm/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/esm/operationsInterfaces/blobServices.d.ts +41 -0
- package/esm/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/{src/models/skusMappers.ts → esm/operationsInterfaces/blobServices.js} +2 -8
- package/esm/operationsInterfaces/blobServices.js.map +1 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts +19 -0
- package/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/esm/{models/skusMappers.js → operationsInterfaces/deletedAccounts.js} +2 -2
- package/esm/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts +64 -0
- package/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/esm/operationsInterfaces/encryptionScopes.js +9 -0
- package/esm/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/esm/operationsInterfaces/fileServices.d.ts +39 -0
- package/esm/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileServices.js +9 -0
- package/esm/operationsInterfaces/fileServices.js.map +1 -0
- package/esm/operationsInterfaces/fileShares.d.ts +102 -0
- package/esm/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/esm/operationsInterfaces/fileShares.js +9 -0
- package/esm/operationsInterfaces/fileShares.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +20 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +27 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts +42 -0
- package/esm/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementPolicies.js +9 -0
- package/esm/operationsInterfaces/managementPolicies.js.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +61 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/esm/operationsInterfaces/operations.d.ts +12 -0
- package/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/esm/operationsInterfaces/operations.js +9 -0
- package/esm/operationsInterfaces/operations.js.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/esm/operationsInterfaces/queue.d.ts +71 -0
- package/esm/operationsInterfaces/queue.d.ts.map +1 -0
- package/esm/operationsInterfaces/queue.js +9 -0
- package/esm/operationsInterfaces/queue.js.map +1 -0
- package/esm/operationsInterfaces/queueServices.d.ts +39 -0
- package/esm/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/queueServices.js +9 -0
- package/esm/operationsInterfaces/queueServices.js.map +1 -0
- package/esm/operationsInterfaces/skus.d.ts +12 -0
- package/esm/operationsInterfaces/skus.d.ts.map +1 -0
- package/esm/operationsInterfaces/skus.js +9 -0
- package/esm/operationsInterfaces/skus.js.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts +197 -0
- package/esm/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/esm/operationsInterfaces/storageAccounts.js +9 -0
- package/esm/operationsInterfaces/storageAccounts.js.map +1 -0
- package/esm/operationsInterfaces/tableOperations.d.ts +69 -0
- package/esm/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableOperations.js +9 -0
- package/esm/operationsInterfaces/tableOperations.js.map +1 -0
- package/esm/operationsInterfaces/tableServices.d.ts +39 -0
- package/esm/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/esm/operationsInterfaces/tableServices.js +9 -0
- package/esm/operationsInterfaces/tableServices.js.map +1 -0
- package/esm/operationsInterfaces/usages.d.ts +13 -0
- package/esm/operationsInterfaces/usages.d.ts.map +1 -0
- package/esm/operationsInterfaces/usages.js +9 -0
- package/esm/operationsInterfaces/usages.js.map +1 -0
- package/esm/storageManagementClient.d.ts +26 -35
- package/esm/storageManagementClient.d.ts.map +1 -1
- package/esm/storageManagementClient.js +27 -42
- package/esm/storageManagementClient.js.map +1 -1
- package/esm/storageManagementClientContext.d.ts +10 -16
- package/esm/storageManagementClientContext.d.ts.map +1 -1
- package/esm/storageManagementClientContext.js +32 -44
- package/esm/storageManagementClientContext.js.map +1 -1
- package/package.json +57 -18
- package/review/arm-storage.api.md +2659 -0
- package/rollup.config.js +181 -30
- package/src/coreClientLro.ts +323 -0
- package/src/index.ts +13 -0
- package/src/lro/azureAsyncPolling.ts +96 -0
- package/src/lro/bodyPolling.ts +54 -0
- package/src/lro/index.ts +26 -0
- package/src/lro/locationPolling.ts +30 -0
- package/src/lro/lroEngine.ts +61 -0
- package/src/lro/models.ts +173 -0
- package/src/lro/operation.ts +120 -0
- package/src/lro/passthrough.ts +23 -0
- package/src/lro/requestUtils.ts +105 -0
- package/src/lro/stateMachine.ts +138 -0
- package/src/models/index.ts +2813 -4492
- package/src/models/mappers.ts +2745 -2553
- package/src/models/parameters.ts +354 -160
- package/src/operations/blobContainers.ts +719 -1037
- package/src/operations/blobInventoryPolicies.ts +182 -211
- package/src/operations/blobServices.ts +150 -177
- package/src/operations/deletedAccounts.ts +111 -112
- package/src/operations/encryptionScopes.ts +233 -291
- package/src/operations/fileServices.ts +99 -171
- package/src/operations/fileShares.ts +335 -560
- package/src/operations/index.ts +1 -2
- package/src/operations/managementPolicies.ts +102 -175
- package/src/operations/objectReplicationPoliciesOperations.ts +187 -227
- package/src/operations/operations.ts +61 -38
- package/src/operations/privateEndpointConnections.ts +177 -214
- package/src/operations/privateLinkResources.ts +37 -60
- package/src/operations/queue.ts +269 -365
- package/src/operations/queueServices.ts +103 -173
- package/src/operations/skus.ts +59 -41
- package/src/operations/storageAccounts.ts +779 -872
- package/src/operations/tableOperations.ts +255 -328
- package/src/operations/tableServices.ts +103 -173
- package/src/operations/usages.ts +73 -45
- package/src/operationsInterfaces/blobContainers.ts +366 -0
- package/src/operationsInterfaces/blobInventoryPolicies.ts +92 -0
- package/src/operationsInterfaces/blobServices.ts +70 -0
- package/src/operationsInterfaces/deletedAccounts.ts +39 -0
- package/src/operationsInterfaces/encryptionScopes.ts +103 -0
- package/src/operationsInterfaces/fileServices.ts +68 -0
- package/src/operationsInterfaces/fileShares.ts +163 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/managementPolicies.ts +74 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +98 -0
- package/src/operationsInterfaces/operations.ts +23 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +91 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/operationsInterfaces/queue.ts +117 -0
- package/src/operationsInterfaces/queueServices.ts +68 -0
- package/src/operationsInterfaces/skus.ts +23 -0
- package/src/operationsInterfaces/storageAccounts.ts +320 -0
- package/src/operationsInterfaces/tableOperations.ts +112 -0
- package/src/operationsInterfaces/tableServices.ts +68 -0
- package/src/operationsInterfaces/usages.ts +25 -0
- package/src/storageManagementClient.ts +94 -67
- package/src/storageManagementClientContext.ts +42 -46
- package/tsconfig.json +2 -1
- package/dist/arm-storage.js +0 -10687
- package/dist/arm-storage.js.map +0 -1
- package/dist/arm-storage.min.js +0 -1
- package/dist/arm-storage.min.js.map +0 -1
- package/esm/models/blobContainersMappers.d.ts +0 -2
- package/esm/models/blobContainersMappers.d.ts.map +0 -1
- package/esm/models/blobContainersMappers.js +0 -9
- package/esm/models/blobContainersMappers.js.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
- package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.js +0 -9
- package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
- package/esm/models/blobServicesMappers.d.ts +0 -2
- package/esm/models/blobServicesMappers.d.ts.map +0 -1
- package/esm/models/blobServicesMappers.js +0 -9
- package/esm/models/blobServicesMappers.js.map +0 -1
- package/esm/models/deletedAccountsMappers.d.ts +0 -2
- package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
- package/esm/models/deletedAccountsMappers.js +0 -9
- package/esm/models/deletedAccountsMappers.js.map +0 -1
- package/esm/models/encryptionScopesMappers.d.ts +0 -2
- package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
- package/esm/models/encryptionScopesMappers.js +0 -9
- package/esm/models/encryptionScopesMappers.js.map +0 -1
- package/esm/models/fileServicesMappers.d.ts +0 -2
- package/esm/models/fileServicesMappers.d.ts.map +0 -1
- package/esm/models/fileServicesMappers.js +0 -9
- package/esm/models/fileServicesMappers.js.map +0 -1
- package/esm/models/fileSharesMappers.d.ts +0 -2
- package/esm/models/fileSharesMappers.d.ts.map +0 -1
- package/esm/models/fileSharesMappers.js +0 -9
- package/esm/models/fileSharesMappers.js.map +0 -1
- package/esm/models/managementPoliciesMappers.d.ts +0 -2
- package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/managementPoliciesMappers.js +0 -9
- package/esm/models/managementPoliciesMappers.js.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
- package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/queueMappers.d.ts +0 -2
- package/esm/models/queueMappers.d.ts.map +0 -1
- package/esm/models/queueMappers.js +0 -9
- package/esm/models/queueMappers.js.map +0 -1
- package/esm/models/queueServicesMappers.d.ts +0 -2
- package/esm/models/queueServicesMappers.d.ts.map +0 -1
- package/esm/models/queueServicesMappers.js +0 -9
- package/esm/models/queueServicesMappers.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/models/tableOperationsMappers.d.ts +0 -2
- package/esm/models/tableOperationsMappers.d.ts.map +0 -1
- package/esm/models/tableOperationsMappers.js +0 -9
- package/esm/models/tableOperationsMappers.js.map +0 -1
- package/esm/models/tableServicesMappers.d.ts +0 -2
- package/esm/models/tableServicesMappers.d.ts.map +0 -1
- package/esm/models/tableServicesMappers.js +0 -9
- package/esm/models/tableServicesMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js.map +0 -1
- package/src/models/blobContainersMappers.ts +0 -106
- package/src/models/blobInventoryPoliciesMappers.ts +0 -99
- package/src/models/blobServicesMappers.ts +0 -98
- package/src/models/deletedAccountsMappers.ts +0 -99
- package/src/models/encryptionScopesMappers.ts +0 -100
- package/src/models/fileServicesMappers.ts +0 -98
- package/src/models/fileSharesMappers.ts +0 -99
- package/src/models/managementPoliciesMappers.ts +0 -97
- package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
- package/src/models/privateEndpointConnectionsMappers.ts +0 -100
- package/src/models/privateLinkResourcesMappers.ts +0 -98
- package/src/models/queueMappers.ts +0 -98
- package/src/models/queueServicesMappers.ts +0 -98
- package/src/models/storageAccountsMappers.ts +0 -109
- package/src/models/tableOperationsMappers.ts +0 -98
- package/src/models/tableServicesMappers.ts +0 -98
|
@@ -3,23 +3,36 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { StorageManagementClientContext } from "../storageManagementClientContext";
|
|
16
|
+
import {
|
|
17
|
+
ObjectReplicationPolicy,
|
|
18
|
+
ObjectReplicationPoliciesOperationsListOptionalParams,
|
|
19
|
+
ObjectReplicationPoliciesOperationsListResponse,
|
|
20
|
+
ObjectReplicationPoliciesOperationsGetOptionalParams,
|
|
21
|
+
ObjectReplicationPoliciesOperationsGetResponse,
|
|
22
|
+
ObjectReplicationPoliciesOperationsCreateOrUpdateOptionalParams,
|
|
23
|
+
ObjectReplicationPoliciesOperationsCreateOrUpdateResponse,
|
|
24
|
+
ObjectReplicationPoliciesOperationsDeleteOptionalParams
|
|
25
|
+
} from "../models";
|
|
15
26
|
|
|
27
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
28
|
/** Class representing a ObjectReplicationPoliciesOperations. */
|
|
17
|
-
export class
|
|
29
|
+
export class ObjectReplicationPoliciesOperationsImpl
|
|
30
|
+
implements ObjectReplicationPoliciesOperations {
|
|
18
31
|
private readonly client: StorageManagementClientContext;
|
|
19
32
|
|
|
20
33
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
34
|
+
* Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
|
|
35
|
+
* @param client Reference to the service client
|
|
23
36
|
*/
|
|
24
37
|
constructor(client: StorageManagementClientContext) {
|
|
25
38
|
this.client = client;
|
|
@@ -27,136 +40,122 @@ export class ObjectReplicationPoliciesOperations {
|
|
|
27
40
|
|
|
28
41
|
/**
|
|
29
42
|
* List the object replication policies associated with the storage account.
|
|
30
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
31
|
-
*
|
|
43
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
44
|
+
* case insensitive.
|
|
32
45
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param
|
|
36
|
-
* @returns Promise<Models.ObjectReplicationPoliciesListResponse>
|
|
46
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
47
|
+
* only.
|
|
48
|
+
* @param options The options parameters.
|
|
37
49
|
*/
|
|
38
|
-
list(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
public list(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
accountName: string,
|
|
53
|
+
options?: ObjectReplicationPoliciesOperationsListOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<ObjectReplicationPolicy> {
|
|
55
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listPagingPage(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
accountName: string,
|
|
72
|
+
options?: ObjectReplicationPoliciesOperationsListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<ObjectReplicationPolicy[]> {
|
|
74
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
75
|
+
yield result.value || [];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listPagingAll(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
accountName: string,
|
|
81
|
+
options?: ObjectReplicationPoliciesOperationsListOptionalParams
|
|
82
|
+
): AsyncIterableIterator<ObjectReplicationPolicy> {
|
|
83
|
+
for await (const page of this.listPagingPage(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
accountName,
|
|
86
|
+
options
|
|
87
|
+
)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
48
92
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
93
|
+
* List the object replication policies associated with the storage account.
|
|
94
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
95
|
+
* case insensitive.
|
|
51
96
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* @param options The
|
|
55
|
-
* @param callback The callback
|
|
97
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
98
|
+
* only.
|
|
99
|
+
* @param options The options parameters.
|
|
56
100
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
101
|
+
private _list(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
accountName: string,
|
|
104
|
+
options?: ObjectReplicationPoliciesOperationsListOptionalParams
|
|
105
|
+
): Promise<ObjectReplicationPoliciesOperationsListResponse> {
|
|
59
106
|
return this.client.sendOperationRequest(
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
options
|
|
64
|
-
},
|
|
65
|
-
listOperationSpec,
|
|
66
|
-
callback) as Promise<Models.ObjectReplicationPoliciesListResponse>;
|
|
107
|
+
{ resourceGroupName, accountName, options },
|
|
108
|
+
listOperationSpec
|
|
109
|
+
);
|
|
67
110
|
}
|
|
68
111
|
|
|
69
112
|
/**
|
|
70
113
|
* Get the object replication policy of the storage account by policy ID.
|
|
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 objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
77
|
-
* ID is unknown.
|
|
78
|
-
* @param [options] The optional parameters
|
|
79
|
-
* @returns Promise<Models.ObjectReplicationPoliciesGetResponse>
|
|
80
|
-
*/
|
|
81
|
-
get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesGetResponse>;
|
|
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 objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
89
|
-
* ID is unknown.
|
|
90
|
-
* @param callback The callback
|
|
91
|
-
*/
|
|
92
|
-
get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
|
|
93
|
-
/**
|
|
94
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
95
|
-
* is case insensitive.
|
|
114
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
115
|
+
* case insensitive.
|
|
96
116
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* @param objectReplicationPolicyId
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
117
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
118
|
+
* only.
|
|
119
|
+
* @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
|
|
120
|
+
* the policy on the destination account first. For the source account, provide the value of the policy
|
|
121
|
+
* ID that is returned when you download the policy that was defined on the destination account. The
|
|
122
|
+
* policy is downloaded as a JSON file.
|
|
123
|
+
* @param options The options parameters.
|
|
103
124
|
*/
|
|
104
|
-
get(
|
|
105
|
-
|
|
125
|
+
get(
|
|
126
|
+
resourceGroupName: string,
|
|
127
|
+
accountName: string,
|
|
128
|
+
objectReplicationPolicyId: string,
|
|
129
|
+
options?: ObjectReplicationPoliciesOperationsGetOptionalParams
|
|
130
|
+
): Promise<ObjectReplicationPoliciesOperationsGetResponse> {
|
|
106
131
|
return this.client.sendOperationRequest(
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
objectReplicationPolicyId,
|
|
111
|
-
options
|
|
112
|
-
},
|
|
113
|
-
getOperationSpec,
|
|
114
|
-
callback) as Promise<Models.ObjectReplicationPoliciesGetResponse>;
|
|
132
|
+
{ resourceGroupName, accountName, objectReplicationPolicyId, options },
|
|
133
|
+
getOperationSpec
|
|
134
|
+
);
|
|
115
135
|
}
|
|
116
136
|
|
|
117
137
|
/**
|
|
118
138
|
* Create or update the object replication policy of the 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 objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
125
|
-
* ID is unknown.
|
|
126
|
-
* @param properties The object replication policy set to a storage account. A unique policy ID
|
|
127
|
-
* will be created if absent.
|
|
128
|
-
* @param [options] The optional parameters
|
|
129
|
-
* @returns Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>
|
|
130
|
-
*/
|
|
131
|
-
createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>;
|
|
132
|
-
/**
|
|
133
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
134
|
-
* is case insensitive.
|
|
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 objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
139
|
-
* ID is unknown.
|
|
140
|
-
* @param properties The object replication policy set to a storage account. A unique policy ID
|
|
141
|
-
* will be created if absent.
|
|
142
|
-
* @param callback The callback
|
|
143
|
-
*/
|
|
144
|
-
createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
|
|
145
|
-
/**
|
|
146
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
147
|
-
* is case insensitive.
|
|
139
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
140
|
+
* case insensitive.
|
|
148
141
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* @param objectReplicationPolicyId
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
* @param
|
|
156
|
-
*
|
|
142
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
143
|
+
* only.
|
|
144
|
+
* @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
|
|
145
|
+
* the policy on the destination account first. For the source account, provide the value of the policy
|
|
146
|
+
* ID that is returned when you download the policy that was defined on the destination account. The
|
|
147
|
+
* policy is downloaded as a JSON file.
|
|
148
|
+
* @param properties The object replication policy set to a storage account. A unique policy ID will be
|
|
149
|
+
* created if absent.
|
|
150
|
+
* @param options The options parameters.
|
|
157
151
|
*/
|
|
158
|
-
createOrUpdate(
|
|
159
|
-
|
|
152
|
+
createOrUpdate(
|
|
153
|
+
resourceGroupName: string,
|
|
154
|
+
accountName: string,
|
|
155
|
+
objectReplicationPolicyId: string,
|
|
156
|
+
properties: ObjectReplicationPolicy,
|
|
157
|
+
options?: ObjectReplicationPoliciesOperationsCreateOrUpdateOptionalParams
|
|
158
|
+
): Promise<ObjectReplicationPoliciesOperationsCreateOrUpdateResponse> {
|
|
160
159
|
return this.client.sendOperationRequest(
|
|
161
160
|
{
|
|
162
161
|
resourceGroupName,
|
|
@@ -165,75 +164,42 @@ export class ObjectReplicationPoliciesOperations {
|
|
|
165
164
|
properties,
|
|
166
165
|
options
|
|
167
166
|
},
|
|
168
|
-
createOrUpdateOperationSpec
|
|
169
|
-
|
|
167
|
+
createOrUpdateOperationSpec
|
|
168
|
+
);
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
/**
|
|
173
172
|
* Deletes the object replication policy associated with the specified storage account.
|
|
174
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
175
|
-
*
|
|
173
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
174
|
+
* case insensitive.
|
|
176
175
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* @param objectReplicationPolicyId
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
176
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
177
|
+
* only.
|
|
178
|
+
* @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
|
|
179
|
+
* the policy on the destination account first. For the source account, provide the value of the policy
|
|
180
|
+
* ID that is returned when you download the policy that was defined on the destination account. The
|
|
181
|
+
* policy is downloaded as a JSON file.
|
|
182
|
+
* @param options The options parameters.
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
* letters only.
|
|
191
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
192
|
-
* ID is unknown.
|
|
193
|
-
* @param callback The callback
|
|
194
|
-
*/
|
|
195
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<void>): void;
|
|
196
|
-
/**
|
|
197
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
198
|
-
* is case insensitive.
|
|
199
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
200
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
201
|
-
* letters only.
|
|
202
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
203
|
-
* ID is unknown.
|
|
204
|
-
* @param options The optional parameters
|
|
205
|
-
* @param callback The callback
|
|
206
|
-
*/
|
|
207
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
208
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
184
|
+
delete(
|
|
185
|
+
resourceGroupName: string,
|
|
186
|
+
accountName: string,
|
|
187
|
+
objectReplicationPolicyId: string,
|
|
188
|
+
options?: ObjectReplicationPoliciesOperationsDeleteOptionalParams
|
|
189
|
+
): Promise<void> {
|
|
209
190
|
return this.client.sendOperationRequest(
|
|
210
|
-
{
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
objectReplicationPolicyId,
|
|
214
|
-
options
|
|
215
|
-
},
|
|
216
|
-
deleteMethodOperationSpec,
|
|
217
|
-
callback);
|
|
191
|
+
{ resourceGroupName, accountName, objectReplicationPolicyId, options },
|
|
192
|
+
deleteOperationSpec
|
|
193
|
+
);
|
|
218
194
|
}
|
|
219
195
|
}
|
|
220
|
-
|
|
221
196
|
// Operation Specifications
|
|
222
|
-
const serializer =
|
|
223
|
-
|
|
197
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
198
|
+
|
|
199
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
200
|
+
path:
|
|
201
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
|
|
224
202
|
httpMethod: "GET",
|
|
225
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
|
|
226
|
-
urlParameters: [
|
|
227
|
-
Parameters.resourceGroupName,
|
|
228
|
-
Parameters.accountName,
|
|
229
|
-
Parameters.subscriptionId
|
|
230
|
-
],
|
|
231
|
-
queryParameters: [
|
|
232
|
-
Parameters.apiVersion
|
|
233
|
-
],
|
|
234
|
-
headerParameters: [
|
|
235
|
-
Parameters.acceptLanguage
|
|
236
|
-
],
|
|
237
203
|
responses: {
|
|
238
204
|
200: {
|
|
239
205
|
bodyMapper: Mappers.ObjectReplicationPolicies
|
|
@@ -242,24 +208,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
242
208
|
bodyMapper: Mappers.ErrorResponse
|
|
243
209
|
}
|
|
244
210
|
},
|
|
245
|
-
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
249
|
-
httpMethod: "GET",
|
|
250
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
211
|
+
queryParameters: [Parameters.apiVersion],
|
|
251
212
|
urlParameters: [
|
|
252
|
-
Parameters
|
|
253
|
-
Parameters.accountName,
|
|
213
|
+
Parameters.$host,
|
|
254
214
|
Parameters.subscriptionId,
|
|
255
|
-
Parameters.
|
|
256
|
-
|
|
257
|
-
queryParameters: [
|
|
258
|
-
Parameters.apiVersion
|
|
259
|
-
],
|
|
260
|
-
headerParameters: [
|
|
261
|
-
Parameters.acceptLanguage
|
|
215
|
+
Parameters.resourceGroupName,
|
|
216
|
+
Parameters.accountName1
|
|
262
217
|
],
|
|
218
|
+
headerParameters: [Parameters.accept],
|
|
219
|
+
serializer
|
|
220
|
+
};
|
|
221
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
222
|
+
path:
|
|
223
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
224
|
+
httpMethod: "GET",
|
|
263
225
|
responses: {
|
|
264
226
|
200: {
|
|
265
227
|
bodyMapper: Mappers.ObjectReplicationPolicy
|
|
@@ -268,31 +230,21 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
268
230
|
bodyMapper: Mappers.ErrorResponse
|
|
269
231
|
}
|
|
270
232
|
},
|
|
271
|
-
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
275
|
-
httpMethod: "PUT",
|
|
276
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
233
|
+
queryParameters: [Parameters.apiVersion],
|
|
277
234
|
urlParameters: [
|
|
278
|
-
Parameters
|
|
279
|
-
Parameters.accountName,
|
|
235
|
+
Parameters.$host,
|
|
280
236
|
Parameters.subscriptionId,
|
|
237
|
+
Parameters.resourceGroupName,
|
|
238
|
+
Parameters.accountName1,
|
|
281
239
|
Parameters.objectReplicationPolicyId
|
|
282
240
|
],
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
parameterPath: "properties",
|
|
291
|
-
mapper: {
|
|
292
|
-
...Mappers.ObjectReplicationPolicy,
|
|
293
|
-
required: true
|
|
294
|
-
}
|
|
295
|
-
},
|
|
241
|
+
headerParameters: [Parameters.accept],
|
|
242
|
+
serializer
|
|
243
|
+
};
|
|
244
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
245
|
+
path:
|
|
246
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
247
|
+
httpMethod: "PUT",
|
|
296
248
|
responses: {
|
|
297
249
|
200: {
|
|
298
250
|
bodyMapper: Mappers.ObjectReplicationPolicy
|
|
@@ -301,24 +253,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
301
253
|
bodyMapper: Mappers.ErrorResponse
|
|
302
254
|
}
|
|
303
255
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
308
|
-
httpMethod: "DELETE",
|
|
309
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
256
|
+
requestBody: Parameters.properties3,
|
|
257
|
+
queryParameters: [Parameters.apiVersion],
|
|
310
258
|
urlParameters: [
|
|
311
|
-
Parameters
|
|
312
|
-
Parameters.accountName,
|
|
259
|
+
Parameters.$host,
|
|
313
260
|
Parameters.subscriptionId,
|
|
261
|
+
Parameters.resourceGroupName,
|
|
262
|
+
Parameters.accountName1,
|
|
314
263
|
Parameters.objectReplicationPolicyId
|
|
315
264
|
],
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
265
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
266
|
+
mediaType: "json",
|
|
267
|
+
serializer
|
|
268
|
+
};
|
|
269
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
270
|
+
path:
|
|
271
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
272
|
+
httpMethod: "DELETE",
|
|
322
273
|
responses: {
|
|
323
274
|
200: {},
|
|
324
275
|
204: {},
|
|
@@ -326,5 +277,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
326
277
|
bodyMapper: Mappers.ErrorResponse
|
|
327
278
|
}
|
|
328
279
|
},
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
281
|
+
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
283
|
+
Parameters.subscriptionId,
|
|
284
|
+
Parameters.resourceGroupName,
|
|
285
|
+
Parameters.accountName1,
|
|
286
|
+
Parameters.objectReplicationPolicyId
|
|
287
|
+
],
|
|
288
|
+
headerParameters: [Parameters.accept],
|
|
329
289
|
serializer
|
|
330
290
|
};
|
|
@@ -3,23 +3,30 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import "@azure/core-paging";
|
|
10
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
|
+
import { Operations } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
15
|
import { StorageManagementClientContext } from "../storageManagementClientContext";
|
|
16
|
+
import {
|
|
17
|
+
Operation,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse
|
|
20
|
+
} from "../models";
|
|
15
21
|
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
23
|
/** Class representing a Operations. */
|
|
17
|
-
export class Operations {
|
|
24
|
+
export class OperationsImpl implements Operations {
|
|
18
25
|
private readonly client: StorageManagementClientContext;
|
|
19
26
|
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
28
|
+
* Initialize a new instance of the class Operations class.
|
|
29
|
+
* @param client Reference to the service client
|
|
23
30
|
*/
|
|
24
31
|
constructor(client: StorageManagementClientContext) {
|
|
25
32
|
this.client = client;
|
|
@@ -27,47 +34,63 @@ export class Operations {
|
|
|
27
34
|
|
|
28
35
|
/**
|
|
29
36
|
* Lists all of the available Storage Rest API operations.
|
|
30
|
-
* @param
|
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
37
|
+
* @param options The options parameters.
|
|
32
38
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
public list(
|
|
40
|
+
options?: OperationsListOptionalParams
|
|
41
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
42
|
+
const iter = this.listPagingAll(options);
|
|
43
|
+
return {
|
|
44
|
+
next() {
|
|
45
|
+
return iter.next();
|
|
46
|
+
},
|
|
47
|
+
[Symbol.asyncIterator]() {
|
|
48
|
+
return this;
|
|
49
|
+
},
|
|
50
|
+
byPage: () => {
|
|
51
|
+
return this.listPagingPage(options);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private async *listPagingPage(
|
|
57
|
+
options?: OperationsListOptionalParams
|
|
58
|
+
): AsyncIterableIterator<Operation[]> {
|
|
59
|
+
let result = await this._list(options);
|
|
60
|
+
yield result.value || [];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private async *listPagingAll(
|
|
64
|
+
options?: OperationsListOptionalParams
|
|
65
|
+
): AsyncIterableIterator<Operation> {
|
|
66
|
+
for await (const page of this.listPagingPage(options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
38
71
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
72
|
+
* Lists all of the available Storage Rest API operations.
|
|
73
|
+
* @param options The options parameters.
|
|
41
74
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
options
|
|
47
|
-
},
|
|
48
|
-
listOperationSpec,
|
|
49
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
75
|
+
private _list(
|
|
76
|
+
options?: OperationsListOptionalParams
|
|
77
|
+
): Promise<OperationsListResponse> {
|
|
78
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
50
79
|
}
|
|
51
80
|
}
|
|
52
|
-
|
|
53
81
|
// Operation Specifications
|
|
54
|
-
const serializer =
|
|
55
|
-
|
|
82
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
83
|
+
|
|
84
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
85
|
+
path: "/providers/Microsoft.Storage/operations",
|
|
56
86
|
httpMethod: "GET",
|
|
57
|
-
path: "providers/Microsoft.Storage/operations",
|
|
58
|
-
queryParameters: [
|
|
59
|
-
Parameters.apiVersion
|
|
60
|
-
],
|
|
61
|
-
headerParameters: [
|
|
62
|
-
Parameters.acceptLanguage
|
|
63
|
-
],
|
|
64
87
|
responses: {
|
|
65
88
|
200: {
|
|
66
89
|
bodyMapper: Mappers.OperationListResult
|
|
67
|
-
},
|
|
68
|
-
default: {
|
|
69
|
-
bodyMapper: Mappers.CloudError
|
|
70
90
|
}
|
|
71
91
|
},
|
|
92
|
+
queryParameters: [Parameters.apiVersion],
|
|
93
|
+
urlParameters: [Parameters.$host],
|
|
94
|
+
headerParameters: [Parameters.accept],
|
|
72
95
|
serializer
|
|
73
96
|
};
|