@azure/arm-storage 16.1.2 → 17.0.0-alpha.20211206.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +69 -80
- package/dist/index.js +10847 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +3500 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +351 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +150 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +2840 -2487
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +61 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +273 -155
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/blobContainers.d.ts +278 -0
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
- package/dist-esm/src/operations/blobContainers.js +721 -0
- package/dist-esm/src/operations/blobContainers.js.map +1 -0
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
- package/dist-esm/src/operations/blobServices.d.ts +60 -0
- package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
- package/dist-esm/src/operations/blobServices.js +170 -0
- package/dist-esm/src/operations/blobServices.js.map +1 -0
- package/dist-esm/src/operations/deletedAccounts.d.ts +39 -0
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/deletedAccounts.js +154 -0
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
- package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operations/encryptionScopes.js +278 -0
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
- package/dist-esm/src/operations/fileServices.d.ts +47 -0
- package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
- package/dist-esm/src/operations/fileServices.js +130 -0
- package/dist-esm/src/operations/fileServices.js.map +1 -0
- package/dist-esm/src/operations/fileShares.d.ts +132 -0
- package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
- package/dist-esm/src/operations/fileShares.js +398 -0
- package/dist-esm/src/operations/fileShares.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
- package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/managementPolicies.js +126 -0
- package/dist-esm/src/operations/managementPolicies.js.map +1 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +80 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +228 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +87 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/queue.d.ts +101 -0
- package/dist-esm/src/operations/queue.d.ts.map +1 -0
- package/dist-esm/src/operations/queue.js +306 -0
- package/dist-esm/src/operations/queue.js.map +1 -0
- package/dist-esm/src/operations/queueServices.d.ts +47 -0
- package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
- package/dist-esm/src/operations/queueServices.js +130 -0
- package/dist-esm/src/operations/queueServices.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +26 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +87 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/storageAccounts.d.ts +284 -0
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/storageAccounts.js +920 -0
- package/dist-esm/src/operations/storageAccounts.js.map +1 -0
- package/dist-esm/src/operations/tableOperations.d.ts +99 -0
- package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/tableOperations.js +292 -0
- package/dist-esm/src/operations/tableOperations.js.map +1 -0
- package/dist-esm/src/operations/tableServices.d.ts +47 -0
- package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
- package/dist-esm/src/operations/tableServices.js +130 -0
- package/dist-esm/src/operations/tableServices.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +28 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +93 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +246 -0
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
- package/{src/models/usagesMappers.ts → dist-esm/src/operationsInterfaces/blobContainers.js} +2 -7
- package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/{esm/models/usagesMappers.js → dist-esm/src/operationsInterfaces/blobInventoryPolicies.js} +2 -2
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobServices.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
- package/{src/models/skusMappers.ts → dist-esm/src/operationsInterfaces/blobServices.js} +2 -8
- package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileServices.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileShares.d.ts +101 -0
- package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
- package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +27 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +60 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/queue.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queue.js +9 -0
- package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/queueServices.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queueServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/skus.js} +2 -1
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +244 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableServices.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tableServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/storageManagementClient.d.ts +36 -0
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
- package/dist-esm/src/storageManagementClient.js +69 -0
- package/dist-esm/src/storageManagementClient.js.map +1 -0
- package/dist-esm/test/storage_examples.d.ts +4 -0
- package/dist-esm/test/storage_examples.d.ts.map +1 -0
- package/dist-esm/test/storage_examples.js +196 -0
- package/dist-esm/test/storage_examples.js.map +1 -0
- package/package.json +64 -21
- package/review/arm-storage.api.md +2730 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -9
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2869 -4433
- package/src/models/mappers.ts +2917 -2532
- package/src/models/parameters.ts +361 -156
- package/src/operations/blobContainers.ts +724 -1041
- package/src/operations/blobInventoryPolicies.ts +185 -215
- package/src/operations/blobServices.ts +153 -181
- package/src/operations/deletedAccounts.ts +114 -116
- package/src/operations/encryptionScopes.ts +236 -295
- package/src/operations/fileServices.ts +103 -175
- package/src/operations/fileShares.ts +338 -564
- package/src/operations/index.ts +1 -2
- package/src/operations/managementPolicies.ts +106 -179
- package/src/operations/objectReplicationPoliciesOperations.ts +190 -231
- package/src/operations/operations.ts +64 -42
- package/src/operations/privateEndpointConnections.ts +180 -218
- package/src/operations/privateLinkResources.ts +41 -64
- package/src/operations/queue.ts +272 -369
- package/src/operations/queueServices.ts +107 -177
- package/src/operations/skus.ts +62 -45
- package/src/operations/storageAccounts.ts +978 -831
- package/src/operations/tableOperations.ts +258 -332
- package/src/operations/tableServices.ts +107 -177
- package/src/operations/usages.ts +76 -49
- package/src/operationsInterfaces/blobContainers.ts +365 -0
- package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
- package/src/operationsInterfaces/blobServices.ts +69 -0
- package/src/operationsInterfaces/deletedAccounts.ts +38 -0
- package/src/operationsInterfaces/encryptionScopes.ts +102 -0
- package/src/operationsInterfaces/fileServices.ts +68 -0
- package/src/operationsInterfaces/fileShares.ts +162 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/managementPolicies.ts +74 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +97 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/operationsInterfaces/queue.ts +116 -0
- package/src/operationsInterfaces/queueServices.ts +68 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/storageAccounts.ts +387 -0
- package/src/operationsInterfaces/tableOperations.ts +111 -0
- package/src/operationsInterfaces/tableServices.ts +68 -0
- package/src/operationsInterfaces/usages.ts +24 -0
- package/src/storageManagementClient.ts +138 -68
- package/tsconfig.json +3 -3
- package/types/arm-storage.d.ts +5155 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-storage.js +0 -10687
- package/dist/arm-storage.js.map +0 -1
- package/dist/arm-storage.min.js +0 -1
- package/dist/arm-storage.min.js.map +0 -1
- package/esm/models/blobContainersMappers.d.ts +0 -2
- package/esm/models/blobContainersMappers.d.ts.map +0 -1
- package/esm/models/blobContainersMappers.js +0 -9
- package/esm/models/blobContainersMappers.js.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
- package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
- package/esm/models/blobInventoryPoliciesMappers.js +0 -9
- package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
- package/esm/models/blobServicesMappers.d.ts +0 -2
- package/esm/models/blobServicesMappers.d.ts.map +0 -1
- package/esm/models/blobServicesMappers.js +0 -9
- package/esm/models/blobServicesMappers.js.map +0 -1
- package/esm/models/deletedAccountsMappers.d.ts +0 -2
- package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
- package/esm/models/deletedAccountsMappers.js +0 -9
- package/esm/models/deletedAccountsMappers.js.map +0 -1
- package/esm/models/encryptionScopesMappers.d.ts +0 -2
- package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
- package/esm/models/encryptionScopesMappers.js +0 -9
- package/esm/models/encryptionScopesMappers.js.map +0 -1
- package/esm/models/fileServicesMappers.d.ts +0 -2
- package/esm/models/fileServicesMappers.d.ts.map +0 -1
- package/esm/models/fileServicesMappers.js +0 -9
- package/esm/models/fileServicesMappers.js.map +0 -1
- package/esm/models/fileSharesMappers.d.ts +0 -2
- package/esm/models/fileSharesMappers.d.ts.map +0 -1
- package/esm/models/fileSharesMappers.js +0 -9
- package/esm/models/fileSharesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -5116
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/managementPoliciesMappers.d.ts +0 -2
- package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/managementPoliciesMappers.js +0 -9
- package/esm/models/managementPoliciesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -139
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
- package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -34
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/queueMappers.d.ts +0 -2
- package/esm/models/queueMappers.d.ts.map +0 -1
- package/esm/models/queueMappers.js +0 -9
- package/esm/models/queueMappers.js.map +0 -1
- package/esm/models/queueServicesMappers.d.ts +0 -2
- package/esm/models/queueServicesMappers.d.ts.map +0 -1
- package/esm/models/queueServicesMappers.js +0 -9
- package/esm/models/queueServicesMappers.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js +0 -9
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/models/tableOperationsMappers.d.ts +0 -2
- package/esm/models/tableOperationsMappers.d.ts.map +0 -1
- package/esm/models/tableOperationsMappers.js +0 -9
- package/esm/models/tableOperationsMappers.js.map +0 -1
- package/esm/models/tableServicesMappers.d.ts +0 -2
- package/esm/models/tableServicesMappers.d.ts.map +0 -1
- package/esm/models/tableServicesMappers.js +0 -9
- package/esm/models/tableServicesMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/operations/blobContainers.d.ts +0 -627
- package/esm/operations/blobContainers.d.ts.map +0 -1
- package/esm/operations/blobContainers.js +0 -569
- package/esm/operations/blobContainers.js.map +0 -1
- package/esm/operations/blobInventoryPolicies.d.ts +0 -136
- package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
- package/esm/operations/blobInventoryPolicies.js +0 -164
- package/esm/operations/blobInventoryPolicies.js.map +0 -1
- package/esm/operations/blobServices.d.ts +0 -111
- package/esm/operations/blobServices.d.ts.map +0 -1
- package/esm/operations/blobServices.js +0 -127
- package/esm/operations/blobServices.js.map +0 -1
- package/esm/operations/deletedAccounts.d.ts +0 -67
- package/esm/operations/deletedAccounts.d.ts.map +0 -1
- package/esm/operations/deletedAccounts.js +0 -113
- package/esm/operations/deletedAccounts.js.map +0 -1
- package/esm/operations/encryptionScopes.d.ts +0 -196
- package/esm/operations/encryptionScopes.d.ts.map +0 -1
- package/esm/operations/encryptionScopes.js +0 -199
- package/esm/operations/encryptionScopes.js.map +0 -1
- package/esm/operations/fileServices.d.ts +0 -111
- package/esm/operations/fileServices.d.ts.map +0 -1
- package/esm/operations/fileServices.js +0 -127
- package/esm/operations/fileServices.js.map +0 -1
- package/esm/operations/fileShares.d.ts +0 -289
- package/esm/operations/fileShares.d.ts.map +0 -1
- package/esm/operations/fileShares.js +0 -247
- package/esm/operations/fileShares.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managementPolicies.d.ts +0 -109
- package/esm/operations/managementPolicies.d.ts.map +0 -1
- package/esm/operations/managementPolicies.js +0 -129
- package/esm/operations/managementPolicies.js.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.js +0 -161
- package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -154
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -161
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -43
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -57
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/queue.d.ts +0 -229
- package/esm/operations/queue.d.ts.map +0 -1
- package/esm/operations/queue.js +0 -239
- package/esm/operations/queue.js.map +0 -1
- package/esm/operations/queueServices.d.ts +0 -105
- package/esm/operations/queueServices.d.ts.map +0 -1
- package/esm/operations/queueServices.js +0 -131
- package/esm/operations/queueServices.js.map +0 -1
- package/esm/operations/skus.d.ts +0 -28
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js +0 -53
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/storageAccounts.d.ts +0 -455
- package/esm/operations/storageAccounts.d.ts.map +0 -1
- package/esm/operations/storageAccounts.js +0 -642
- package/esm/operations/storageAccounts.js.map +0 -1
- package/esm/operations/tableOperations.d.ts +0 -217
- package/esm/operations/tableOperations.d.ts.map +0 -1
- package/esm/operations/tableOperations.js +0 -216
- package/esm/operations/tableOperations.js.map +0 -1
- package/esm/operations/tableServices.d.ts +0 -105
- package/esm/operations/tableServices.d.ts.map +0 -1
- package/esm/operations/tableServices.js +0 -131
- package/esm/operations/tableServices.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -32
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -55
- package/esm/operations/usages.js.map +0 -1
- package/esm/storageManagementClient.d.ts +0 -42
- package/esm/storageManagementClient.d.ts.map +0 -1
- package/esm/storageManagementClient.js +0 -55
- package/esm/storageManagementClient.js.map +0 -1
- package/esm/storageManagementClientContext.d.ts +0 -22
- package/esm/storageManagementClientContext.d.ts.map +0 -1
- package/esm/storageManagementClientContext.js +0 -61
- package/esm/storageManagementClientContext.js.map +0 -1
- package/src/models/blobContainersMappers.ts +0 -106
- package/src/models/blobInventoryPoliciesMappers.ts +0 -99
- package/src/models/blobServicesMappers.ts +0 -98
- package/src/models/deletedAccountsMappers.ts +0 -99
- package/src/models/encryptionScopesMappers.ts +0 -100
- package/src/models/fileServicesMappers.ts +0 -98
- package/src/models/fileSharesMappers.ts +0 -99
- package/src/models/managementPoliciesMappers.ts +0 -97
- package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
- package/src/models/privateEndpointConnectionsMappers.ts +0 -100
- package/src/models/privateLinkResourcesMappers.ts +0 -98
- package/src/models/queueMappers.ts +0 -98
- package/src/models/queueServicesMappers.ts +0 -98
- package/src/models/storageAccountsMappers.ts +0 -109
- package/src/models/tableOperationsMappers.ts +0 -98
- package/src/models/tableServicesMappers.ts +0 -98
- package/src/storageManagementClientContext.ts +0 -74
|
@@ -3,241 +3,171 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { TableServices } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
TableServicesListOptionalParams,
|
|
16
|
+
TableServicesListResponse,
|
|
17
|
+
TableServiceProperties,
|
|
18
|
+
TableServicesSetServicePropertiesOptionalParams,
|
|
19
|
+
TableServicesSetServicePropertiesResponse,
|
|
20
|
+
TableServicesGetServicePropertiesOptionalParams,
|
|
21
|
+
TableServicesGetServicePropertiesResponse
|
|
22
|
+
} from "../models";
|
|
15
23
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class TableServices {
|
|
18
|
-
private readonly client:
|
|
24
|
+
/** Class containing TableServices operations. */
|
|
25
|
+
export class TableServicesImpl implements TableServices {
|
|
26
|
+
private readonly client: StorageManagementClient;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class TableServices class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
|
-
constructor(client:
|
|
32
|
+
constructor(client: StorageManagementClient) {
|
|
25
33
|
this.client = client;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* List all table services for the storage account.
|
|
30
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
31
|
-
*
|
|
38
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
39
|
+
* case insensitive.
|
|
32
40
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @param
|
|
36
|
-
* @returns Promise<Models.TableServicesListResponse>
|
|
41
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
42
|
+
* only.
|
|
43
|
+
* @param options The options parameters.
|
|
37
44
|
*/
|
|
38
|
-
list(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
44
|
-
* letters only.
|
|
45
|
-
* @param callback The callback
|
|
46
|
-
*/
|
|
47
|
-
list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ListTableServices>): void;
|
|
48
|
-
/**
|
|
49
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
50
|
-
* is case insensitive.
|
|
51
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
52
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
53
|
-
* letters only.
|
|
54
|
-
* @param options The optional parameters
|
|
55
|
-
* @param callback The callback
|
|
56
|
-
*/
|
|
57
|
-
list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ListTableServices>): void;
|
|
58
|
-
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListTableServices>, callback?: msRest.ServiceCallback<Models.ListTableServices>): Promise<Models.TableServicesListResponse> {
|
|
45
|
+
list(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
accountName: string,
|
|
48
|
+
options?: TableServicesListOptionalParams
|
|
49
|
+
): Promise<TableServicesListResponse> {
|
|
59
50
|
return this.client.sendOperationRequest(
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
options
|
|
64
|
-
},
|
|
65
|
-
listOperationSpec,
|
|
66
|
-
callback) as Promise<Models.TableServicesListResponse>;
|
|
51
|
+
{ resourceGroupName, accountName, options },
|
|
52
|
+
listOperationSpec
|
|
53
|
+
);
|
|
67
54
|
}
|
|
68
55
|
|
|
69
56
|
/**
|
|
70
|
-
* Sets the properties of a storage account’s Table service, including properties for Storage
|
|
71
|
-
*
|
|
72
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
73
|
-
*
|
|
74
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
75
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
76
|
-
* letters only.
|
|
77
|
-
* @param [options] The optional parameters
|
|
78
|
-
* @returns Promise<Models.TableServicesSetServicePropertiesResponse>
|
|
79
|
-
*/
|
|
80
|
-
setServiceProperties(resourceGroupName: string, accountName: string, options?: Models.TableServicesSetServicePropertiesOptionalParams): Promise<Models.TableServicesSetServicePropertiesResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
83
|
-
* is case insensitive.
|
|
57
|
+
* Sets the properties of a storage account’s Table service, including properties for Storage Analytics
|
|
58
|
+
* and CORS (Cross-Origin Resource Sharing) rules.
|
|
59
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
60
|
+
* case insensitive.
|
|
84
61
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* @param
|
|
62
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
63
|
+
* only.
|
|
64
|
+
* @param parameters The properties of a storage account’s Table service, only properties for Storage
|
|
65
|
+
* Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.
|
|
66
|
+
* @param options The options parameters.
|
|
88
67
|
*/
|
|
89
|
-
setServiceProperties(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* letters only.
|
|
96
|
-
* @param options The optional parameters
|
|
97
|
-
* @param callback The callback
|
|
98
|
-
*/
|
|
99
|
-
setServiceProperties(resourceGroupName: string, accountName: string, options: Models.TableServicesSetServicePropertiesOptionalParams, callback: msRest.ServiceCallback<Models.TableServiceProperties>): void;
|
|
100
|
-
setServiceProperties(resourceGroupName: string, accountName: string, options?: Models.TableServicesSetServicePropertiesOptionalParams | msRest.ServiceCallback<Models.TableServiceProperties>, callback?: msRest.ServiceCallback<Models.TableServiceProperties>): Promise<Models.TableServicesSetServicePropertiesResponse> {
|
|
68
|
+
setServiceProperties(
|
|
69
|
+
resourceGroupName: string,
|
|
70
|
+
accountName: string,
|
|
71
|
+
parameters: TableServiceProperties,
|
|
72
|
+
options?: TableServicesSetServicePropertiesOptionalParams
|
|
73
|
+
): Promise<TableServicesSetServicePropertiesResponse> {
|
|
101
74
|
return this.client.sendOperationRequest(
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
options
|
|
106
|
-
},
|
|
107
|
-
setServicePropertiesOperationSpec,
|
|
108
|
-
callback) as Promise<Models.TableServicesSetServicePropertiesResponse>;
|
|
75
|
+
{ resourceGroupName, accountName, parameters, options },
|
|
76
|
+
setServicePropertiesOperationSpec
|
|
77
|
+
);
|
|
109
78
|
}
|
|
110
79
|
|
|
111
80
|
/**
|
|
112
|
-
* Gets the properties of a storage account’s Table service, including properties for Storage
|
|
113
|
-
*
|
|
114
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
115
|
-
*
|
|
116
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
117
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
118
|
-
* letters only.
|
|
119
|
-
* @param [options] The optional parameters
|
|
120
|
-
* @returns Promise<Models.TableServicesGetServicePropertiesResponse>
|
|
121
|
-
*/
|
|
122
|
-
getServiceProperties(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.TableServicesGetServicePropertiesResponse>;
|
|
123
|
-
/**
|
|
124
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
125
|
-
* is case insensitive.
|
|
126
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
127
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
128
|
-
* letters only.
|
|
129
|
-
* @param callback The callback
|
|
130
|
-
*/
|
|
131
|
-
getServiceProperties(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.TableServiceProperties>): void;
|
|
132
|
-
/**
|
|
133
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
134
|
-
* is case insensitive.
|
|
81
|
+
* Gets the properties of a storage account’s Table service, including properties for Storage Analytics
|
|
82
|
+
* and CORS (Cross-Origin Resource Sharing) rules.
|
|
83
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
84
|
+
* case insensitive.
|
|
135
85
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param options The
|
|
139
|
-
* @param callback The callback
|
|
86
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
87
|
+
* only.
|
|
88
|
+
* @param options The options parameters.
|
|
140
89
|
*/
|
|
141
|
-
getServiceProperties(
|
|
142
|
-
|
|
90
|
+
getServiceProperties(
|
|
91
|
+
resourceGroupName: string,
|
|
92
|
+
accountName: string,
|
|
93
|
+
options?: TableServicesGetServicePropertiesOptionalParams
|
|
94
|
+
): Promise<TableServicesGetServicePropertiesResponse> {
|
|
143
95
|
return this.client.sendOperationRequest(
|
|
144
|
-
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
options
|
|
148
|
-
},
|
|
149
|
-
getServicePropertiesOperationSpec,
|
|
150
|
-
callback) as Promise<Models.TableServicesGetServicePropertiesResponse>;
|
|
96
|
+
{ resourceGroupName, accountName, options },
|
|
97
|
+
getServicePropertiesOperationSpec
|
|
98
|
+
);
|
|
151
99
|
}
|
|
152
100
|
}
|
|
153
|
-
|
|
154
101
|
// Operation Specifications
|
|
155
|
-
const serializer =
|
|
156
|
-
|
|
102
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
103
|
+
|
|
104
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
105
|
+
path:
|
|
106
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices",
|
|
157
107
|
httpMethod: "GET",
|
|
158
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices",
|
|
159
|
-
urlParameters: [
|
|
160
|
-
Parameters.resourceGroupName,
|
|
161
|
-
Parameters.accountName,
|
|
162
|
-
Parameters.subscriptionId
|
|
163
|
-
],
|
|
164
|
-
queryParameters: [
|
|
165
|
-
Parameters.apiVersion
|
|
166
|
-
],
|
|
167
|
-
headerParameters: [
|
|
168
|
-
Parameters.acceptLanguage
|
|
169
|
-
],
|
|
170
108
|
responses: {
|
|
171
109
|
200: {
|
|
172
110
|
bodyMapper: Mappers.ListTableServices
|
|
173
111
|
},
|
|
174
112
|
default: {
|
|
175
|
-
bodyMapper: Mappers.
|
|
113
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
176
114
|
}
|
|
177
115
|
},
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
const setServicePropertiesOperationSpec: msRest.OperationSpec = {
|
|
182
|
-
httpMethod: "PUT",
|
|
183
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
|
116
|
+
queryParameters: [Parameters.apiVersion],
|
|
184
117
|
urlParameters: [
|
|
185
|
-
Parameters
|
|
186
|
-
Parameters.accountName,
|
|
118
|
+
Parameters.$host,
|
|
187
119
|
Parameters.subscriptionId,
|
|
188
|
-
Parameters.
|
|
189
|
-
|
|
190
|
-
queryParameters: [
|
|
191
|
-
Parameters.apiVersion
|
|
192
|
-
],
|
|
193
|
-
headerParameters: [
|
|
194
|
-
Parameters.acceptLanguage
|
|
120
|
+
Parameters.resourceGroupName,
|
|
121
|
+
Parameters.accountName1
|
|
195
122
|
],
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
mapper: {
|
|
204
|
-
...Mappers.TableServiceProperties,
|
|
205
|
-
required: true
|
|
206
|
-
}
|
|
207
|
-
},
|
|
123
|
+
headerParameters: [Parameters.accept],
|
|
124
|
+
serializer
|
|
125
|
+
};
|
|
126
|
+
const setServicePropertiesOperationSpec: coreClient.OperationSpec = {
|
|
127
|
+
path:
|
|
128
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
|
129
|
+
httpMethod: "PUT",
|
|
208
130
|
responses: {
|
|
209
131
|
200: {
|
|
210
132
|
bodyMapper: Mappers.TableServiceProperties
|
|
211
133
|
},
|
|
212
134
|
default: {
|
|
213
|
-
bodyMapper: Mappers.
|
|
135
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
214
136
|
}
|
|
215
137
|
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
const getServicePropertiesOperationSpec: msRest.OperationSpec = {
|
|
220
|
-
httpMethod: "GET",
|
|
221
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
|
138
|
+
requestBody: Parameters.parameters11,
|
|
139
|
+
queryParameters: [Parameters.apiVersion],
|
|
222
140
|
urlParameters: [
|
|
223
|
-
Parameters
|
|
224
|
-
Parameters.accountName,
|
|
141
|
+
Parameters.$host,
|
|
225
142
|
Parameters.subscriptionId,
|
|
143
|
+
Parameters.resourceGroupName,
|
|
144
|
+
Parameters.accountName1,
|
|
226
145
|
Parameters.tableServiceName
|
|
227
146
|
],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
147
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
148
|
+
mediaType: "json",
|
|
149
|
+
serializer
|
|
150
|
+
};
|
|
151
|
+
const getServicePropertiesOperationSpec: coreClient.OperationSpec = {
|
|
152
|
+
path:
|
|
153
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
|
154
|
+
httpMethod: "GET",
|
|
234
155
|
responses: {
|
|
235
156
|
200: {
|
|
236
157
|
bodyMapper: Mappers.TableServiceProperties
|
|
237
158
|
},
|
|
238
159
|
default: {
|
|
239
|
-
bodyMapper: Mappers.
|
|
160
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
240
161
|
}
|
|
241
162
|
},
|
|
163
|
+
queryParameters: [Parameters.apiVersion],
|
|
164
|
+
urlParameters: [
|
|
165
|
+
Parameters.$host,
|
|
166
|
+
Parameters.subscriptionId,
|
|
167
|
+
Parameters.resourceGroupName,
|
|
168
|
+
Parameters.accountName1,
|
|
169
|
+
Parameters.tableServiceName
|
|
170
|
+
],
|
|
171
|
+
headerParameters: [Parameters.accept],
|
|
242
172
|
serializer
|
|
243
173
|
};
|
package/src/operations/usages.ts
CHANGED
|
@@ -3,80 +3,107 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Usages } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Usage,
|
|
17
|
+
UsagesListByLocationOptionalParams,
|
|
18
|
+
UsagesListByLocationResponse
|
|
19
|
+
} from "../models";
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing Usages operations. */
|
|
23
|
+
export class UsagesImpl implements Usages {
|
|
24
|
+
private readonly client: StorageManagementClient;
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class Usages class.
|
|
28
|
+
* @param client Reference to the service client
|
|
23
29
|
*/
|
|
24
|
-
constructor(client:
|
|
30
|
+
constructor(client: StorageManagementClient) {
|
|
25
31
|
this.client = client;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
/**
|
|
29
|
-
* Gets the current usage count and the limit for the resources of the location under the
|
|
30
|
-
* subscription.
|
|
35
|
+
* Gets the current usage count and the limit for the resources of the location under the subscription.
|
|
31
36
|
* @param location The location of the Azure Storage resource.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.UsagesListByLocationResponse>
|
|
37
|
+
* @param options The options parameters.
|
|
34
38
|
*/
|
|
35
|
-
listByLocation(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
public listByLocation(
|
|
40
|
+
location: string,
|
|
41
|
+
options?: UsagesListByLocationOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Usage> {
|
|
43
|
+
const iter = this.listByLocationPagingAll(location, options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listByLocationPagingPage(location, options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listByLocationPagingPage(
|
|
58
|
+
location: string,
|
|
59
|
+
options?: UsagesListByLocationOptionalParams
|
|
60
|
+
): AsyncIterableIterator<Usage[]> {
|
|
61
|
+
let result = await this._listByLocation(location, options);
|
|
62
|
+
yield result.value || [];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
private async *listByLocationPagingAll(
|
|
66
|
+
location: string,
|
|
67
|
+
options?: UsagesListByLocationOptionalParams
|
|
68
|
+
): AsyncIterableIterator<Usage> {
|
|
69
|
+
for await (const page of this.listByLocationPagingPage(location, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
41
74
|
/**
|
|
75
|
+
* Gets the current usage count and the limit for the resources of the location under the subscription.
|
|
42
76
|
* @param location The location of the Azure Storage resource.
|
|
43
|
-
* @param options The
|
|
44
|
-
* @param callback The callback
|
|
77
|
+
* @param options The options parameters.
|
|
45
78
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
79
|
+
private _listByLocation(
|
|
80
|
+
location: string,
|
|
81
|
+
options?: UsagesListByLocationOptionalParams
|
|
82
|
+
): Promise<UsagesListByLocationResponse> {
|
|
48
83
|
return this.client.sendOperationRequest(
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
listByLocationOperationSpec,
|
|
54
|
-
callback) as Promise<Models.UsagesListByLocationResponse>;
|
|
84
|
+
{ location, options },
|
|
85
|
+
listByLocationOperationSpec
|
|
86
|
+
);
|
|
55
87
|
}
|
|
56
88
|
}
|
|
57
|
-
|
|
58
89
|
// Operation Specifications
|
|
59
|
-
const serializer =
|
|
60
|
-
|
|
90
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
91
|
+
|
|
92
|
+
const listByLocationOperationSpec: coreClient.OperationSpec = {
|
|
93
|
+
path:
|
|
94
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages",
|
|
61
95
|
httpMethod: "GET",
|
|
62
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages",
|
|
63
|
-
urlParameters: [
|
|
64
|
-
Parameters.subscriptionId,
|
|
65
|
-
Parameters.location
|
|
66
|
-
],
|
|
67
|
-
queryParameters: [
|
|
68
|
-
Parameters.apiVersion
|
|
69
|
-
],
|
|
70
|
-
headerParameters: [
|
|
71
|
-
Parameters.acceptLanguage
|
|
72
|
-
],
|
|
73
96
|
responses: {
|
|
74
97
|
200: {
|
|
75
98
|
bodyMapper: Mappers.UsageListResult
|
|
76
|
-
},
|
|
77
|
-
default: {
|
|
78
|
-
bodyMapper: Mappers.CloudError
|
|
79
99
|
}
|
|
80
100
|
},
|
|
101
|
+
queryParameters: [Parameters.apiVersion],
|
|
102
|
+
urlParameters: [
|
|
103
|
+
Parameters.$host,
|
|
104
|
+
Parameters.subscriptionId,
|
|
105
|
+
Parameters.location
|
|
106
|
+
],
|
|
107
|
+
headerParameters: [Parameters.accept],
|
|
81
108
|
serializer
|
|
82
109
|
};
|