@azure/arm-storage 17.0.0-alpha.20211111.1 → 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 +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 +24 -20
- 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
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "@azure/core-paging";
|
|
2
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
3
|
-
import { Table,
|
|
2
|
+
import { Table, TableListOptionalParams, TableCreateOptionalParams, TableCreateResponse, TableUpdateOptionalParams, TableUpdateResponse, TableGetOptionalParams, TableGetResponse, TableDeleteOptionalParams } from "../models";
|
|
4
3
|
/** Interface representing a TableOperations. */
|
|
5
4
|
export interface TableOperations {
|
|
6
5
|
/**
|
|
@@ -12,7 +11,7 @@ export interface TableOperations {
|
|
|
12
11
|
* only.
|
|
13
12
|
* @param options The options parameters.
|
|
14
13
|
*/
|
|
15
|
-
list(resourceGroupName: string, accountName: string, options?:
|
|
14
|
+
list(resourceGroupName: string, accountName: string, options?: TableListOptionalParams): PagedAsyncIterableIterator<Table>;
|
|
16
15
|
/**
|
|
17
16
|
* Creates a new table with the specified table name, under the specified account.
|
|
18
17
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -25,7 +24,7 @@ export interface TableOperations {
|
|
|
25
24
|
* character.
|
|
26
25
|
* @param options The options parameters.
|
|
27
26
|
*/
|
|
28
|
-
create(resourceGroupName: string, accountName: string, tableName: string, options?:
|
|
27
|
+
create(resourceGroupName: string, accountName: string, tableName: string, options?: TableCreateOptionalParams): Promise<TableCreateResponse>;
|
|
29
28
|
/**
|
|
30
29
|
* Creates a new table with the specified table name, under the specified account.
|
|
31
30
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -38,7 +37,7 @@ export interface TableOperations {
|
|
|
38
37
|
* character.
|
|
39
38
|
* @param options The options parameters.
|
|
40
39
|
*/
|
|
41
|
-
update(resourceGroupName: string, accountName: string, tableName: string, options?:
|
|
40
|
+
update(resourceGroupName: string, accountName: string, tableName: string, options?: TableUpdateOptionalParams): Promise<TableUpdateResponse>;
|
|
42
41
|
/**
|
|
43
42
|
* Gets the table with the specified table name, under the specified account if it exists.
|
|
44
43
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -51,7 +50,7 @@ export interface TableOperations {
|
|
|
51
50
|
* character.
|
|
52
51
|
* @param options The options parameters.
|
|
53
52
|
*/
|
|
54
|
-
get(resourceGroupName: string, accountName: string, tableName: string, options?:
|
|
53
|
+
get(resourceGroupName: string, accountName: string, tableName: string, options?: TableGetOptionalParams): Promise<TableGetResponse>;
|
|
55
54
|
/**
|
|
56
55
|
* Deletes the table with the specified table name, under the specified account if it exists.
|
|
57
56
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -64,6 +63,6 @@ export interface TableOperations {
|
|
|
64
63
|
* character.
|
|
65
64
|
* @param options The options parameters.
|
|
66
65
|
*/
|
|
67
|
-
delete(resourceGroupName: string, accountName: string, tableName: string, options?:
|
|
66
|
+
delete(resourceGroupName: string, accountName: string, tableName: string, options?: TableDeleteOptionalParams): Promise<void>;
|
|
68
67
|
}
|
|
69
68
|
//# sourceMappingURL=tableOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/tableOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,KAAK,EACL,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,KAAK,CAAC,CAAC;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC7B;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=tableOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/tableOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableServices.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/tableServices.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,+CAA+C,EAC/C,yCAAyC,EACzC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,WAAW,CAAC;AAEnB,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,sBAAsB,EAClC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACtD;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;CACvD"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableServices.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/tableServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/usages.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,kCAAkC,EAAE,MAAM,WAAW,CAAC;AAGtE,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,cAAc,CACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,KAAK,CAAC,CAAC;CACtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=usages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
1
2
|
import * as coreAuth from "@azure/core-auth";
|
|
2
3
|
import { Operations, Skus, StorageAccounts, DeletedAccounts, Usages, ManagementPolicies, BlobInventoryPolicies, PrivateEndpointConnections, PrivateLinkResources, ObjectReplicationPoliciesOperations, EncryptionScopes, BlobServices, BlobContainers, FileServices, FileShares, QueueServices, Queue, TableServices, TableOperations } from "./operationsInterfaces";
|
|
3
|
-
import { StorageManagementClientContext } from "./storageManagementClientContext";
|
|
4
4
|
import { StorageManagementClientOptionalParams } from "./models";
|
|
5
|
-
export declare class StorageManagementClient extends
|
|
5
|
+
export declare class StorageManagementClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
6
9
|
/**
|
|
7
10
|
* Initializes a new instance of the StorageManagementClient class.
|
|
8
11
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageManagementClient.d.ts","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAsB7C,OAAO,EACL,UAAU,EACV,IAAI,EACJ,eAAe,EACf,eAAe,EACf,MAAM,EACN,kBAAkB,EAClB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,mCAAmC,EACnC,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,UAAU,EACV,aAAa,EACb,KAAK,EACL,aAAa,EACb,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAC;AAEjE,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qCAAqC;IAiEjD,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,mCAAmC,EAAE,mCAAmC,CAAC;IACzE,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,aAAa,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
8
9
|
import { OperationsImpl, SkusImpl, StorageAccountsImpl, DeletedAccountsImpl, UsagesImpl, ManagementPoliciesImpl, BlobInventoryPoliciesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ObjectReplicationPoliciesOperationsImpl, EncryptionScopesImpl, BlobServicesImpl, BlobContainersImpl, FileServicesImpl, FileSharesImpl, QueueServicesImpl, QueueImpl, TableServicesImpl, TableOperationsImpl } from "./operations";
|
|
9
|
-
|
|
10
|
-
export class StorageManagementClient extends StorageManagementClientContext {
|
|
10
|
+
export class StorageManagementClient extends coreClient.ServiceClient {
|
|
11
11
|
/**
|
|
12
12
|
* Initializes a new instance of the StorageManagementClient class.
|
|
13
13
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -15,7 +15,36 @@ export class StorageManagementClient extends StorageManagementClientContext {
|
|
|
15
15
|
* @param options The parameter options
|
|
16
16
|
*/
|
|
17
17
|
constructor(credentials, subscriptionId, options) {
|
|
18
|
-
|
|
18
|
+
if (credentials === undefined) {
|
|
19
|
+
throw new Error("'credentials' cannot be null");
|
|
20
|
+
}
|
|
21
|
+
if (subscriptionId === undefined) {
|
|
22
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
23
|
+
}
|
|
24
|
+
// Initializing default values for options
|
|
25
|
+
if (!options) {
|
|
26
|
+
options = {};
|
|
27
|
+
}
|
|
28
|
+
const defaults = {
|
|
29
|
+
requestContentType: "application/json; charset=utf-8",
|
|
30
|
+
credential: credentials
|
|
31
|
+
};
|
|
32
|
+
const packageDetails = `azsdk-js-arm-storage/17.0.0`;
|
|
33
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
|
+
: `${packageDetails}`;
|
|
36
|
+
if (!options.credentialScopes) {
|
|
37
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
38
|
+
}
|
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
+
userAgentPrefix
|
|
41
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
42
|
+
super(optionsWithDefaults);
|
|
43
|
+
// Parameter assignments
|
|
44
|
+
this.subscriptionId = subscriptionId;
|
|
45
|
+
// Assigning values to Constant parameters
|
|
46
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
47
|
+
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
19
48
|
this.operations = new OperationsImpl(this);
|
|
20
49
|
this.skus = new SkusImpl(this);
|
|
21
50
|
this.storageAccounts = new StorageAccountsImpl(this);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,uCAAuC,EACvC,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAwBtB,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA0C;YACtD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6BAA6B,CAAC;QACrD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO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AI,CAAC,CAAC;QACvD,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,cAAc,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CAqBF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage_examples.d.ts","sourceRoot":"","sources":["../../test/storage_examples.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
|
|
10
|
+
import * as assert from "assert";
|
|
11
|
+
import { ClientSecretCredential } from "@azure/identity";
|
|
12
|
+
import { StorageManagementClient } from "../src/storageManagementClient";
|
|
13
|
+
const recorderEnvSetup = {
|
|
14
|
+
replaceableVariables: {
|
|
15
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
16
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
17
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
18
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
19
|
+
},
|
|
20
|
+
customizationsOnRecordings: [
|
|
21
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
22
|
+
],
|
|
23
|
+
queryParametersToSkip: []
|
|
24
|
+
};
|
|
25
|
+
export const testPollingOptions = {
|
|
26
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
27
|
+
};
|
|
28
|
+
describe("Storage test", () => {
|
|
29
|
+
let recorder;
|
|
30
|
+
let subscriptionId;
|
|
31
|
+
let client;
|
|
32
|
+
let location;
|
|
33
|
+
let resourceGroup;
|
|
34
|
+
let storageAccountName;
|
|
35
|
+
let containerName;
|
|
36
|
+
beforeEach(function () {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
recorder = record(this, recorderEnvSetup);
|
|
39
|
+
subscriptionId = env.SUBSCRIPTION_ID;
|
|
40
|
+
// This is an example of how the environment variables are used
|
|
41
|
+
const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
|
|
42
|
+
client = new StorageManagementClient(credential, subscriptionId);
|
|
43
|
+
location = "eastus";
|
|
44
|
+
resourceGroup = "myjstest";
|
|
45
|
+
storageAccountName = "storageaccountzzzxxx";
|
|
46
|
+
containerName = "mycontainerxxx";
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
afterEach(function () {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
yield recorder.stop();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
it("storageAccounts create test", function () {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const res = yield client.storageAccounts.beginCreateAndWait(resourceGroup, storageAccountName, {
|
|
57
|
+
sku: {
|
|
58
|
+
name: "Standard_GRS",
|
|
59
|
+
},
|
|
60
|
+
kind: "StorageV2",
|
|
61
|
+
location: "westeurope",
|
|
62
|
+
encryption: {
|
|
63
|
+
services: {
|
|
64
|
+
file: {
|
|
65
|
+
keyType: "Account",
|
|
66
|
+
enabled: true,
|
|
67
|
+
},
|
|
68
|
+
blob: {
|
|
69
|
+
keyType: "Account",
|
|
70
|
+
enabled: true,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
keySource: "Microsoft.Storage",
|
|
74
|
+
},
|
|
75
|
+
tags: {
|
|
76
|
+
key1: "value1",
|
|
77
|
+
key2: "value2",
|
|
78
|
+
}
|
|
79
|
+
}, testPollingOptions);
|
|
80
|
+
assert.equal(res.name, storageAccountName);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
it("blobContainers create test", function () {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const res = yield client.blobContainers.create(resourceGroup, storageAccountName, containerName, {});
|
|
86
|
+
assert.equal(res.name, containerName);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
it("storageAccounts get test", function () {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const res = yield client.storageAccounts.getProperties(resourceGroup, storageAccountName);
|
|
92
|
+
assert.equal(res.name, storageAccountName);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
it("blobContainers get test", function () {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const res = yield client.blobContainers.get(resourceGroup, storageAccountName, containerName);
|
|
98
|
+
assert.equal(res.name, containerName);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
it("storageAccounts list test", function () {
|
|
102
|
+
var e_1, _a;
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const resArray = new Array();
|
|
105
|
+
try {
|
|
106
|
+
for (var _b = __asyncValues(client.storageAccounts.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
107
|
+
let item = _c.value;
|
|
108
|
+
resArray.push(item);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
112
|
+
finally {
|
|
113
|
+
try {
|
|
114
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
115
|
+
}
|
|
116
|
+
finally { if (e_1) throw e_1.error; }
|
|
117
|
+
}
|
|
118
|
+
assert.equal(resArray.length, 1);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
it("blobContainers list test", function () {
|
|
122
|
+
var e_2, _a;
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const resArray = new Array();
|
|
125
|
+
try {
|
|
126
|
+
for (var _b = __asyncValues(client.blobContainers.list(resourceGroup, storageAccountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
127
|
+
let item = _c.value;
|
|
128
|
+
resArray.push(item);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
132
|
+
finally {
|
|
133
|
+
try {
|
|
134
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
135
|
+
}
|
|
136
|
+
finally { if (e_2) throw e_2.error; }
|
|
137
|
+
}
|
|
138
|
+
assert.equal(resArray.length, 1);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
it("storageAccounts update test", function () {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const res = yield client.storageAccounts.update(resourceGroup, storageAccountName, { tags: { tag1: "value1" } });
|
|
144
|
+
assert.equal(res.type, "Microsoft.Storage/storageAccounts");
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
it("blobContainers update test", function () {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const res = yield client.blobContainers.update(resourceGroup, storageAccountName, containerName, {});
|
|
150
|
+
assert.equal(res.type, "Microsoft.Storage/storageAccounts/blobServices/containers");
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
it("blobContainers delete test", function () {
|
|
154
|
+
var e_3, _a;
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const res = yield client.blobContainers.delete(resourceGroup, storageAccountName, containerName);
|
|
157
|
+
const resArray = new Array();
|
|
158
|
+
try {
|
|
159
|
+
for (var _b = __asyncValues(client.blobContainers.list(resourceGroup, storageAccountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
160
|
+
let item = _c.value;
|
|
161
|
+
resArray.push(item);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
165
|
+
finally {
|
|
166
|
+
try {
|
|
167
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
168
|
+
}
|
|
169
|
+
finally { if (e_3) throw e_3.error; }
|
|
170
|
+
}
|
|
171
|
+
assert.equal(resArray.length, 0);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
it("storageAccounts delete test", function () {
|
|
175
|
+
var e_4, _a;
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const res = yield client.storageAccounts.delete(resourceGroup, storageAccountName);
|
|
178
|
+
const resArray = new Array();
|
|
179
|
+
try {
|
|
180
|
+
for (var _b = __asyncValues(client.storageAccounts.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
181
|
+
let item = _c.value;
|
|
182
|
+
resArray.push(item);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
186
|
+
finally {
|
|
187
|
+
try {
|
|
188
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
189
|
+
}
|
|
190
|
+
finally { if (e_4) throw e_4.error; }
|
|
191
|
+
}
|
|
192
|
+
assert.equal(resArray.length, 0);
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
//# sourceMappingURL=storage_examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage_examples.js","sourceRoot":"","sources":["../../test/storage_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAIN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAA+B,CAAC;IACpC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,kBAA0B,CAAC;IAC/B,IAAI,aAAqB,CAAC;IAE1B,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,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,QAAQ,CAAC,MAAM,EAAC,CAAC,CAAC,CAAC;;KACjC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE;;;YAChC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,aAAa,EAAC,kBAAkB,CAAC,CAAC;YAClF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAArE,IAAI,IAAI,WAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAC,CAAC,CAAC,CAAC;;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for StorageManagementClient.",
|
|
6
|
-
"version": "17.0.0-alpha.
|
|
6
|
+
"version": "17.0.0-alpha.20211206.4",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-lro": "^2.2.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
|
-
"@azure/core-paging": "
|
|
13
|
+
"@azure/core-paging": ">=1.2.0-alpha <1.2.0-alphb",
|
|
14
14
|
"@azure/core-client": "^1.0.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.1.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"main": "./dist/index.js",
|
|
28
|
-
"module": "./esm/index.js",
|
|
29
|
-
"types": "./
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-storage.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.18.11",
|
|
32
32
|
"@rollup/plugin-commonjs": "11.0.2",
|
|
@@ -36,9 +36,13 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^1.16.3",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
39
|
-
"rollup-plugin-node-resolve": "^3.4.0",
|
|
40
39
|
"typescript": "~4.2.0",
|
|
41
|
-
"uglify-js": "^3.4.9"
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
42
46
|
},
|
|
43
47
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage",
|
|
44
48
|
"repository": {
|
|
@@ -53,27 +57,28 @@
|
|
|
53
57
|
"dist/**/*.js.map",
|
|
54
58
|
"dist/**/*.d.ts",
|
|
55
59
|
"dist/**/*.d.ts.map",
|
|
56
|
-
"esm/**/*.js",
|
|
57
|
-
"esm/**/*.js.map",
|
|
58
|
-
"esm/**/*.d.ts",
|
|
59
|
-
"esm/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
60
64
|
"src/**/*.ts",
|
|
61
65
|
"README.md",
|
|
62
66
|
"LICENSE",
|
|
63
67
|
"rollup.config.js",
|
|
64
68
|
"tsconfig.json",
|
|
65
69
|
"review/*",
|
|
66
|
-
"CHANGELOG.md"
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
67
72
|
],
|
|
68
73
|
"scripts": {
|
|
69
|
-
"build": "tsc && rollup -c
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
70
75
|
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
71
76
|
"prepack": "npm run build",
|
|
72
77
|
"pack": "npm pack 2>&1",
|
|
73
|
-
"extract-api": "
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
74
79
|
"lint": "echo skipped",
|
|
75
80
|
"audit": "echo skipped",
|
|
76
|
-
"clean": "
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
77
82
|
"build:node": "echo skipped",
|
|
78
83
|
"build:browser": "echo skipped",
|
|
79
84
|
"build:test": "echo skipped",
|
|
@@ -81,16 +86,15 @@
|
|
|
81
86
|
"check-format": "echo skipped",
|
|
82
87
|
"execute:samples": "echo skipped",
|
|
83
88
|
"format": "echo skipped",
|
|
84
|
-
"test": "
|
|
85
|
-
"prebuild": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
86
90
|
"test:node": "echo skipped",
|
|
87
91
|
"test:browser": "echo skipped",
|
|
88
|
-
"unit-test": "
|
|
89
|
-
"unit-test:node": "
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
90
94
|
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
91
97
|
"integration-test:browser": "echo skipped",
|
|
92
|
-
"integration-test:node": "echo skipped",
|
|
93
|
-
"integration-test": "echo skipped",
|
|
94
98
|
"docs": "echo skipped"
|
|
95
99
|
},
|
|
96
100
|
"sideEffects": false,
|