@azure/arm-storage 17.0.0-alpha.20211015.4 → 17.0.0
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 +6 -21
- package/README.md +15 -9
- package/dist/index.js +474 -591
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/{esm → dist-esm/src}/models/index.d.ts +157 -51
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +13 -1
- package/dist-esm/src/models/index.js.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.d.ts +5 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +214 -32
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +11 -1
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobContainers.d.ts +3 -4
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobContainers.js +9 -6
- package/dist-esm/src/operations/blobContainers.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobInventoryPolicies.d.ts +3 -4
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobInventoryPolicies.js +1 -2
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operations/blobServices.d.ts +3 -4
- package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/blobServices.js +1 -2
- package/dist-esm/src/operations/blobServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/deletedAccounts.d.ts +3 -4
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/deletedAccounts.js +1 -2
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/encryptionScopes.d.ts +3 -4
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/encryptionScopes.js +1 -2
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
- package/{esm → dist-esm/src}/operations/fileServices.d.ts +3 -3
- package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/fileServices.js +1 -1
- package/dist-esm/src/operations/fileServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/fileShares.d.ts +3 -4
- package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/fileShares.js +1 -2
- package/dist-esm/src/operations/fileShares.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +0 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/{esm → dist-esm/src}/operations/managementPolicies.d.ts +3 -3
- package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/managementPolicies.js +1 -1
- package/dist-esm/src/operations/managementPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.d.ts +8 -9
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/objectReplicationPoliciesOperations.js +1 -2
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.js +1 -2
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/privateEndpointConnections.d.ts +3 -4
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/privateEndpointConnections.js +1 -2
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operations/privateLinkResources.d.ts +3 -3
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/privateLinkResources.js +1 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operations/queue.d.ts +3 -4
- package/dist-esm/src/operations/queue.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/queue.js +1 -2
- package/dist-esm/src/operations/queue.js.map +1 -0
- package/{esm → dist-esm/src}/operations/queueServices.d.ts +3 -3
- package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/queueServices.js +1 -1
- package/dist-esm/src/operations/queueServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/skus.d.ts +3 -4
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/skus.js +1 -2
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/{esm/operationsInterfaces → dist-esm/src/operations}/storageAccounts.d.ts +91 -4
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/storageAccounts.js +184 -10
- package/dist-esm/src/operations/storageAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operations/tableOperations.d.ts +9 -10
- package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/tableOperations.js +1 -2
- package/dist-esm/src/operations/tableOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/tableServices.d.ts +3 -3
- package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/tableServices.js +1 -1
- package/dist-esm/src/operations/tableServices.js.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.js +1 -2
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobContainers.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobInventoryPolicies.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/blobServices.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/deletedAccounts.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/encryptionScopes.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/fileShares.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
- package/{esm/operations/index.js.map → dist-esm/src/operationsInterfaces/index.d.ts.map} +1 -1
- package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/managementPolicies.js +0 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +5 -6
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateEndpointConnections.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/privateLinkResources.js +0 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queue.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queue.js +9 -0
- package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queueServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/queueServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/skus.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/{esm/operations → dist-esm/src/operationsInterfaces}/storageAccounts.d.ts +51 -44
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableOperations.d.ts +6 -7
- package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableServices.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/tableServices.js +0 -0
- package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/{esm → dist-esm/src}/storageManagementClient.d.ts +5 -2
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
- package/{esm → dist-esm/src}/storageManagementClient.js +32 -3
- package/dist-esm/src/storageManagementClient.js.map +1 -0
- package/dist-esm/test/storage_examples.d.ts +4 -0
- package/dist-esm/test/storage_examples.d.ts.map +1 -0
- package/dist-esm/test/storage_examples.js +196 -0
- package/dist-esm/test/storage_examples.js.map +1 -0
- package/package.json +27 -33
- package/review/arm-storage.api.md +122 -51
- package/src/index.ts +0 -1
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +167 -52
- package/src/models/mappers.ts +230 -37
- package/src/models/parameters.ts +12 -1
- package/src/operations/blobContainers.ts +13 -12
- package/src/operations/blobInventoryPolicies.ts +4 -5
- package/src/operations/blobServices.ts +4 -5
- package/src/operations/deletedAccounts.ts +4 -5
- package/src/operations/encryptionScopes.ts +4 -5
- package/src/operations/fileServices.ts +4 -4
- package/src/operations/fileShares.ts +4 -5
- package/src/operations/managementPolicies.ts +4 -4
- package/src/operations/objectReplicationPoliciesOperations.ts +21 -22
- package/src/operations/operations.ts +4 -5
- package/src/operations/privateEndpointConnections.ts +4 -5
- package/src/operations/privateLinkResources.ts +4 -4
- package/src/operations/queue.ts +4 -5
- package/src/operations/queueServices.ts +4 -4
- package/src/operations/skus.ts +4 -5
- package/src/operations/storageAccounts.ts +258 -18
- package/src/operations/tableOperations.ts +29 -30
- package/src/operations/tableServices.ts +4 -4
- package/src/operations/usages.ts +4 -5
- package/src/operationsInterfaces/blobContainers.ts +0 -1
- package/src/operationsInterfaces/blobInventoryPolicies.ts +0 -1
- package/src/operationsInterfaces/blobServices.ts +0 -1
- package/src/operationsInterfaces/deletedAccounts.ts +0 -1
- package/src/operationsInterfaces/encryptionScopes.ts +0 -1
- package/src/operationsInterfaces/fileShares.ts +0 -1
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +12 -13
- package/src/operationsInterfaces/operations.ts +0 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
- package/src/operationsInterfaces/queue.ts +0 -1
- package/src/operationsInterfaces/skus.ts +0 -1
- package/src/operationsInterfaces/storageAccounts.ts +68 -1
- package/src/operationsInterfaces/tableOperations.ts +16 -17
- package/src/operationsInterfaces/usages.ts +0 -1
- package/src/storageManagementClient.ts +46 -3
- package/tsconfig.json +2 -3
- package/{esm/index.d.ts → types/arm-storage.d.ts} +247 -94
- package/types/tsdoc-metadata.json +11 -0
- package/esm/coreClientLro.d.ts +0 -26
- package/esm/coreClientLro.d.ts.map +0 -1
- package/esm/coreClientLro.js +0 -186
- package/esm/coreClientLro.js.map +0 -1
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/lro/azureAsyncPolling.d.ts +0 -3
- package/esm/lro/azureAsyncPolling.d.ts.map +0 -1
- package/esm/lro/azureAsyncPolling.js +0 -67
- package/esm/lro/azureAsyncPolling.js.map +0 -1
- package/esm/lro/bodyPolling.d.ts +0 -8
- package/esm/lro/bodyPolling.d.ts.map +0 -1
- package/esm/lro/bodyPolling.js +0 -37
- package/esm/lro/bodyPolling.js.map +0 -1
- package/esm/lro/index.d.ts +0 -4
- package/esm/lro/index.d.ts.map +0 -1
- package/esm/lro/index.js +0 -12
- package/esm/lro/index.js.map +0 -1
- package/esm/lro/locationPolling.d.ts +0 -3
- package/esm/lro/locationPolling.d.ts.map +0 -1
- package/esm/lro/locationPolling.js +0 -19
- package/esm/lro/locationPolling.js.map +0 -1
- package/esm/lro/lroEngine.d.ts +0 -14
- package/esm/lro/lroEngine.d.ts.map +0 -1
- package/esm/lro/lroEngine.js +0 -41
- package/esm/lro/lroEngine.js.map +0 -1
- package/esm/lro/models.d.ts +0 -138
- package/esm/lro/models.d.ts.map +0 -1
- package/esm/lro/models.js +0 -14
- package/esm/lro/models.js.map +0 -1
- package/esm/lro/operation.d.ts +0 -36
- package/esm/lro/operation.d.ts.map +0 -1
- package/esm/lro/operation.js +0 -82
- package/esm/lro/operation.js.map +0 -1
- package/esm/lro/passthrough.d.ts +0 -3
- package/esm/lro/passthrough.d.ts.map +0 -1
- package/esm/lro/passthrough.js +0 -15
- package/esm/lro/passthrough.js.map +0 -1
- package/esm/lro/requestUtils.d.ts +0 -16
- package/esm/lro/requestUtils.d.ts.map +0 -1
- package/esm/lro/requestUtils.js +0 -73
- package/esm/lro/requestUtils.js.map +0 -1
- package/esm/lro/stateMachine.d.ts +0 -18
- package/esm/lro/stateMachine.d.ts.map +0 -1
- package/esm/lro/stateMachine.js +0 -84
- package/esm/lro/stateMachine.js.map +0 -1
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/blobContainers.d.ts.map +0 -1
- package/esm/operations/blobContainers.js.map +0 -1
- package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
- package/esm/operations/blobInventoryPolicies.js.map +0 -1
- package/esm/operations/blobServices.d.ts.map +0 -1
- package/esm/operations/blobServices.js.map +0 -1
- package/esm/operations/deletedAccounts.d.ts.map +0 -1
- package/esm/operations/deletedAccounts.js.map +0 -1
- package/esm/operations/encryptionScopes.d.ts.map +0 -1
- package/esm/operations/encryptionScopes.js.map +0 -1
- package/esm/operations/fileServices.d.ts.map +0 -1
- package/esm/operations/fileServices.js.map +0 -1
- package/esm/operations/fileShares.d.ts.map +0 -1
- package/esm/operations/fileShares.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/managementPolicies.d.ts.map +0 -1
- package/esm/operations/managementPolicies.js.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/queue.d.ts.map +0 -1
- package/esm/operations/queue.js.map +0 -1
- package/esm/operations/queueServices.d.ts.map +0 -1
- package/esm/operations/queueServices.js.map +0 -1
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/storageAccounts.d.ts.map +0 -1
- package/esm/operations/storageAccounts.js.map +0 -1
- package/esm/operations/tableOperations.d.ts.map +0 -1
- package/esm/operations/tableOperations.js.map +0 -1
- package/esm/operations/tableServices.d.ts.map +0 -1
- package/esm/operations/tableServices.js.map +0 -1
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js.map +0 -1
- package/esm/operationsInterfaces/blobContainers.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobContainers.js +0 -9
- package/esm/operationsInterfaces/blobContainers.js.map +0 -1
- package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobInventoryPolicies.js +0 -9
- package/esm/operationsInterfaces/blobInventoryPolicies.js.map +0 -1
- package/esm/operationsInterfaces/blobServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/blobServices.js +0 -9
- package/esm/operationsInterfaces/blobServices.js.map +0 -1
- package/esm/operationsInterfaces/deletedAccounts.d.ts.map +0 -1
- package/esm/operationsInterfaces/deletedAccounts.js +0 -9
- package/esm/operationsInterfaces/deletedAccounts.js.map +0 -1
- package/esm/operationsInterfaces/encryptionScopes.d.ts.map +0 -1
- package/esm/operationsInterfaces/encryptionScopes.js +0 -9
- package/esm/operationsInterfaces/encryptionScopes.js.map +0 -1
- package/esm/operationsInterfaces/fileServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/fileServices.js.map +0 -1
- package/esm/operationsInterfaces/fileShares.d.ts.map +0 -1
- package/esm/operationsInterfaces/fileShares.js +0 -9
- package/esm/operationsInterfaces/fileShares.js.map +0 -1
- package/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/esm/operationsInterfaces/index.js.map +0 -1
- package/esm/operationsInterfaces/managementPolicies.d.ts.map +0 -1
- package/esm/operationsInterfaces/managementPolicies.js.map +0 -1
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +0 -9
- package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/esm/operationsInterfaces/operations.js +0 -9
- package/esm/operationsInterfaces/operations.js.map +0 -1
- package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operationsInterfaces/privateEndpointConnections.js +0 -9
- package/esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/esm/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/esm/operationsInterfaces/queue.d.ts.map +0 -1
- package/esm/operationsInterfaces/queue.js +0 -9
- package/esm/operationsInterfaces/queue.js.map +0 -1
- package/esm/operationsInterfaces/queueServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/queueServices.js.map +0 -1
- package/esm/operationsInterfaces/skus.d.ts.map +0 -1
- package/esm/operationsInterfaces/skus.js +0 -9
- package/esm/operationsInterfaces/skus.js.map +0 -1
- package/esm/operationsInterfaces/storageAccounts.d.ts.map +0 -1
- package/esm/operationsInterfaces/storageAccounts.js +0 -9
- package/esm/operationsInterfaces/storageAccounts.js.map +0 -1
- package/esm/operationsInterfaces/tableOperations.d.ts.map +0 -1
- package/esm/operationsInterfaces/tableOperations.js +0 -9
- package/esm/operationsInterfaces/tableOperations.js.map +0 -1
- package/esm/operationsInterfaces/tableServices.d.ts.map +0 -1
- package/esm/operationsInterfaces/tableServices.js.map +0 -1
- package/esm/operationsInterfaces/usages.d.ts.map +0 -1
- package/esm/operationsInterfaces/usages.js +0 -9
- package/esm/operationsInterfaces/usages.js.map +0 -1
- package/esm/storageManagementClient.d.ts.map +0 -1
- package/esm/storageManagementClient.js.map +0 -1
- package/esm/storageManagementClientContext.d.ts +0 -16
- package/esm/storageManagementClientContext.d.ts.map +0 -1
- package/esm/storageManagementClientContext.js +0 -49
- package/esm/storageManagementClientContext.js.map +0 -1
- package/src/coreClientLro.ts +0 -323
- package/src/lro/azureAsyncPolling.ts +0 -96
- package/src/lro/bodyPolling.ts +0 -54
- package/src/lro/index.ts +0 -26
- package/src/lro/locationPolling.ts +0 -30
- package/src/lro/lroEngine.ts +0 -61
- package/src/lro/models.ts +0 -173
- package/src/lro/operation.ts +0 -120
- package/src/lro/passthrough.ts +0 -23
- package/src/lro/requestUtils.ts +0 -105
- package/src/lro/stateMachine.ts +0 -138
- package/src/storageManagementClientContext.ts +0 -70
|
@@ -6,16 +6,14 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { StorageAccounts } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
16
|
-
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
17
|
-
import {
|
|
18
|
-
import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
19
17
|
import {
|
|
20
18
|
StorageAccount,
|
|
21
19
|
StorageAccountsListNextOptionalParams,
|
|
@@ -48,6 +46,8 @@ import {
|
|
|
48
46
|
StorageAccountsListServiceSASOptionalParams,
|
|
49
47
|
StorageAccountsListServiceSASResponse,
|
|
50
48
|
StorageAccountsFailoverOptionalParams,
|
|
49
|
+
StorageAccountsHierarchicalNamespaceMigrationOptionalParams,
|
|
50
|
+
StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,
|
|
51
51
|
BlobRestoreParameters,
|
|
52
52
|
StorageAccountsRestoreBlobRangesOptionalParams,
|
|
53
53
|
StorageAccountsRestoreBlobRangesResponse,
|
|
@@ -57,15 +57,15 @@ import {
|
|
|
57
57
|
} from "../models";
|
|
58
58
|
|
|
59
59
|
/// <reference lib="esnext.asynciterable" />
|
|
60
|
-
/** Class
|
|
60
|
+
/** Class containing StorageAccounts operations. */
|
|
61
61
|
export class StorageAccountsImpl implements StorageAccounts {
|
|
62
|
-
private readonly client:
|
|
62
|
+
private readonly client: StorageManagementClient;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Initialize a new instance of the class StorageAccounts class.
|
|
66
66
|
* @param client Reference to the service client
|
|
67
67
|
*/
|
|
68
|
-
constructor(client:
|
|
68
|
+
constructor(client: StorageManagementClient) {
|
|
69
69
|
this.client = client;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -247,12 +247,15 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
const lro = new
|
|
250
|
+
const lro = new LroImpl(
|
|
251
251
|
sendOperation,
|
|
252
252
|
{ resourceGroupName, accountName, parameters, options },
|
|
253
253
|
createOperationSpec
|
|
254
254
|
);
|
|
255
|
-
return new LroEngine(lro, {
|
|
255
|
+
return new LroEngine(lro, {
|
|
256
|
+
resumeFrom: options?.resumeFrom,
|
|
257
|
+
intervalInMs: options?.updateIntervalInMs
|
|
258
|
+
});
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
/**
|
|
@@ -523,13 +526,16 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
523
526
|
};
|
|
524
527
|
};
|
|
525
528
|
|
|
526
|
-
const lro = new
|
|
529
|
+
const lro = new LroImpl(
|
|
527
530
|
sendOperation,
|
|
528
531
|
{ resourceGroupName, accountName, options },
|
|
529
|
-
failoverOperationSpec
|
|
530
|
-
"location"
|
|
532
|
+
failoverOperationSpec
|
|
531
533
|
);
|
|
532
|
-
return new LroEngine(lro, {
|
|
534
|
+
return new LroEngine(lro, {
|
|
535
|
+
resumeFrom: options?.resumeFrom,
|
|
536
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
537
|
+
lroResourceLocationConfig: "location"
|
|
538
|
+
});
|
|
533
539
|
}
|
|
534
540
|
|
|
535
541
|
/**
|
|
@@ -556,6 +562,191 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
556
562
|
return poller.pollUntilDone();
|
|
557
563
|
}
|
|
558
564
|
|
|
565
|
+
/**
|
|
566
|
+
* Live Migration of storage account to enable Hns
|
|
567
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
568
|
+
* case insensitive.
|
|
569
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
570
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
571
|
+
* only.
|
|
572
|
+
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
|
|
573
|
+
* namespace validation request 'HnsOnValidationRequest' or a hydration request
|
|
574
|
+
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
|
|
575
|
+
* request will migrate the account.
|
|
576
|
+
* @param options The options parameters.
|
|
577
|
+
*/
|
|
578
|
+
async beginHierarchicalNamespaceMigration(
|
|
579
|
+
resourceGroupName: string,
|
|
580
|
+
accountName: string,
|
|
581
|
+
requestType: string,
|
|
582
|
+
options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
|
|
583
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
584
|
+
const directSendOperation = async (
|
|
585
|
+
args: coreClient.OperationArguments,
|
|
586
|
+
spec: coreClient.OperationSpec
|
|
587
|
+
): Promise<void> => {
|
|
588
|
+
return this.client.sendOperationRequest(args, spec);
|
|
589
|
+
};
|
|
590
|
+
const sendOperation = async (
|
|
591
|
+
args: coreClient.OperationArguments,
|
|
592
|
+
spec: coreClient.OperationSpec
|
|
593
|
+
) => {
|
|
594
|
+
let currentRawResponse:
|
|
595
|
+
| coreClient.FullOperationResponse
|
|
596
|
+
| undefined = undefined;
|
|
597
|
+
const providedCallback = args.options?.onResponse;
|
|
598
|
+
const callback: coreClient.RawResponseCallback = (
|
|
599
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
600
|
+
flatResponse: unknown
|
|
601
|
+
) => {
|
|
602
|
+
currentRawResponse = rawResponse;
|
|
603
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
604
|
+
};
|
|
605
|
+
const updatedArgs = {
|
|
606
|
+
...args,
|
|
607
|
+
options: {
|
|
608
|
+
...args.options,
|
|
609
|
+
onResponse: callback
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
613
|
+
return {
|
|
614
|
+
flatResponse,
|
|
615
|
+
rawResponse: {
|
|
616
|
+
statusCode: currentRawResponse!.status,
|
|
617
|
+
body: currentRawResponse!.parsedBody,
|
|
618
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
const lro = new LroImpl(
|
|
624
|
+
sendOperation,
|
|
625
|
+
{ resourceGroupName, accountName, requestType, options },
|
|
626
|
+
hierarchicalNamespaceMigrationOperationSpec
|
|
627
|
+
);
|
|
628
|
+
return new LroEngine(lro, {
|
|
629
|
+
resumeFrom: options?.resumeFrom,
|
|
630
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
631
|
+
lroResourceLocationConfig: "location"
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Live Migration of storage account to enable Hns
|
|
637
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
638
|
+
* case insensitive.
|
|
639
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
640
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
641
|
+
* only.
|
|
642
|
+
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
|
|
643
|
+
* namespace validation request 'HnsOnValidationRequest' or a hydration request
|
|
644
|
+
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
|
|
645
|
+
* request will migrate the account.
|
|
646
|
+
* @param options The options parameters.
|
|
647
|
+
*/
|
|
648
|
+
async beginHierarchicalNamespaceMigrationAndWait(
|
|
649
|
+
resourceGroupName: string,
|
|
650
|
+
accountName: string,
|
|
651
|
+
requestType: string,
|
|
652
|
+
options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
|
|
653
|
+
): Promise<void> {
|
|
654
|
+
const poller = await this.beginHierarchicalNamespaceMigration(
|
|
655
|
+
resourceGroupName,
|
|
656
|
+
accountName,
|
|
657
|
+
requestType,
|
|
658
|
+
options
|
|
659
|
+
);
|
|
660
|
+
return poller.pollUntilDone();
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Abort live Migration of storage account to enable Hns
|
|
665
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
666
|
+
* case insensitive.
|
|
667
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
668
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
669
|
+
* only.
|
|
670
|
+
* @param options The options parameters.
|
|
671
|
+
*/
|
|
672
|
+
async beginAbortHierarchicalNamespaceMigration(
|
|
673
|
+
resourceGroupName: string,
|
|
674
|
+
accountName: string,
|
|
675
|
+
options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
|
|
676
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
677
|
+
const directSendOperation = async (
|
|
678
|
+
args: coreClient.OperationArguments,
|
|
679
|
+
spec: coreClient.OperationSpec
|
|
680
|
+
): Promise<void> => {
|
|
681
|
+
return this.client.sendOperationRequest(args, spec);
|
|
682
|
+
};
|
|
683
|
+
const sendOperation = async (
|
|
684
|
+
args: coreClient.OperationArguments,
|
|
685
|
+
spec: coreClient.OperationSpec
|
|
686
|
+
) => {
|
|
687
|
+
let currentRawResponse:
|
|
688
|
+
| coreClient.FullOperationResponse
|
|
689
|
+
| undefined = undefined;
|
|
690
|
+
const providedCallback = args.options?.onResponse;
|
|
691
|
+
const callback: coreClient.RawResponseCallback = (
|
|
692
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
693
|
+
flatResponse: unknown
|
|
694
|
+
) => {
|
|
695
|
+
currentRawResponse = rawResponse;
|
|
696
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
697
|
+
};
|
|
698
|
+
const updatedArgs = {
|
|
699
|
+
...args,
|
|
700
|
+
options: {
|
|
701
|
+
...args.options,
|
|
702
|
+
onResponse: callback
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
706
|
+
return {
|
|
707
|
+
flatResponse,
|
|
708
|
+
rawResponse: {
|
|
709
|
+
statusCode: currentRawResponse!.status,
|
|
710
|
+
body: currentRawResponse!.parsedBody,
|
|
711
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
const lro = new LroImpl(
|
|
717
|
+
sendOperation,
|
|
718
|
+
{ resourceGroupName, accountName, options },
|
|
719
|
+
abortHierarchicalNamespaceMigrationOperationSpec
|
|
720
|
+
);
|
|
721
|
+
return new LroEngine(lro, {
|
|
722
|
+
resumeFrom: options?.resumeFrom,
|
|
723
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
724
|
+
lroResourceLocationConfig: "location"
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Abort live Migration of storage account to enable Hns
|
|
730
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
731
|
+
* case insensitive.
|
|
732
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
733
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
734
|
+
* only.
|
|
735
|
+
* @param options The options parameters.
|
|
736
|
+
*/
|
|
737
|
+
async beginAbortHierarchicalNamespaceMigrationAndWait(
|
|
738
|
+
resourceGroupName: string,
|
|
739
|
+
accountName: string,
|
|
740
|
+
options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
|
|
741
|
+
): Promise<void> {
|
|
742
|
+
const poller = await this.beginAbortHierarchicalNamespaceMigration(
|
|
743
|
+
resourceGroupName,
|
|
744
|
+
accountName,
|
|
745
|
+
options
|
|
746
|
+
);
|
|
747
|
+
return poller.pollUntilDone();
|
|
748
|
+
}
|
|
749
|
+
|
|
559
750
|
/**
|
|
560
751
|
* Restore blobs in the specified blob ranges
|
|
561
752
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -616,13 +807,16 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
616
807
|
};
|
|
617
808
|
};
|
|
618
809
|
|
|
619
|
-
const lro = new
|
|
810
|
+
const lro = new LroImpl(
|
|
620
811
|
sendOperation,
|
|
621
812
|
{ resourceGroupName, accountName, parameters, options },
|
|
622
|
-
restoreBlobRangesOperationSpec
|
|
623
|
-
"location"
|
|
813
|
+
restoreBlobRangesOperationSpec
|
|
624
814
|
);
|
|
625
|
-
return new LroEngine(lro, {
|
|
815
|
+
return new LroEngine(lro, {
|
|
816
|
+
resumeFrom: options?.resumeFrom,
|
|
817
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
818
|
+
lroResourceLocationConfig: "location"
|
|
819
|
+
});
|
|
626
820
|
}
|
|
627
821
|
|
|
628
822
|
/**
|
|
@@ -934,6 +1128,52 @@ const failoverOperationSpec: coreClient.OperationSpec = {
|
|
|
934
1128
|
],
|
|
935
1129
|
serializer
|
|
936
1130
|
};
|
|
1131
|
+
const hierarchicalNamespaceMigrationOperationSpec: coreClient.OperationSpec = {
|
|
1132
|
+
path:
|
|
1133
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration",
|
|
1134
|
+
httpMethod: "POST",
|
|
1135
|
+
responses: {
|
|
1136
|
+
200: {},
|
|
1137
|
+
201: {},
|
|
1138
|
+
202: {},
|
|
1139
|
+
204: {},
|
|
1140
|
+
default: {
|
|
1141
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
queryParameters: [Parameters.apiVersion, Parameters.requestType],
|
|
1145
|
+
urlParameters: [
|
|
1146
|
+
Parameters.$host,
|
|
1147
|
+
Parameters.subscriptionId,
|
|
1148
|
+
Parameters.resourceGroupName,
|
|
1149
|
+
Parameters.accountName1
|
|
1150
|
+
],
|
|
1151
|
+
headerParameters: [Parameters.accept],
|
|
1152
|
+
serializer
|
|
1153
|
+
};
|
|
1154
|
+
const abortHierarchicalNamespaceMigrationOperationSpec: coreClient.OperationSpec = {
|
|
1155
|
+
path:
|
|
1156
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration",
|
|
1157
|
+
httpMethod: "POST",
|
|
1158
|
+
responses: {
|
|
1159
|
+
200: {},
|
|
1160
|
+
201: {},
|
|
1161
|
+
202: {},
|
|
1162
|
+
204: {},
|
|
1163
|
+
default: {
|
|
1164
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
queryParameters: [Parameters.apiVersion],
|
|
1168
|
+
urlParameters: [
|
|
1169
|
+
Parameters.$host,
|
|
1170
|
+
Parameters.subscriptionId,
|
|
1171
|
+
Parameters.resourceGroupName,
|
|
1172
|
+
Parameters.accountName1
|
|
1173
|
+
],
|
|
1174
|
+
headerParameters: [Parameters.accept],
|
|
1175
|
+
serializer
|
|
1176
|
+
};
|
|
937
1177
|
const restoreBlobRangesOperationSpec: coreClient.OperationSpec = {
|
|
938
1178
|
path:
|
|
939
1179
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
|
|
@@ -6,38 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { TableOperations } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
16
15
|
import {
|
|
17
16
|
Table,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
TableListNextOptionalParams,
|
|
18
|
+
TableListOptionalParams,
|
|
19
|
+
TableCreateOptionalParams,
|
|
20
|
+
TableCreateResponse,
|
|
21
|
+
TableUpdateOptionalParams,
|
|
22
|
+
TableUpdateResponse,
|
|
23
|
+
TableGetOptionalParams,
|
|
24
|
+
TableGetResponse,
|
|
25
|
+
TableDeleteOptionalParams,
|
|
26
|
+
TableListResponse,
|
|
27
|
+
TableListNextResponse
|
|
29
28
|
} from "../models";
|
|
30
29
|
|
|
31
30
|
/// <reference lib="esnext.asynciterable" />
|
|
32
|
-
/** Class
|
|
31
|
+
/** Class containing TableOperations operations. */
|
|
33
32
|
export class TableOperationsImpl implements TableOperations {
|
|
34
|
-
private readonly client:
|
|
33
|
+
private readonly client: StorageManagementClient;
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* Initialize a new instance of the class TableOperations class.
|
|
38
37
|
* @param client Reference to the service client
|
|
39
38
|
*/
|
|
40
|
-
constructor(client:
|
|
39
|
+
constructor(client: StorageManagementClient) {
|
|
41
40
|
this.client = client;
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -53,7 +52,7 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
53
52
|
public list(
|
|
54
53
|
resourceGroupName: string,
|
|
55
54
|
accountName: string,
|
|
56
|
-
options?:
|
|
55
|
+
options?: TableListOptionalParams
|
|
57
56
|
): PagedAsyncIterableIterator<Table> {
|
|
58
57
|
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
59
58
|
return {
|
|
@@ -72,7 +71,7 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
72
71
|
private async *listPagingPage(
|
|
73
72
|
resourceGroupName: string,
|
|
74
73
|
accountName: string,
|
|
75
|
-
options?:
|
|
74
|
+
options?: TableListOptionalParams
|
|
76
75
|
): AsyncIterableIterator<Table[]> {
|
|
77
76
|
let result = await this._list(resourceGroupName, accountName, options);
|
|
78
77
|
yield result.value || [];
|
|
@@ -92,7 +91,7 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
92
91
|
private async *listPagingAll(
|
|
93
92
|
resourceGroupName: string,
|
|
94
93
|
accountName: string,
|
|
95
|
-
options?:
|
|
94
|
+
options?: TableListOptionalParams
|
|
96
95
|
): AsyncIterableIterator<Table> {
|
|
97
96
|
for await (const page of this.listPagingPage(
|
|
98
97
|
resourceGroupName,
|
|
@@ -119,8 +118,8 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
119
118
|
resourceGroupName: string,
|
|
120
119
|
accountName: string,
|
|
121
120
|
tableName: string,
|
|
122
|
-
options?:
|
|
123
|
-
): Promise<
|
|
121
|
+
options?: TableCreateOptionalParams
|
|
122
|
+
): Promise<TableCreateResponse> {
|
|
124
123
|
return this.client.sendOperationRequest(
|
|
125
124
|
{ resourceGroupName, accountName, tableName, options },
|
|
126
125
|
createOperationSpec
|
|
@@ -143,8 +142,8 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
143
142
|
resourceGroupName: string,
|
|
144
143
|
accountName: string,
|
|
145
144
|
tableName: string,
|
|
146
|
-
options?:
|
|
147
|
-
): Promise<
|
|
145
|
+
options?: TableUpdateOptionalParams
|
|
146
|
+
): Promise<TableUpdateResponse> {
|
|
148
147
|
return this.client.sendOperationRequest(
|
|
149
148
|
{ resourceGroupName, accountName, tableName, options },
|
|
150
149
|
updateOperationSpec
|
|
@@ -167,8 +166,8 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
167
166
|
resourceGroupName: string,
|
|
168
167
|
accountName: string,
|
|
169
168
|
tableName: string,
|
|
170
|
-
options?:
|
|
171
|
-
): Promise<
|
|
169
|
+
options?: TableGetOptionalParams
|
|
170
|
+
): Promise<TableGetResponse> {
|
|
172
171
|
return this.client.sendOperationRequest(
|
|
173
172
|
{ resourceGroupName, accountName, tableName, options },
|
|
174
173
|
getOperationSpec
|
|
@@ -191,7 +190,7 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
191
190
|
resourceGroupName: string,
|
|
192
191
|
accountName: string,
|
|
193
192
|
tableName: string,
|
|
194
|
-
options?:
|
|
193
|
+
options?: TableDeleteOptionalParams
|
|
195
194
|
): Promise<void> {
|
|
196
195
|
return this.client.sendOperationRequest(
|
|
197
196
|
{ resourceGroupName, accountName, tableName, options },
|
|
@@ -211,8 +210,8 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
211
210
|
private _list(
|
|
212
211
|
resourceGroupName: string,
|
|
213
212
|
accountName: string,
|
|
214
|
-
options?:
|
|
215
|
-
): Promise<
|
|
213
|
+
options?: TableListOptionalParams
|
|
214
|
+
): Promise<TableListResponse> {
|
|
216
215
|
return this.client.sendOperationRequest(
|
|
217
216
|
{ resourceGroupName, accountName, options },
|
|
218
217
|
listOperationSpec
|
|
@@ -233,8 +232,8 @@ export class TableOperationsImpl implements TableOperations {
|
|
|
233
232
|
resourceGroupName: string,
|
|
234
233
|
accountName: string,
|
|
235
234
|
nextLink: string,
|
|
236
|
-
options?:
|
|
237
|
-
): Promise<
|
|
235
|
+
options?: TableListNextOptionalParams
|
|
236
|
+
): Promise<TableListNextResponse> {
|
|
238
237
|
return this.client.sendOperationRequest(
|
|
239
238
|
{ resourceGroupName, accountName, nextLink, options },
|
|
240
239
|
listNextOperationSpec
|
|
@@ -10,7 +10,7 @@ import { TableServices } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
TableServicesListOptionalParams,
|
|
16
16
|
TableServicesListResponse,
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
TableServicesGetServicePropertiesResponse
|
|
22
22
|
} from "../models";
|
|
23
23
|
|
|
24
|
-
/** Class
|
|
24
|
+
/** Class containing TableServices operations. */
|
|
25
25
|
export class TableServicesImpl implements TableServices {
|
|
26
|
-
private readonly client:
|
|
26
|
+
private readonly client: StorageManagementClient;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Initialize a new instance of the class TableServices class.
|
|
30
30
|
* @param client Reference to the service client
|
|
31
31
|
*/
|
|
32
|
-
constructor(client:
|
|
32
|
+
constructor(client: StorageManagementClient) {
|
|
33
33
|
this.client = client;
|
|
34
34
|
}
|
|
35
35
|
|
package/src/operations/usages.ts
CHANGED
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { Usages } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
16
15
|
import {
|
|
17
16
|
Usage,
|
|
18
17
|
UsagesListByLocationOptionalParams,
|
|
@@ -20,15 +19,15 @@ import {
|
|
|
20
19
|
} from "../models";
|
|
21
20
|
|
|
22
21
|
/// <reference lib="esnext.asynciterable" />
|
|
23
|
-
/** Class
|
|
22
|
+
/** Class containing Usages operations. */
|
|
24
23
|
export class UsagesImpl implements Usages {
|
|
25
|
-
private readonly client:
|
|
24
|
+
private readonly client: StorageManagementClient;
|
|
26
25
|
|
|
27
26
|
/**
|
|
28
27
|
* Initialize a new instance of the class Usages class.
|
|
29
28
|
* @param client Reference to the service client
|
|
30
29
|
*/
|
|
31
|
-
constructor(client:
|
|
30
|
+
constructor(client: StorageManagementClient) {
|
|
32
31
|
this.client = client;
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
12
11
|
import {
|
|
@@ -6,16 +6,15 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import {
|
|
12
11
|
ObjectReplicationPolicy,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
ObjectReplicationPoliciesListOptionalParams,
|
|
13
|
+
ObjectReplicationPoliciesGetOptionalParams,
|
|
14
|
+
ObjectReplicationPoliciesGetResponse,
|
|
15
|
+
ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
|
|
16
|
+
ObjectReplicationPoliciesCreateOrUpdateResponse,
|
|
17
|
+
ObjectReplicationPoliciesDeleteOptionalParams
|
|
19
18
|
} from "../models";
|
|
20
19
|
|
|
21
20
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -33,7 +32,7 @@ export interface ObjectReplicationPoliciesOperations {
|
|
|
33
32
|
list(
|
|
34
33
|
resourceGroupName: string,
|
|
35
34
|
accountName: string,
|
|
36
|
-
options?:
|
|
35
|
+
options?: ObjectReplicationPoliciesListOptionalParams
|
|
37
36
|
): PagedAsyncIterableIterator<ObjectReplicationPolicy>;
|
|
38
37
|
/**
|
|
39
38
|
* Get the object replication policy of the storage account by policy ID.
|
|
@@ -52,8 +51,8 @@ export interface ObjectReplicationPoliciesOperations {
|
|
|
52
51
|
resourceGroupName: string,
|
|
53
52
|
accountName: string,
|
|
54
53
|
objectReplicationPolicyId: string,
|
|
55
|
-
options?:
|
|
56
|
-
): Promise<
|
|
54
|
+
options?: ObjectReplicationPoliciesGetOptionalParams
|
|
55
|
+
): Promise<ObjectReplicationPoliciesGetResponse>;
|
|
57
56
|
/**
|
|
58
57
|
* Create or update the object replication policy of the storage account.
|
|
59
58
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -74,8 +73,8 @@ export interface ObjectReplicationPoliciesOperations {
|
|
|
74
73
|
accountName: string,
|
|
75
74
|
objectReplicationPolicyId: string,
|
|
76
75
|
properties: ObjectReplicationPolicy,
|
|
77
|
-
options?:
|
|
78
|
-
): Promise<
|
|
76
|
+
options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
|
|
77
|
+
): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse>;
|
|
79
78
|
/**
|
|
80
79
|
* Deletes the object replication policy associated with the specified storage account.
|
|
81
80
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -93,6 +92,6 @@ export interface ObjectReplicationPoliciesOperations {
|
|
|
93
92
|
resourceGroupName: string,
|
|
94
93
|
accountName: string,
|
|
95
94
|
objectReplicationPolicyId: string,
|
|
96
|
-
options?:
|
|
95
|
+
options?: ObjectReplicationPoliciesDeleteOptionalParams
|
|
97
96
|
): Promise<void>;
|
|
98
97
|
}
|