@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,44 @@
|
|
|
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 { FileShares } 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
|
+
FileShareItem,
|
|
18
|
+
FileSharesListNextOptionalParams,
|
|
19
|
+
FileSharesListOptionalParams,
|
|
20
|
+
FileSharesListResponse,
|
|
21
|
+
FileShare,
|
|
22
|
+
FileSharesCreateOptionalParams,
|
|
23
|
+
FileSharesCreateResponse,
|
|
24
|
+
FileSharesUpdateOptionalParams,
|
|
25
|
+
FileSharesUpdateResponse,
|
|
26
|
+
FileSharesGetOptionalParams,
|
|
27
|
+
FileSharesGetResponse,
|
|
28
|
+
FileSharesDeleteOptionalParams,
|
|
29
|
+
DeletedShare,
|
|
30
|
+
FileSharesRestoreOptionalParams,
|
|
31
|
+
FileSharesLeaseOptionalParams,
|
|
32
|
+
FileSharesLeaseResponse,
|
|
33
|
+
FileSharesListNextResponse
|
|
34
|
+
} from "../models";
|
|
15
35
|
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
37
|
/** Class representing a FileShares. */
|
|
17
|
-
export class FileShares {
|
|
38
|
+
export class FileSharesImpl implements FileShares {
|
|
18
39
|
private readonly client: StorageManagementClientContext;
|
|
19
40
|
|
|
20
41
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
42
|
+
* Initialize a new instance of the class FileShares class.
|
|
43
|
+
* @param client Reference to the service client
|
|
23
44
|
*/
|
|
24
45
|
constructor(client: StorageManagementClientContext) {
|
|
25
46
|
this.client = client;
|
|
@@ -27,574 +48,296 @@ export class FileShares {
|
|
|
27
48
|
|
|
28
49
|
/**
|
|
29
50
|
* Lists all shares.
|
|
30
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
31
|
-
*
|
|
51
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
52
|
+
* case insensitive.
|
|
32
53
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param
|
|
36
|
-
* @returns Promise<Models.FileSharesListResponse>
|
|
54
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
55
|
+
* only.
|
|
56
|
+
* @param options The options parameters.
|
|
37
57
|
*/
|
|
38
|
-
list(
|
|
58
|
+
public list(
|
|
39
59
|
resourceGroupName: string,
|
|
40
60
|
accountName: string,
|
|
41
|
-
options?:
|
|
42
|
-
):
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* is case insensitive.
|
|
59
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
60
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
61
|
-
* letters only.
|
|
62
|
-
* @param options The optional parameters
|
|
63
|
-
* @param callback The callback
|
|
64
|
-
*/
|
|
65
|
-
list(
|
|
66
|
-
resourceGroupName: string,
|
|
67
|
-
accountName: string,
|
|
68
|
-
options: Models.FileSharesListOptionalParams,
|
|
69
|
-
callback: msRest.ServiceCallback<Models.FileShareItems>
|
|
70
|
-
): void;
|
|
71
|
-
list(
|
|
61
|
+
options?: FileSharesListOptionalParams
|
|
62
|
+
): PagedAsyncIterableIterator<FileShareItem> {
|
|
63
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: () => {
|
|
72
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listPagingPage(
|
|
72
78
|
resourceGroupName: string,
|
|
73
79
|
accountName: string,
|
|
74
|
-
options?:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
options?: FileSharesListOptionalParams
|
|
81
|
+
): AsyncIterableIterator<FileShareItem[]> {
|
|
82
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
83
|
+
yield result.value || [];
|
|
84
|
+
let continuationToken = result.nextLink;
|
|
85
|
+
while (continuationToken) {
|
|
86
|
+
result = await this._listNext(
|
|
79
87
|
resourceGroupName,
|
|
80
88
|
accountName,
|
|
89
|
+
continuationToken,
|
|
81
90
|
options
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
);
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
yield result.value || [];
|
|
94
|
+
}
|
|
86
95
|
}
|
|
87
96
|
|
|
88
|
-
|
|
89
|
-
* Creates a new share under the specified account as described by request body. The share resource
|
|
90
|
-
* includes metadata and properties for that share. It does not include a list of the files
|
|
91
|
-
* contained by the share.
|
|
92
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
93
|
-
* is case insensitive.
|
|
94
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
95
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
96
|
-
* letters only.
|
|
97
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
98
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
99
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
100
|
-
* number.
|
|
101
|
-
* @param fileShare Properties of the file share to create.
|
|
102
|
-
* @param [options] The optional parameters
|
|
103
|
-
* @returns Promise<Models.FileSharesCreateResponse>
|
|
104
|
-
*/
|
|
105
|
-
create(
|
|
97
|
+
private async *listPagingAll(
|
|
106
98
|
resourceGroupName: string,
|
|
107
99
|
accountName: string,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
options?: FileSharesListOptionalParams
|
|
101
|
+
): AsyncIterableIterator<FileShareItem> {
|
|
102
|
+
for await (const page of this.listPagingPage(
|
|
103
|
+
resourceGroupName,
|
|
104
|
+
accountName,
|
|
105
|
+
options
|
|
106
|
+
)) {
|
|
107
|
+
yield* page;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
112
|
+
* Lists all shares.
|
|
113
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
114
|
+
* case insensitive.
|
|
115
115
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* @param
|
|
119
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
120
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
121
|
-
* number.
|
|
122
|
-
* @param fileShare Properties of the file share to create.
|
|
123
|
-
* @param callback The callback
|
|
116
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
117
|
+
* only.
|
|
118
|
+
* @param options The options parameters.
|
|
124
119
|
*/
|
|
125
|
-
|
|
120
|
+
private _list(
|
|
126
121
|
resourceGroupName: string,
|
|
127
122
|
accountName: string,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
options?: FileSharesListOptionalParams
|
|
124
|
+
): Promise<FileSharesListResponse> {
|
|
125
|
+
return this.client.sendOperationRequest(
|
|
126
|
+
{ resourceGroupName, accountName, options },
|
|
127
|
+
listOperationSpec
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
132
131
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
132
|
+
* Creates a new share under the specified account as described by request body. The share resource
|
|
133
|
+
* includes metadata and properties for that share. It does not include a list of the files contained
|
|
134
|
+
* by the share.
|
|
135
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
136
|
+
* case insensitive.
|
|
135
137
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* number.
|
|
138
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
139
|
+
* only.
|
|
140
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
141
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
142
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
142
143
|
* @param fileShare Properties of the file share to create.
|
|
143
|
-
* @param options The
|
|
144
|
-
* @param callback The callback
|
|
144
|
+
* @param options The options parameters.
|
|
145
145
|
*/
|
|
146
146
|
create(
|
|
147
147
|
resourceGroupName: string,
|
|
148
148
|
accountName: string,
|
|
149
149
|
shareName: string,
|
|
150
|
-
fileShare:
|
|
151
|
-
options
|
|
152
|
-
|
|
153
|
-
): void;
|
|
154
|
-
create(
|
|
155
|
-
resourceGroupName: string,
|
|
156
|
-
accountName: string,
|
|
157
|
-
shareName: string,
|
|
158
|
-
fileShare: Models.FileShare,
|
|
159
|
-
options?: Models.FileSharesCreateOptionalParams | msRest.ServiceCallback<Models.FileShare>,
|
|
160
|
-
callback?: msRest.ServiceCallback<Models.FileShare>
|
|
161
|
-
): Promise<Models.FileSharesCreateResponse> {
|
|
150
|
+
fileShare: FileShare,
|
|
151
|
+
options?: FileSharesCreateOptionalParams
|
|
152
|
+
): Promise<FileSharesCreateResponse> {
|
|
162
153
|
return this.client.sendOperationRequest(
|
|
163
|
-
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
shareName,
|
|
167
|
-
fileShare,
|
|
168
|
-
options
|
|
169
|
-
},
|
|
170
|
-
createOperationSpec,
|
|
171
|
-
callback
|
|
172
|
-
) as Promise<Models.FileSharesCreateResponse>;
|
|
154
|
+
{ resourceGroupName, accountName, shareName, fileShare, options },
|
|
155
|
+
createOperationSpec
|
|
156
|
+
);
|
|
173
157
|
}
|
|
174
158
|
|
|
175
159
|
/**
|
|
176
|
-
* Updates share properties as specified in request body. Properties not mentioned in the request
|
|
177
|
-
*
|
|
178
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
179
|
-
*
|
|
160
|
+
* Updates share properties as specified in request body. Properties not mentioned in the request will
|
|
161
|
+
* not be changed. Update fails if the specified share does not already exist.
|
|
162
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
163
|
+
* case insensitive.
|
|
180
164
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* number.
|
|
165
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
166
|
+
* only.
|
|
167
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
168
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
169
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
187
170
|
* @param fileShare Properties to update for the file share.
|
|
188
|
-
* @param
|
|
189
|
-
* @returns Promise<Models.FileSharesUpdateResponse>
|
|
171
|
+
* @param options The options parameters.
|
|
190
172
|
*/
|
|
191
173
|
update(
|
|
192
174
|
resourceGroupName: string,
|
|
193
175
|
accountName: string,
|
|
194
176
|
shareName: string,
|
|
195
|
-
fileShare:
|
|
196
|
-
options?:
|
|
197
|
-
): Promise<
|
|
198
|
-
/**
|
|
199
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
200
|
-
* is case insensitive.
|
|
201
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
202
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
203
|
-
* letters only.
|
|
204
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
205
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
206
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
207
|
-
* number.
|
|
208
|
-
* @param fileShare Properties to update for the file share.
|
|
209
|
-
* @param callback The callback
|
|
210
|
-
*/
|
|
211
|
-
update(
|
|
212
|
-
resourceGroupName: string,
|
|
213
|
-
accountName: string,
|
|
214
|
-
shareName: string,
|
|
215
|
-
fileShare: Models.FileShare,
|
|
216
|
-
callback: msRest.ServiceCallback<Models.FileShare>
|
|
217
|
-
): void;
|
|
218
|
-
/**
|
|
219
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
220
|
-
* is case insensitive.
|
|
221
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
222
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
223
|
-
* letters only.
|
|
224
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
225
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
226
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
227
|
-
* number.
|
|
228
|
-
* @param fileShare Properties to update for the file share.
|
|
229
|
-
* @param options The optional parameters
|
|
230
|
-
* @param callback The callback
|
|
231
|
-
*/
|
|
232
|
-
update(
|
|
233
|
-
resourceGroupName: string,
|
|
234
|
-
accountName: string,
|
|
235
|
-
shareName: string,
|
|
236
|
-
fileShare: Models.FileShare,
|
|
237
|
-
options: msRest.RequestOptionsBase,
|
|
238
|
-
callback: msRest.ServiceCallback<Models.FileShare>
|
|
239
|
-
): void;
|
|
240
|
-
update(
|
|
241
|
-
resourceGroupName: string,
|
|
242
|
-
accountName: string,
|
|
243
|
-
shareName: string,
|
|
244
|
-
fileShare: Models.FileShare,
|
|
245
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.FileShare>,
|
|
246
|
-
callback?: msRest.ServiceCallback<Models.FileShare>
|
|
247
|
-
): Promise<Models.FileSharesUpdateResponse> {
|
|
177
|
+
fileShare: FileShare,
|
|
178
|
+
options?: FileSharesUpdateOptionalParams
|
|
179
|
+
): Promise<FileSharesUpdateResponse> {
|
|
248
180
|
return this.client.sendOperationRequest(
|
|
249
|
-
{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
shareName,
|
|
253
|
-
fileShare,
|
|
254
|
-
options
|
|
255
|
-
},
|
|
256
|
-
updateOperationSpec,
|
|
257
|
-
callback
|
|
258
|
-
) as Promise<Models.FileSharesUpdateResponse>;
|
|
181
|
+
{ resourceGroupName, accountName, shareName, fileShare, options },
|
|
182
|
+
updateOperationSpec
|
|
183
|
+
);
|
|
259
184
|
}
|
|
260
185
|
|
|
261
186
|
/**
|
|
262
187
|
* Gets properties of a specified share.
|
|
263
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
264
|
-
*
|
|
188
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
189
|
+
* case insensitive.
|
|
265
190
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* @param [options] The optional parameters
|
|
273
|
-
* @returns Promise<Models.FileSharesGetResponse>
|
|
191
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
192
|
+
* only.
|
|
193
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
194
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
195
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
196
|
+
* @param options The options parameters.
|
|
274
197
|
*/
|
|
275
198
|
get(
|
|
276
199
|
resourceGroupName: string,
|
|
277
200
|
accountName: string,
|
|
278
201
|
shareName: string,
|
|
279
|
-
options?:
|
|
280
|
-
): Promise<
|
|
281
|
-
/**
|
|
282
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
283
|
-
* is case insensitive.
|
|
284
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
285
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
286
|
-
* letters only.
|
|
287
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
288
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
289
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
290
|
-
* number.
|
|
291
|
-
* @param callback The callback
|
|
292
|
-
*/
|
|
293
|
-
get(
|
|
294
|
-
resourceGroupName: string,
|
|
295
|
-
accountName: string,
|
|
296
|
-
shareName: string,
|
|
297
|
-
callback: msRest.ServiceCallback<Models.FileShare>
|
|
298
|
-
): void;
|
|
299
|
-
/**
|
|
300
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
301
|
-
* is case insensitive.
|
|
302
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
303
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
304
|
-
* letters only.
|
|
305
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
306
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
307
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
308
|
-
* number.
|
|
309
|
-
* @param options The optional parameters
|
|
310
|
-
* @param callback The callback
|
|
311
|
-
*/
|
|
312
|
-
get(
|
|
313
|
-
resourceGroupName: string,
|
|
314
|
-
accountName: string,
|
|
315
|
-
shareName: string,
|
|
316
|
-
options: Models.FileSharesGetOptionalParams,
|
|
317
|
-
callback: msRest.ServiceCallback<Models.FileShare>
|
|
318
|
-
): void;
|
|
319
|
-
get(
|
|
320
|
-
resourceGroupName: string,
|
|
321
|
-
accountName: string,
|
|
322
|
-
shareName: string,
|
|
323
|
-
options?: Models.FileSharesGetOptionalParams | msRest.ServiceCallback<Models.FileShare>,
|
|
324
|
-
callback?: msRest.ServiceCallback<Models.FileShare>
|
|
325
|
-
): Promise<Models.FileSharesGetResponse> {
|
|
202
|
+
options?: FileSharesGetOptionalParams
|
|
203
|
+
): Promise<FileSharesGetResponse> {
|
|
326
204
|
return this.client.sendOperationRequest(
|
|
327
|
-
{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
shareName,
|
|
331
|
-
options
|
|
332
|
-
},
|
|
333
|
-
getOperationSpec,
|
|
334
|
-
callback
|
|
335
|
-
) as Promise<Models.FileSharesGetResponse>;
|
|
205
|
+
{ resourceGroupName, accountName, shareName, options },
|
|
206
|
+
getOperationSpec
|
|
207
|
+
);
|
|
336
208
|
}
|
|
337
209
|
|
|
338
210
|
/**
|
|
339
211
|
* Deletes specified share under its account.
|
|
340
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
341
|
-
*
|
|
212
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
213
|
+
* case insensitive.
|
|
342
214
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
* @param [options] The optional parameters
|
|
350
|
-
* @returns Promise<msRest.RestResponse>
|
|
215
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
216
|
+
* only.
|
|
217
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
218
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
219
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
220
|
+
* @param options The options parameters.
|
|
351
221
|
*/
|
|
352
|
-
|
|
222
|
+
delete(
|
|
353
223
|
resourceGroupName: string,
|
|
354
224
|
accountName: string,
|
|
355
225
|
shareName: string,
|
|
356
|
-
options?:
|
|
357
|
-
): Promise<
|
|
358
|
-
/**
|
|
359
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
360
|
-
* is case insensitive.
|
|
361
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
362
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
363
|
-
* letters only.
|
|
364
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
365
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
366
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
367
|
-
* number.
|
|
368
|
-
* @param callback The callback
|
|
369
|
-
*/
|
|
370
|
-
deleteMethod(
|
|
371
|
-
resourceGroupName: string,
|
|
372
|
-
accountName: string,
|
|
373
|
-
shareName: string,
|
|
374
|
-
callback: msRest.ServiceCallback<void>
|
|
375
|
-
): void;
|
|
376
|
-
/**
|
|
377
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
378
|
-
* is case insensitive.
|
|
379
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
380
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
381
|
-
* letters only.
|
|
382
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
383
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
384
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
385
|
-
* number.
|
|
386
|
-
* @param options The optional parameters
|
|
387
|
-
* @param callback The callback
|
|
388
|
-
*/
|
|
389
|
-
deleteMethod(
|
|
390
|
-
resourceGroupName: string,
|
|
391
|
-
accountName: string,
|
|
392
|
-
shareName: string,
|
|
393
|
-
options: Models.FileSharesDeleteMethodOptionalParams,
|
|
394
|
-
callback: msRest.ServiceCallback<void>
|
|
395
|
-
): void;
|
|
396
|
-
deleteMethod(
|
|
397
|
-
resourceGroupName: string,
|
|
398
|
-
accountName: string,
|
|
399
|
-
shareName: string,
|
|
400
|
-
options?: Models.FileSharesDeleteMethodOptionalParams | msRest.ServiceCallback<void>,
|
|
401
|
-
callback?: msRest.ServiceCallback<void>
|
|
402
|
-
): Promise<msRest.RestResponse> {
|
|
226
|
+
options?: FileSharesDeleteOptionalParams
|
|
227
|
+
): Promise<void> {
|
|
403
228
|
return this.client.sendOperationRequest(
|
|
404
|
-
{
|
|
405
|
-
|
|
406
|
-
accountName,
|
|
407
|
-
shareName,
|
|
408
|
-
options
|
|
409
|
-
},
|
|
410
|
-
deleteMethodOperationSpec,
|
|
411
|
-
callback
|
|
229
|
+
{ resourceGroupName, accountName, shareName, options },
|
|
230
|
+
deleteOperationSpec
|
|
412
231
|
);
|
|
413
232
|
}
|
|
414
233
|
|
|
415
234
|
/**
|
|
416
235
|
* Restore a file share within a valid retention days if share soft delete is enabled
|
|
417
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
418
|
-
*
|
|
236
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
237
|
+
* case insensitive.
|
|
419
238
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
* @param
|
|
427
|
-
* @param deletedShareVersion Required. Identify the version of the deleted share that will be
|
|
428
|
-
* restored.
|
|
429
|
-
* @param [options] The optional parameters
|
|
430
|
-
* @returns Promise<msRest.RestResponse>
|
|
239
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
240
|
+
* only.
|
|
241
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
242
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
243
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
244
|
+
* @param deletedShare The deleted share to be restored.
|
|
245
|
+
* @param options The options parameters.
|
|
431
246
|
*/
|
|
432
247
|
restore(
|
|
433
248
|
resourceGroupName: string,
|
|
434
249
|
accountName: string,
|
|
435
250
|
shareName: string,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
* letters only.
|
|
446
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
447
|
-
* names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
|
|
448
|
-
* (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
|
|
449
|
-
* number.
|
|
450
|
-
* @param deletedShareName Required. Identify the name of the deleted share that will be restored.
|
|
451
|
-
* @param deletedShareVersion Required. Identify the version of the deleted share that will be
|
|
452
|
-
* restored.
|
|
453
|
-
* @param callback The callback
|
|
454
|
-
*/
|
|
455
|
-
restore(
|
|
456
|
-
resourceGroupName: string,
|
|
457
|
-
accountName: string,
|
|
458
|
-
shareName: string,
|
|
459
|
-
deletedShareName: string,
|
|
460
|
-
deletedShareVersion: string,
|
|
461
|
-
callback: msRest.ServiceCallback<void>
|
|
462
|
-
): void;
|
|
251
|
+
deletedShare: DeletedShare,
|
|
252
|
+
options?: FileSharesRestoreOptionalParams
|
|
253
|
+
): Promise<void> {
|
|
254
|
+
return this.client.sendOperationRequest(
|
|
255
|
+
{ resourceGroupName, accountName, shareName, deletedShare, options },
|
|
256
|
+
restoreOperationSpec
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
463
260
|
/**
|
|
464
|
-
*
|
|
465
|
-
*
|
|
261
|
+
* The Lease Share operation establishes and manages a lock on a share for delete operations. The lock
|
|
262
|
+
* duration can be 15 to 60 seconds, or can be infinite.
|
|
263
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
264
|
+
* case insensitive.
|
|
466
265
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
* @param shareName The name of the file share within the specified storage account. File share
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
* @param deletedShareName Required. Identify the name of the deleted share that will be restored.
|
|
474
|
-
* @param deletedShareVersion Required. Identify the version of the deleted share that will be
|
|
475
|
-
* restored.
|
|
476
|
-
* @param options The optional parameters
|
|
477
|
-
* @param callback The callback
|
|
266
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
267
|
+
* only.
|
|
268
|
+
* @param shareName The name of the file share within the specified storage account. File share names
|
|
269
|
+
* must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only.
|
|
270
|
+
* Every dash (-) character must be immediately preceded and followed by a letter or number.
|
|
271
|
+
* @param options The options parameters.
|
|
478
272
|
*/
|
|
479
|
-
|
|
273
|
+
lease(
|
|
480
274
|
resourceGroupName: string,
|
|
481
275
|
accountName: string,
|
|
482
276
|
shareName: string,
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
options: msRest.RequestOptionsBase,
|
|
486
|
-
callback: msRest.ServiceCallback<void>
|
|
487
|
-
): void;
|
|
488
|
-
restore(
|
|
489
|
-
resourceGroupName: string,
|
|
490
|
-
accountName: string,
|
|
491
|
-
shareName: string,
|
|
492
|
-
deletedShareName: string,
|
|
493
|
-
deletedShareVersion: string,
|
|
494
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>,
|
|
495
|
-
callback?: msRest.ServiceCallback<void>
|
|
496
|
-
): Promise<msRest.RestResponse> {
|
|
277
|
+
options?: FileSharesLeaseOptionalParams
|
|
278
|
+
): Promise<FileSharesLeaseResponse> {
|
|
497
279
|
return this.client.sendOperationRequest(
|
|
498
|
-
{
|
|
499
|
-
|
|
500
|
-
accountName,
|
|
501
|
-
shareName,
|
|
502
|
-
deletedShareName,
|
|
503
|
-
deletedShareVersion,
|
|
504
|
-
options
|
|
505
|
-
},
|
|
506
|
-
restoreOperationSpec,
|
|
507
|
-
callback
|
|
280
|
+
{ resourceGroupName, accountName, shareName, options },
|
|
281
|
+
leaseOperationSpec
|
|
508
282
|
);
|
|
509
283
|
}
|
|
510
284
|
|
|
511
285
|
/**
|
|
512
|
-
*
|
|
513
|
-
* @param
|
|
514
|
-
*
|
|
515
|
-
* @
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
): Promise<Models.FileSharesListNextResponse>;
|
|
521
|
-
/**
|
|
522
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
523
|
-
* @param callback The callback
|
|
524
|
-
*/
|
|
525
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.FileShareItems>): void;
|
|
526
|
-
/**
|
|
527
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
528
|
-
* @param options The optional parameters
|
|
529
|
-
* @param callback The callback
|
|
286
|
+
* ListNext
|
|
287
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
288
|
+
* case insensitive.
|
|
289
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
290
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
291
|
+
* only.
|
|
292
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
293
|
+
* @param options The options parameters.
|
|
530
294
|
*/
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
nextPageLink: string,
|
|
538
|
-
options?:
|
|
539
|
-
| Models.FileSharesListNextOptionalParams
|
|
540
|
-
| msRest.ServiceCallback<Models.FileShareItems>,
|
|
541
|
-
callback?: msRest.ServiceCallback<Models.FileShareItems>
|
|
542
|
-
): Promise<Models.FileSharesListNextResponse> {
|
|
295
|
+
private _listNext(
|
|
296
|
+
resourceGroupName: string,
|
|
297
|
+
accountName: string,
|
|
298
|
+
nextLink: string,
|
|
299
|
+
options?: FileSharesListNextOptionalParams
|
|
300
|
+
): Promise<FileSharesListNextResponse> {
|
|
543
301
|
return this.client.sendOperationRequest(
|
|
544
|
-
{
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
},
|
|
548
|
-
listNextOperationSpec,
|
|
549
|
-
callback
|
|
550
|
-
) as Promise<Models.FileSharesListNextResponse>;
|
|
302
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
303
|
+
listNextOperationSpec
|
|
304
|
+
);
|
|
551
305
|
}
|
|
552
306
|
}
|
|
553
|
-
|
|
554
307
|
// Operation Specifications
|
|
555
|
-
const serializer =
|
|
556
|
-
|
|
557
|
-
|
|
308
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
309
|
+
|
|
310
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
558
311
|
path:
|
|
559
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
|
|
560
|
-
|
|
561
|
-
queryParameters: [
|
|
562
|
-
Parameters.apiVersion,
|
|
563
|
-
Parameters.maxpagesize,
|
|
564
|
-
Parameters.filter,
|
|
565
|
-
Parameters.expand2
|
|
566
|
-
],
|
|
567
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
312
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
|
|
313
|
+
httpMethod: "GET",
|
|
568
314
|
responses: {
|
|
569
315
|
200: {
|
|
570
316
|
bodyMapper: Mappers.FileShareItems
|
|
571
317
|
},
|
|
572
318
|
default: {
|
|
573
|
-
bodyMapper: Mappers.
|
|
319
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
574
320
|
}
|
|
575
321
|
},
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
322
|
+
queryParameters: [
|
|
323
|
+
Parameters.apiVersion,
|
|
324
|
+
Parameters.maxpagesize,
|
|
325
|
+
Parameters.filter,
|
|
326
|
+
Parameters.expand2
|
|
327
|
+
],
|
|
583
328
|
urlParameters: [
|
|
329
|
+
Parameters.$host,
|
|
330
|
+
Parameters.subscriptionId,
|
|
584
331
|
Parameters.resourceGroupName,
|
|
585
|
-
Parameters.
|
|
586
|
-
Parameters.shareName,
|
|
587
|
-
Parameters.subscriptionId
|
|
332
|
+
Parameters.accountName1
|
|
588
333
|
],
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
},
|
|
334
|
+
headerParameters: [Parameters.accept],
|
|
335
|
+
serializer
|
|
336
|
+
};
|
|
337
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
338
|
+
path:
|
|
339
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
340
|
+
httpMethod: "PUT",
|
|
598
341
|
responses: {
|
|
599
342
|
200: {
|
|
600
343
|
bodyMapper: Mappers.FileShare
|
|
@@ -603,137 +346,169 @@ const createOperationSpec: msRest.OperationSpec = {
|
|
|
603
346
|
bodyMapper: Mappers.FileShare
|
|
604
347
|
},
|
|
605
348
|
default: {
|
|
606
|
-
bodyMapper: Mappers.
|
|
349
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
607
350
|
}
|
|
608
351
|
},
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
613
|
-
httpMethod: "PATCH",
|
|
614
|
-
path:
|
|
615
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
352
|
+
requestBody: Parameters.fileShare,
|
|
353
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand2],
|
|
616
354
|
urlParameters: [
|
|
355
|
+
Parameters.$host,
|
|
356
|
+
Parameters.subscriptionId,
|
|
617
357
|
Parameters.resourceGroupName,
|
|
618
|
-
Parameters.
|
|
619
|
-
Parameters.shareName
|
|
620
|
-
Parameters.subscriptionId
|
|
358
|
+
Parameters.accountName1,
|
|
359
|
+
Parameters.shareName
|
|
621
360
|
],
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
},
|
|
361
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
362
|
+
mediaType: "json",
|
|
363
|
+
serializer
|
|
364
|
+
};
|
|
365
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
366
|
+
path:
|
|
367
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
368
|
+
httpMethod: "PATCH",
|
|
631
369
|
responses: {
|
|
632
370
|
200: {
|
|
633
371
|
bodyMapper: Mappers.FileShare
|
|
634
372
|
},
|
|
635
373
|
default: {
|
|
636
|
-
bodyMapper: Mappers.
|
|
374
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
637
375
|
}
|
|
638
376
|
},
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
643
|
-
httpMethod: "GET",
|
|
644
|
-
path:
|
|
645
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
377
|
+
requestBody: Parameters.fileShare,
|
|
378
|
+
queryParameters: [Parameters.apiVersion],
|
|
646
379
|
urlParameters: [
|
|
380
|
+
Parameters.$host,
|
|
381
|
+
Parameters.subscriptionId,
|
|
647
382
|
Parameters.resourceGroupName,
|
|
648
|
-
Parameters.
|
|
649
|
-
Parameters.shareName
|
|
650
|
-
Parameters.subscriptionId
|
|
383
|
+
Parameters.accountName1,
|
|
384
|
+
Parameters.shareName
|
|
651
385
|
],
|
|
652
|
-
|
|
653
|
-
|
|
386
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
387
|
+
mediaType: "json",
|
|
388
|
+
serializer
|
|
389
|
+
};
|
|
390
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
391
|
+
path:
|
|
392
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
393
|
+
httpMethod: "GET",
|
|
654
394
|
responses: {
|
|
655
395
|
200: {
|
|
656
396
|
bodyMapper: Mappers.FileShare
|
|
657
397
|
},
|
|
658
398
|
default: {
|
|
659
|
-
bodyMapper: Mappers.
|
|
399
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
660
400
|
}
|
|
661
401
|
},
|
|
662
|
-
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
666
|
-
httpMethod: "DELETE",
|
|
667
|
-
path:
|
|
668
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
402
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand2],
|
|
669
403
|
urlParameters: [
|
|
404
|
+
Parameters.$host,
|
|
405
|
+
Parameters.subscriptionId,
|
|
670
406
|
Parameters.resourceGroupName,
|
|
671
|
-
Parameters.
|
|
672
|
-
Parameters.shareName
|
|
673
|
-
Parameters.subscriptionId
|
|
407
|
+
Parameters.accountName1,
|
|
408
|
+
Parameters.shareName
|
|
674
409
|
],
|
|
675
|
-
|
|
676
|
-
|
|
410
|
+
headerParameters: [Parameters.accept, Parameters.xMsSnapshot],
|
|
411
|
+
serializer
|
|
412
|
+
};
|
|
413
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
414
|
+
path:
|
|
415
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
|
|
416
|
+
httpMethod: "DELETE",
|
|
677
417
|
responses: {
|
|
678
418
|
200: {},
|
|
679
419
|
204: {},
|
|
680
420
|
default: {
|
|
681
|
-
bodyMapper: Mappers.
|
|
421
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
682
422
|
}
|
|
683
423
|
},
|
|
424
|
+
queryParameters: [Parameters.apiVersion, Parameters.include1],
|
|
425
|
+
urlParameters: [
|
|
426
|
+
Parameters.$host,
|
|
427
|
+
Parameters.subscriptionId,
|
|
428
|
+
Parameters.resourceGroupName,
|
|
429
|
+
Parameters.accountName1,
|
|
430
|
+
Parameters.shareName
|
|
431
|
+
],
|
|
432
|
+
headerParameters: [Parameters.accept, Parameters.xMsSnapshot],
|
|
684
433
|
serializer
|
|
685
434
|
};
|
|
686
|
-
|
|
687
|
-
const restoreOperationSpec: msRest.OperationSpec = {
|
|
688
|
-
httpMethod: "POST",
|
|
435
|
+
const restoreOperationSpec: coreClient.OperationSpec = {
|
|
689
436
|
path:
|
|
690
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
|
|
437
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
|
|
438
|
+
httpMethod: "POST",
|
|
439
|
+
responses: {
|
|
440
|
+
200: {},
|
|
441
|
+
default: {
|
|
442
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
requestBody: Parameters.deletedShare,
|
|
446
|
+
queryParameters: [Parameters.apiVersion],
|
|
691
447
|
urlParameters: [
|
|
448
|
+
Parameters.$host,
|
|
449
|
+
Parameters.subscriptionId,
|
|
692
450
|
Parameters.resourceGroupName,
|
|
693
|
-
Parameters.
|
|
694
|
-
Parameters.shareName
|
|
695
|
-
Parameters.subscriptionId
|
|
451
|
+
Parameters.accountName1,
|
|
452
|
+
Parameters.shareName
|
|
696
453
|
],
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
},
|
|
704
|
-
|
|
705
|
-
...Mappers.DeletedShare,
|
|
706
|
-
required: true
|
|
707
|
-
}
|
|
708
|
-
},
|
|
454
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
455
|
+
mediaType: "json",
|
|
456
|
+
serializer
|
|
457
|
+
};
|
|
458
|
+
const leaseOperationSpec: coreClient.OperationSpec = {
|
|
459
|
+
path:
|
|
460
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease",
|
|
461
|
+
httpMethod: "POST",
|
|
709
462
|
responses: {
|
|
710
|
-
200: {
|
|
463
|
+
200: {
|
|
464
|
+
bodyMapper: Mappers.LeaseShareResponse,
|
|
465
|
+
headersMapper: Mappers.FileSharesLeaseHeaders
|
|
466
|
+
},
|
|
711
467
|
default: {
|
|
712
|
-
bodyMapper: Mappers.
|
|
468
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
713
469
|
}
|
|
714
470
|
},
|
|
471
|
+
requestBody: Parameters.parameters9,
|
|
472
|
+
queryParameters: [Parameters.apiVersion],
|
|
473
|
+
urlParameters: [
|
|
474
|
+
Parameters.$host,
|
|
475
|
+
Parameters.subscriptionId,
|
|
476
|
+
Parameters.resourceGroupName,
|
|
477
|
+
Parameters.accountName1,
|
|
478
|
+
Parameters.shareName
|
|
479
|
+
],
|
|
480
|
+
headerParameters: [
|
|
481
|
+
Parameters.accept,
|
|
482
|
+
Parameters.contentType,
|
|
483
|
+
Parameters.xMsSnapshot
|
|
484
|
+
],
|
|
485
|
+
mediaType: "json",
|
|
715
486
|
serializer
|
|
716
487
|
};
|
|
717
|
-
|
|
718
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
719
|
-
httpMethod: "GET",
|
|
720
|
-
baseUrl: "https://management.azure.com",
|
|
488
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
721
489
|
path: "{nextLink}",
|
|
722
|
-
|
|
723
|
-
queryParameters: [
|
|
724
|
-
Parameters.apiVersion,
|
|
725
|
-
Parameters.maxpagesize,
|
|
726
|
-
Parameters.filter,
|
|
727
|
-
Parameters.expand2
|
|
728
|
-
],
|
|
729
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
490
|
+
httpMethod: "GET",
|
|
730
491
|
responses: {
|
|
731
492
|
200: {
|
|
732
493
|
bodyMapper: Mappers.FileShareItems
|
|
733
494
|
},
|
|
734
495
|
default: {
|
|
735
|
-
bodyMapper: Mappers.
|
|
496
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
736
497
|
}
|
|
737
498
|
},
|
|
499
|
+
queryParameters: [
|
|
500
|
+
Parameters.apiVersion,
|
|
501
|
+
Parameters.maxpagesize,
|
|
502
|
+
Parameters.filter,
|
|
503
|
+
Parameters.expand2
|
|
504
|
+
],
|
|
505
|
+
urlParameters: [
|
|
506
|
+
Parameters.$host,
|
|
507
|
+
Parameters.subscriptionId,
|
|
508
|
+
Parameters.resourceGroupName,
|
|
509
|
+
Parameters.accountName1,
|
|
510
|
+
Parameters.nextLink
|
|
511
|
+
],
|
|
512
|
+
headerParameters: [Parameters.accept],
|
|
738
513
|
serializer
|
|
739
514
|
};
|